19.08.2014, 01:26
pawn Код:
public ZMOVE(npcid)
{
for(new ie=0; ie<MAX_PLAYERS; ie++)
if(Team[ie] == HUMAN)
{
new Float:p[3];
foreach(Player,i)
{
GetPlayerPos(i,p[0],p[1],p[2]);
if(IsPlayerInRangeOfPoint(npcid,50,p[0],p[1],p[2]))
{
FCNPC_GoTo(npcid,p[0],p[1],p[2],MOVE_TYPE_RUN,10,1);
if(IsPlayerInRangeOfPoint(npcid,1,p[0],p[1],p[2]))
{
FCNPC_Punch(npcid,p[0],p[1],p[2],125);
}
}
}
}
return 1;
}