07.10.2014, 07:15
the easy way is to do it, is when they go through the checkpoint or you could use something like (see below) off a timer
Код:
stock GetPlayerDistanceToPointEx(playerid,Float:x,Float:y,Float:z) {//By Sacky (Edited by Smugller) new Float:x1,Float:y1,Float:z1; new Float:dis; GetPlayerPos(playerid,x1,y1,z1); dis = floatsqroot((x-x1)*(x-x1)+(y-y1)*(y-y1)+(z-z1)*(z-z1)); return floatround(dis); }