04.10.2014, 12:08
Hello i using FCNPC plugin i have this problem
NPCs is floating to players how i can fix it?
My code
NPCs is floating to players how i can fix it?
My code
pawn Код:
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_SPRINT, 10, 1);
if(IsPlayerInRangeOfPoint(npcid,1, p[0], p[1], p[2]))
{
FCNPC_Punch(npcid, p[0], p[1], p[2], 125);
}
}
}