pawn Код:
CMD:gotoxyz(playerid,params[]) {
if (PlayerInfo[playerid][pAdmin] >= 4 || PlayerInfo[playerid][pHelper] >= 4)
new Float:x, Float:y, Float:z;
new tmp[128], tmp2[128], tmp3[128];
new string[128], Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index); tmp3 = strtok(params,Index);
if(isnull(tmp) || isnull(tmp2) || isnull(tmp3)) return SendClientMessage(playerid,red,"USAGE: /gotoxyz [X],[Y],[Z]");
x = strval(tmp); y = strval(tmp2); z = strval(tmp3);
if(GetPlayerState(playerid) == 2) SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
else SetPlayerPos(playerid,x,y,z);
format(string,sizeof(string),"You have teleported to %f, %f, %f", x,y,z); return SendClientMessage(playerid,blue,string);
} else return SendClientMessage(playerid,red,"ERROR: You are not a high enough level to use this command");
}
Btw. Pawnify your command is for rcon admins!