30.06.2009, 04:31
Untested
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
dcmd(gotoxyz, 7, cmdtext);
return 0;
}
dcmd_gotoxyz(playerid, params[])
{
new Float:x, Float:y, Float:z;
if(sscanf(params, "fff", x, y, z)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /gotoxyz <x> <y> <z>");
else
{
SetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, 0xFF0000AA, "Warped to your desired position!");
}
return 1;
}