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


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:
[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
-If you want change it. Define it before #include <zombie>
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);
Callbacks:
pawn Code:
public OnPlayerKillZombie(playerid,zombieid,weaponid)
public OnZombieKillPlayer(zombieid,playerid)
Example:
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
Credits:
pawn Code:
OrMisicL for FCNPC Plugin
****** for YSI
Pottus,Southclaw for some function.
Zeex for Zcmd in Example script
Reply
#2

Great job, very well done. + rep
Reply
#3

very gooood, is I will use +rep
Reply
#4

Thanks.
--------------------
UPDATE:
-Direct link download
-Fix Range When player death.
Reply
#5

Nice work. +rep

and lol they rekt you
Reply
#6

Is it only the player who was assigned at the time of the creation of the zombie is capable of seeing it? That is, not everyone can see?
Reply
#7

Good job, I liked it
Reply
#8

Its nice but!!!
Its shitty bugged,npc do like you,jump,and fly to u,same if u use a heli,this sux!!
Reply
#9

well done , nice work !
Reply
#10

Nice job, have to bump this one. Has anyone tested this, can he tell me if those zombies can be seen by everybody or not?
Reply
#11

OT: Nice. the movement in not really smooth though.

oh and they killed the shit out of you lmao.
Reply
#12

Good Job +Rep
Reply
#13

Can this include be used for creating global zombies?
Reply
#14

This Zombie Can Make Self ? Like NPC ?
Reply
#15

Any help?
Код:
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(417) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(473) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(535) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(595) : warning 219: local variable "z" shadows a variable at a preceding level
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(647) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(649) : error 055: start of function body without function header
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(653) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(655) : error 055: start of function body without function header
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(657) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(659) : error 055: start of function body without function header
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(661) : error 021: symbol already defined: "FCNPC_Respawn"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(663) : error 054: unmatched closing brace ("}")
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(665) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(667) : error 055: start of function body without function header
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(669) : error 021: symbol already defined: "GetPlayerPos"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(671) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(673) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(675) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(677) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(679) : error 021: symbol already defined: "FCNPC_GetZGround"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(681) : error 021: symbol already defined: "FCNPC_SetPosition"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(683) : error 021: symbol already defined: "FCNPC_SetAngle"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(685) : error 021: symbol already defined: "FCNPC_Stop"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(687) : error 021: symbol already defined: "FCNPC_StopAttack"
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(689) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(691) : error 054: unmatched closing brace ("}")
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(693) : error 054: unmatched closing brace ("}")
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(695) : error 010: invalid function or declaration
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(697) : error 054: unmatched closing brace ("}")
C:\Users\Andres\Desktop\gtacsa\NEW\pawno\include\zombie.inc(699) : error 010: invalid function or declaration
Reply
#16

Код:
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(71) : error 017: undefined symbol "FCNPC_InitZMap"
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(94) : error 017: undefined symbol "FCNPC_InitZMap"
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(179) : error 025: function heading differs from prototype
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(191) : warning 202: number of arguments does not match definition
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(204) : error 025: function heading differs from prototype
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(341) : error 017: undefined symbol "FCNPC_GetZGround"
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(371) : warning 213: tag mismatch
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(424) : error 017: undefined symbol "FCNPC_GetZGround"
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\pawno\include\zombie.inc(451) : warning 213: tag mismatch
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(12) : warning 201: redefinition of constant/macro (symbol "MAX_ZOMBIE_FOR_PLAYER")
C:\Users\matia\Desktop\Carpetas\SERVER\GTASERVER\Left 4 dead\gamemodes\GMZ.pwn(1666) : warning 204: symbol is assigned a value that is never used: "string"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


6 Errors.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)