01.06.2010, 00:03
I thought... but I thought wrong.. what did I do? Thanks
pawn Код:
if(strcmp(cmd, "/gotocoord", true) == 0)
{
if(gAdminOnDuty[playerid] != 1)
{
SendClientMessage(playerid, COLOR_GRAD2, "You must be on duty to use this command!");
return 1;
}
if (PlayerInfo[playerid][pAdmin] < 6)
{
SendClientMessage(playerid, COLOR_RED, "Invalid admin level, you cannot use this command");
return 1;
}
new x = strval(tmp);
new y = strval(tmp);
new z = strval(tmp);
SetPlayerPos(playerid, x, y, z);
SendClientMessage(playerid, COLOR_DBLUE, "You have been teleported");
return 1;
}