19.08.2013, 21:10
Like this?
pawn Код:
CMD:gotocoord(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new Float: pos[3], int;
if(sscanf(params, "fffd", pos[0], pos[1], pos[2], int)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /gotocoord [x coordinate] [y coordinate] [z coordinate] [interior]");
SendClientMessageEx(playerid, COLOR_GRAD2, "You have been teleported to the coordinates specified.");
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerInterior(playerid, int);
}
return 1;
}