/acmds help.
#5

Try This :
pawn Код:
CMD:acmds(playerid, params[])
{
   if(pInfo[playerid][Adminlevel] == 1)
   {
     ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admin commands", "{FFFF33}TRIAL ADMINISTRATOR COMMANDS\n/kick, /clearc, /setskin", "OK", "Exit");
   }
   if(pInfo[playerid][Adminlevel] == 2)
   {
     ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admin commands", "{00CC00}MODERATOR COMMANDS\n/ban", "OK", "Exit");
   }
   if(pInfo[playerid][Adminlevel] == 3)
   {
      ShowPlayerDialog(playerid,  -1, DIALOG_STYLE_MSGBOX, "Admin commands", "{99CCFF}ADMIN COMMANDS\n/pheal", "OK","EXIT");
   }
   if(pInfo[playerid][Adminlevel] == 4)
   {
      ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admin commands", "{FFCCFF}HEAD ADMINISTRATOR COMMANDS\n/akill", "OK","EXIT");
   }
   if(pInfo[playerid][Adminlevel] == 5)
   {
       ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admin commands", "","OK","EXIT");
   }
   if(pInfo[playerid][Adminlevel] == 6)
   {
      ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, "Admin commands", "{FF0000}SERVER OWNER COMMANDS\n/setlevel", "OK", "EXIT");
   }
   else
   {
      SendClientMessage(playerid, -1, "{FF0000}Error: You are not authorized to use this command.");
   }
   return 1;
}
Reply


Messages In This Thread
/acmds help. - by Glossy42O - 08.01.2015, 12:47
Re: /acmds help. - by nezo2001 - 08.01.2015, 12:54
Re: /acmds help. - by Glossy42O - 08.01.2015, 12:55
Re: /acmds help. - by UltraScripter - 08.01.2015, 12:58
Re: /acmds help. - by UltraScripter - 08.01.2015, 13:01
Re: /acmds help. - by Glossy42O - 08.01.2015, 13:19

Forum Jump:


Users browsing this thread: 1 Guest(s)