21.01.2010, 12:48
pawn Код:
CMD:goto(playerid, params[])
{
new id;
if (sscanf(params, "u" , id)) return SendClientMessage(playerid, LIGHTGREEN, "USAGE: /goto [playerID]");
new Float:idx, Float:idy, Float:idz;
GetPlayerPos(id, idx, idy, :idz);
SetPlayerPos(playerid, idx, idy, idz);
return 1;
}
I'm using sscanf2.