24.07.2015, 03:52
(
Last edited by Gasman; 24/07/2015 at 05:26 AM.
)
![](http://i.imgur.com/sF9KVMo.png)
Zombie include v0.1
-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:
[ame]http://www.youtube.com/watch?v=G6E3akWpT8o[/ame]
Features:
-This is the default setting in include
pawn 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
Function:
pawn 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);
pawn Code:
public OnPlayerKillZombie(playerid,zombieid,weaponid)
public OnZombieKillPlayer(zombieid,playerid)
https://github.com/gasmanvnn/SA-MP/b.../ExampleZombie
DOWNLOAD:
https://github.com/gasmanvnn/SA-MP/b...pts/zombie.inc
Tutorial
pawn Code:
Download YSI and FCNPC plugin
*Script need ZMap.hmap
pawn Code:
OrMisicL for FCNPC Plugin
****** for YSI
Pottus,Southclaw for some function.
Zeex for Zcmd in Example script