23.10.2012, 23:45
pawn Код:
if(strcmp(cmd, "/gps", true) == 0)
{
new tmp[128];
tmp = strtok(cmdtext, idx);
if(strlen(tmp) == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "USO: /gps [id]");
new Float:x, Float:y, Float:z;
GetPlayerPos(strval(tmp), x, y, z);
SetPlayerCheckpoint(playerid, x, y, z, 10.0);
SendClientMessage(playerid, green, "Siga o checkpoint para achar o player.");
return 1;
}