Posts: 484
Threads: 189
Joined: Jun 2016
Reputation:
0
Uhm.
How can i make a /locate command which update player position whenever he move ?
- Thanks
Posts: 58
Threads: 1
Joined: Aug 2015
Reputation:
0
You mean
Hunud is at Ganton // when you at Los santos ? at ganton
And when at LV strip , " Hunud is at Strip " ??
Explain more about it
Posts: 141
Threads: 37
Joined: Dec 2016
Reputation:
0
You want that command to be like /fs for cops to find the wanted guy or what?
In my case when u type /fs and ID it tracks the player the checkpoint updates every 2 seconds and tells you if he's in the car or not what's his speed name of the car etc
Posts: 357
Threads: 6
Joined: Feb 2018
Код:
CMD:locate(playerid, params[])
{
new otherid, str[100];
if(sscanf(params, "u", otherid))
{
Usage(playerid, "/locate <ID>");
return true;
}
if(otherid == INVALID_PLAYER_ID)
return SendClientMessage(playerid, -1, "Player not connected!");
format(str, sizeof(str), "%s(%d)'s Location: %s", PlayerName[otherid], otherid, GetPlayerLocation(otherid));
SendClientMessage(playerid, -1, str);
return true;
}
Edit PlayerName[otherid] to YourPlayerNameVaiable[otherid]
PTA: This is my code, edit this to your script.
Posts: 484
Threads: 189
Joined: Jun 2016
Reputation:
0
This is not what i was think about. Read the main post again please.