Trasfering to dialog
#3

pawn Код:
CMD:ahelp(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(!PlayerInfo[playerid][pAdmin]) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    new string[2715];
    strcat(string, "{FFFFFF}Level 1: /a /aname /aduty /apm /kick /(un)ban(reason/ip) /(s)check /slap /spec /ar /dr /(n)mute /stopfire\n");
    strcat(string, "Level 1: /goto(loc) /gethere /revive /refund /ipcheck /ch /freeze /unfreeze /fa /ufa /healnear /startfire\n");
    strcat(string, "Level 1: /setvw /setint /makevip /disarm /gotoveh /getveh /sendtols /tuteject /forcetut /listen /lastseen\n");
    strcat(string, "Level 1: /setskin /banaccount /prison(account) /approve /deny /prisoners /contracts /clearcontract\n");
    strcat(string, "Level 1: /clearwanted /respawn(radius) /gotopos /sendtoid /veh /interiors /pfine /fine /listguns\n");
    strcat(string, "Level 1: /(show/clear)flag(s) /reportmute /(clear)warn(s) /refuel /givecookie /tog /tabbed /afk\n\n");
    if(PlayerInfo[playerid][pAdmin] >= 2)
    {
        strcat(string, "Level 2: /****** /infotoall /interiors /mark /time /jetpack /sethp /setarmor /listmasked\n");
        strcat(string, "Level 2: /hoseject /lastads /clearchat /whitelist /givenos /sendtoid /speedhack /setfightstyle\n");
        strcat(string, "Level 2: /veh /setname /vehname /rangeban /editdrugs /cnnn /clearads /online /editpoint /setstat\n\n");
    }
    if(PlayerInfo[playerid][pAdmin] >= 3)
    {
        strcat(string, "Level 3: /weatherall /(set/give)(all)money /setarmorall /sethpall /fixveh(all) /poll /givegun\n");
        strcat(string, "Level 3: /forcepaycheck /givecookieall /arrestpoint /music /(take/remove/give)nameonoff /setreferrals\n");
        strcat(string, "Level 3: /setoocmode /say /customvehicle /goldrims /eventhelp /bowners /maketester /setaccent\n\n");
    }
    if(PlayerInfo[playerid][pAdmin] >= 4)
    {
        strcat(string, "Level 4: /bugs /kill /ideas /acolor /bans /deleteaccount /motd /setpass /forceduty\n");
        strcat(string, "Level 4: /make(helper/banappealer/gang/fac)(mod) /make(temp)admin /firehell /oremove(helper/admin)\n");
        strcat(string, "Level 4: /unloyal /lockserver /saveserver /savebizhouses /delete(bug/idea) /removeban /makeleader\n");
        strcat(string, "Level 4: /makegateowner /dynamics /familieshelp /make(door/house/biz)mod /makegameaffairs\n\n");
    }
    if(PlayerInfo[playerid][pAdmin] >= 5) strcat(string, "Level 5: /(g)gmx\n\n");
    if(PlayerInfo[playerid][pGangMod]) strcat(string, "GANG MOD: /fcreate /fdelete /fedit /fstrike /fstrikes /switchfam\n");
    if(PlayerInfo[playerid][pFacMod]) strcat(string, "FACTION MOD: /makeleader /fackick /switchfac\n");
    if(PlayerInfo[playerid][pBanAppealer]) strcat(string, "BAN APPEALER: /unban /unbanip\n");
    if(PlayerInfo[playerid][pDoorMod]) strcat(string, "DOOR MOD: /createdoor /deletedoor /gotodoor /dedit /dused\n");
    if(PlayerInfo[playerid][pBizMod]) strcat(string, "BIZ MOD: /createbiz /deletebiz /gotobiz /asellbiz /bedit /bused\n");
    if(PlayerInfo[playerid][pHouseMod]) strcat(string, "HOUSE MOD: /createhouse /deletehouse /gotohouse /asellhouse /hedit /hused\n");
    if(PlayerInfo[playerid][pGameAffairs]) strcat(string, "Game Affairs: /make(door/house/biz/gang/fac)mod");
    ShowPlayerDialog(playerid, DIALOG_ID, DIALOG_STYLE_MSGBOX, "Admin Help", string, "Okay", "");
    //Replace 'DIALOG_ID' with the ID that you would like to use.
    return 1;
}
That's a BIG dialog.
Reply


Messages In This Thread
Trasfering to dialog - by Team_PRO - 03.06.2014, 12:04
Re: Trasfering to dialog - by ikkentim - 03.06.2014, 12:11
Re: Trasfering to dialog - by Threshold - 03.06.2014, 12:52

Forum Jump:


Users browsing this thread: 2 Guest(s)