12.02.2012, 22:00
pawn Код:
if(strcmp(cmd,"/localizar",true) == 0)
{
new giveplayerid;
tmp = strtok(cmdtext, idx);
giveplayerid = strval(tmp);
if(!strlen(tmp)) return SendClientMessage(playerid,-1,"USO: /localizar [id]");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, -1, "(x) ID Invalido.");
new Float:X,Float:Y,Float:Z;
GetPlayerPos(giveplayerid, X,Y,Z);
SetPlayerCheckpoint(playerid, X,Y,Z, 6);
return 1;
}