24.11.2011, 14:18
When i do /find it just gives me the place where the player is and the dot stays there for 60 seconds.
I want that the dot keeps moving to where the player is going.
How can i do that?
I currently have these(most Important for this i think if need more ask please) lines.
I want that the dot keeps moving to where the player is going.
How can i do that?
I currently have these(most Important for this i think if need more ask please) lines.
PHP код:
if(IsPlayerConnected(id))
{
if(playerid != id)
{
if(id != INVALID_PLAYER_ID)
{
if(PhoneOnline[id] == 0)
{
SendClientMessage(id, COLOR_LIGHTYELLOW2, "[INFO:] Someone is tracking you.");
format(string, sizeof(string), "[INFO:] Your tracking %s, checkpoint removed in 60 seconds.", GetPlayerNameEx(id));
SendClientMessage(playerid, COLOR_LIGHTYELLOW2, string);
new Float:x,Float:y,Float:z;
GetPlayerPos(id,x,y,z);
SetPlayerCheckpoint(playerid,x,y,z,10.0);
SetTimerEx("ClearCheckpointsForPlayer", 60000, false, "i", playerid);
TrackingPlayer[playerid] = 1;