jeudi 23 juillet 2015

[Include] [FCNPC]Zombie Include[Attack/Range/Punch/Spawn around and More]


Zombie include v0.1
Description:
-Hello! Today i release my include zombie FCNPC.
-Zombie spawn around player owner and attack if player in range attack
-If Zombie attacked by other player .Zombie will attack this player and Increasing the area range attack.

VIDEO:
Features:
-This is the default setting in include
Code:

#define MAX_ZOMBIE_FOR_PLAYER        (10)//Number zombie spawn around player {recommend use 4}

#define DefaultZAttackRange (30.0)//Default range zombie can see player

#define ShootAttackRange    (70.0)//Range zombie can see player when zombie attacked by player

#define ZAttackDmg          (50.0)//Damaged Zombie attack

-If you want change it. Define it before #include <zombie>
Function:
Code:

native CreateZombieForPlayer(playerid,Float:x,Float:y,Float:z,Float:a,Float:distancespawn = 70.0,timerespawn = 20000);//Start create zombie for player
native DestroyZombieForPlayer(playerid);//Destroy zombie for player
native IsZombieCreatedForPlayer(playerid);//Check if the player has created zombies from previous
native IsPlayerZombie(id);

Callbacks:
Code:

public OnPlayerKillZombie(playerid,zombieid,weaponid)
public OnZombieKillPlayer(zombieid,playerid)

Example:
http://www.oni.vn/oHv55
DOWNLOAD:
http://www.oni.vn/YcSeP
*Wait 5s and click BỎ QUA QUẢNG CÁO
Tutorial
Code:

Download YSI and FCNPC plugin
*Script need ZMap.hmap

Credits:
Code:

OrMisicL for FCNPC Plugin
Y_Less for YSI
Pottus,Southclaw for some function.
Zeex for Zcmd in Example script



Aucun commentaire:

Enregistrer un commentaire