Check player race position
#2

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);
}
Reply


Messages In This Thread
Check player race position - by qmnty - 07.10.2014, 05:06
Re: Check player race position - by (SF)Noobanatior - 07.10.2014, 07:15
Re: Check player race position - by qmnty - 19.10.2014, 08:26

Forum Jump:


Users browsing this thread: 1 Guest(s)