Posts: 430
Threads: 75
Joined: May 2012
Reputation:
0
Hi all i got a problem with NPC's
I am Creating a race system for my gm and i wanna know how to remove the npc after i done the race?
Posts: 134
Threads: 29
Joined: Nov 2012
Reputation:
0
do something like, IsNPCInRangeOfPoint(xxxx,yyyy,zzzz)
if yes = kick npc
Posts: 430
Threads: 75
Joined: May 2012
Reputation:
0
Explane i can not understood you
Posts: 134
Threads: 29
Joined: Nov 2012
Reputation:
0
Get your race finish co-ordinates and then check if the npc is in range of them, If he is then make the server kick him
Posts: 134
Threads: 29
Joined: Nov 2012
Reputation:
0
Yea would be something like that
Posts: 11,827
Threads: 33
Joined: Dec 2011
Reputation:
0
Kick(playerid); not Racer.
And you should check if x, y, z are equal to the last checkpoint, otherwise it will kick the NPC from the first checkpoint.