Need me help for admin command [+REP]
#9

Quote:
Originally Posted by Devilxz97
Посмотреть сообщение
pawn Код:
#include a_samp // by samp dev team
#include zcmd //use zcmd by zeex

enum pInfo
{
    pAdmin //i dont know your variables
}
new PlayerInfo[MAX_PLAYERS][pInfo];

CMD:editorcmd(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 4) //this will allow admin level 4++ to use the commands
    {
        ShowPlayerDialog(playerid, DIALOG_MAIN_MENU, DIALOG_STYLE_LIST, "WestSide Object Editor", "Create object\nSearch object models\nDelete object\nEdit object\nSave object\nLoad objects", "Select", "Cancel");
    }
    else
    {
        SendClientMessage(playerid, -1, "You need to be Admin level 4 to use this Commands!"); //the warning
    }
    return 1;
}
try this ..
You just pasted exactly the same thing I did. Lol
Reply


Messages In This Thread
Need me help for admin command [+REP] - by dundolina - 28.07.2012, 18:28
Re: Need me help for admin command [+REP] - by Alexis1999 - 28.07.2012, 18:36
Re: Need me help for admin command [+REP] - by dundolina - 28.07.2012, 18:50
Re: Need me help for admin command [+REP] - by Alexis1999 - 28.07.2012, 18:53
Re: Need me help for admin command [+REP] - by dundolina - 28.07.2012, 18:57
Re: Need me help for admin command [+REP] - by dundolina - 28.07.2012, 19:33
Re: Need me help for admin command [+REP] - by dundolina - 28.07.2012, 20:18
Re: Need me help for admin command [+REP] - by Devilxz97 - 28.07.2012, 20:58
Re: Need me help for admin command [+REP] - by Alexis1999 - 28.07.2012, 21:38
Re: Need me help for admin command [+REP] - by dundolina - 28.07.2012, 22:24

Forum Jump:


Users browsing this thread: 1 Guest(s)