Some errors for a command
#4

pawn Код:
CMD:adcmds(playerid,params[])
{
    new admstring[256];
    if(pInfo[playerid][Adminlevel] >=1)
    {
        format(admstring,sizeof(admstring),"{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.");
        ShowPlayerDialog(playerid,DIALOG_ADCMDS,DIALOG_STYLE_MSGBOX,"{FF0000}Admin Level 1 Commands",admstring,"Ok","Cancel");
    }
    if(pInfo[playerid][Adminlevel] >=2)
    {
        format(admstring,sizeof(admstring),"{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.\n/kick - To kick a player.\n/goto - To teleport to a player.");
        ShowPlayerDialog(playerid,DIALOG_ADCMDS,DIALOG_STYLE_MSGBOX,"{FF0000}Admin Level 2 Commands","{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.\n/kick - To kick a player.\n/goto - To teleport to a player.","Ok","Cancel");
    }
    if(pInfo[playerid][Adminlevel] >=3)
    {
        format(admstring,sizeof(admstring),"{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.\n/kick - To kick a player.\n/goto - To teleport to a player.");
        strcat(admstring,"\n/ban - to ban a player.\n/setmoney - To set someone's money.\n/setarmor - To set player armor.\n/sethp - To set player's health.\n/fly - To get jetpack.\n/addrp - To add someone to rp list.");
        ShowPlayerDialog(playerid,DIALOG_ADCMDS,DIALOG_STYLE_MSGBOX,"{FF0000}Admin Level 3 Commands",admstring,"Ok","Cancel");
    }
    if(pInfo[playerid][Adminlevel] >=4)
    {
        format(admstring,sizeof(admstring),"{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.\n/kick - To kick a player.\n/goto - To teleport to a player.");
        strcat(admstring,"\n/ban - to ban a player.\n/setmoney - To set someone's money.\n/setarmor - To set player armor.\n/sethp - To set player's health.\n/fly - To get jetpack.\n/addrp - To add someone to rp list.\n/unban - To unban a player.");
        ShowPlayerDialog(playerid,DIALOG_ADCMDS,DIALOG_STYLE_MSGBOX,"{FF0000}Admin Level 4 Commands",admstring,"Ok","Cancel");
    }
    if(pInfo[playerid][Adminlevel] >=5)
    {
        format(admstring,sizeof(admstring),"{FFFFFF}/warn - Usage /warn [id] [reason].\n/clearchat - To clear the chat.\n/adan - To announce something to the server.\n/kick - To kick a player.\n/goto - To teleport to a player.");
        strcat(admstring,"\n/ban - to ban a player.\n/setmoney - To set someone's money.\n/setarmor - To set player armor.\n/sethp - To set player's health.\n/fly - To get jetpack.\n/addrp - To add someone to rp list.\n/unban - To unban a player.\n/makeadmin - To add someone to admin list.");
        ShowPlayerDialog(playerid,DIALOG_ADCMDS,DIALOG_STYLE_MSGBOX,"{FF0000}Admin Level 5 Commands",admstring,"Ok","Cancel");
    }
    return 1;
}
Try this out
Reply


Messages In This Thread
Some errors for a command - by DarkLored - 23.10.2013, 22:33
Re: Some errors for a command - by Blademaster680 - 23.10.2013, 22:39
Re: Some errors for a command - by DarkLored - 23.10.2013, 22:41
Re: Some errors for a command - by -=Dar[K]Lord=- - 23.10.2013, 22:42
Re: Some errors for a command - by DarkLored - 23.10.2013, 22:45

Forum Jump:


Users browsing this thread: 1 Guest(s)