27.03.2018, 14:52
Код:
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;
}
PTA: This is my code, edit this to your script.
