28.10.2016, 07:57
PHP код:
if(strcmp(cmd, "/gotoco", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 3)
{
new Float: pos[3], int;
if(sscanf(params, "fffd", pos[0], pos[1], pos[2], int)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /gotoco [x coordinate] [y coordinate] [z coordinate] [interior]");
SendClientMessage(playerid, COLOR_GREY, "You have been teleported to the coordinates specified.");
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerInterior(playerid, int);
}
return 1;
}