#8

PHP код:
CMD:acmd(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >=|| IsPlayerAdmin(playerid))
    {
        new 
admlvl;
        if (
sscanf(params"i",admlvl)) return SendClientMessage(playeridCOLOR_RED"USAGE: /acmd [adminlevel]");
        if (
admlvl 10 || admlvl 1) return SendClientMessage(playeridCOLOR_RED,"[ERROR]: Valid Admin Levels: 1-10!");
        if(
admlvl == 1) {
           if(
PlayerInfo[playerid][pAdmin] < 1) return SendClientMessage(playeridCOLOR_RED,"This command menu number only for admin level 1!");
           
ShowPlayerDialog(playerid1DIALOG_STYLE_LIST"Admin command""/kick\n/spec\n/specoff\n/reports\n/chr\n/warn\n/unwarn\n/asay""Close""");
        }
        if(
admlvl == 2) {
           if(
PlayerInfo[playerid][pAdmin] < 2) return SendClientMessage(playeridCOLOR_RED,"This command menu number only for admin level 2!");
           
ShowPlayerDialog(playerid2DIALOG_STYLE_LIST"Admin command""/kick\n/ban\n/oban\n/unban\n/freeze\n/unfreeze\n/mute\n/unmute\n/spec\n/specoff\n/reports\n/chr\n/warn\n/unwarn\n/asay""Close""");
        }
        return 
1;
    } else return 
SendClientMessage(playerid,COLOR_RED,"You do not have permission to use this command!");

Reply


Messages In This Thread
acmd - by GeneralAref - 20.12.2015, 17:35
Re: acmd - by SaltySandy - 20.12.2015, 17:38
Re: acmd - by NourNN - 20.12.2015, 17:41
Re: acmd - by GeneralAref - 20.12.2015, 17:41
Re: acmd - by GeneralAref - 20.12.2015, 17:43
Re: acmd - by SaltySandy - 20.12.2015, 17:50
Re: acmd - by Younes44 - 20.12.2015, 17:51
Re: acmd - by jlalt - 20.12.2015, 18:01
Re: acmd - by GeneralAref - 20.12.2015, 18:13

Forum Jump:


Users browsing this thread: 1 Guest(s)