[FilterScript] iAdmin & iRegister system by iPrivate
#3

you can improve this, like:

pawn Код:
COMMAND:acmds(playerid)
{
    if(PlayerInfo[playerid][pAdmin] < 1)
        return SendClientMessage(playerid, COLOR_RED,"Error: You have to be admin or you are not high level enoguh in order to use this command!");
    switch(PlayerInfo[playerid][pAdmin])
    {
        case 1:
            SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
        case 2:
        {
            SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
            SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
        }
        case 3:
        {
            SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
            SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
            SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
        }
        case 4:
        {
            SendClientMessage(playerid, COLOR_RED, "Level 1: /kick - /armour - /health - /camera - /freeze - /unfreeze - /skin - /slap");
            SendClientMessage(playerid, COLOR_RED, "Level 2: /get - /goto - /ban - /announce - /givecar");
            SendClientMessage(playerid, COLOR_RED, "Level 3: /givegun - /kickall - /resetguns");
            SendClientMessage(playerid, COLOR_RED, "Level 4: /setlevel");
        }
    }
    return 1;
}
anyway good job for a beginner scripter
Reply


Messages In This Thread
iAdmin & iRegister system by iPrivate - by iPrivate - 16.12.2013, 19:56
Re: iAdmin & iRegister system by iPrivate - by Gen3i - 16.12.2013, 20:24
Re: iAdmin & iRegister system by iPrivate - by PT - 16.12.2013, 22:11
Re: iAdmin & iRegister system by iPrivate - by Team_PRO - 17.12.2013, 07:08
Re: iAdmin & iRegister system by iPrivate - by iPrivate - 17.12.2013, 15:42
Re: iAdmin & iRegister system by iPrivate - by Patrick - 17.12.2013, 15:48
Re: iAdmin & iRegister system by iPrivate - by juank - 17.12.2013, 15:59
Re: iAdmin & iRegister system by iPrivate - by PT - 17.12.2013, 17:19
Re: iAdmin & iRegister system by iPrivate - by DeathFire - 17.12.2013, 19:44
Re: iAdmin & iRegister system by iPrivate - by iPrivate - 19.12.2013, 19:34

Forum Jump:


Users browsing this thread: 1 Guest(s)