27.03.2018, 10:15
Uhm.
How can i make a /locate command which update player position whenever he move ?
- Thanks
How can i make a /locate command which update player position whenever he move ?
- Thanks
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;
}