20.07.2009, 11:38
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/spawnmenu", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
ShowMenuForPlayer(MainMenu, playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
else
{
return SendClientMessage(playerid, 0xAFAFAFAA, "* This command is only for administrators!");
}
}
THAT's my code...but work for the RCON Admins...
I want make that command for Lv9 XtremeAdmins...can someone gimme a hand??
{
if (strcmp("/spawnmenu", cmdtext, true, 10) == 0)
{
if(IsPlayerAdmin(playerid))
{
ShowMenuForPlayer(MainMenu, playerid);
TogglePlayerControllable(playerid, false);
return 1;
}
else
{
return SendClientMessage(playerid, 0xAFAFAFAA, "* This command is only for administrators!");
}
}
THAT's my code...but work for the RCON Admins...
I want make that command for Lv9 XtremeAdmins...can someone gimme a hand??