20.01.2014, 17:10
I have recently made a /help command that looks like this:
Now I know I am not the best scripter and that their are probably a lot better ways of doing this but this is supposed to work, however, when I get in game and I do /help All it shows me is my faction commands and the player commands but not the admin commands. It's supposed to show me this:
I have made sure I am admin level five and in faction one. But it still doesn't work. Can anyone help me out?
Код:
CMD:help(playerid) { if(Faction[playerid] == 0) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); return 1; } else if(Faction[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); return 1; } else if(Faction[playerid] == 1 && Admin[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "MODERATOR COMMANDS: /staff, /slap, /jail, /kick, /tptoggle"); return 1; } else if(Faction[playerid] == 1 && Admin[playerid] == 2) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "JADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); return 1; } else if(Faction[playerid] == 1 && Admin[playerid] == 3) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /ban, /giveweapon"); return 1; } else if(Faction[playerid] == 1 && Admin[playerid] == 4) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze "); return 1; } else if(Faction[playerid] == 1 && Admin[playerid] == 5) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze, "); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /noalex, /makeadmin"); return 1; } else if(Faction[playerid] == 2) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); return 1; } else if(Faction[playerid] == 2 && Admin[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "MODERATOR COMMANDS: /staff, /slap, /jail, /kick, /tptoggle"); return 1; } else if(Faction[playerid] == 2 && Admin[playerid] == 2) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "JADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); return 1; } else if(Faction[playerid] == 2 && Admin[playerid] == 3) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /ban, /giveweapon"); return 1; } else if(Faction[playerid] == 2 && Admin[playerid] == 4) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze "); return 1; } else if(Faction[playerid] == 2 && Admin[playerid] == 5) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze, "); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /noalex, /makeadmin"); return 1; } else if(Faction[playerid] == 3) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFES COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r, /g"); return 1; } else if(Faction[playerid] == 3 && Admin[playerid] == 1) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFES COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r, /g"); SendClientMessage(playerid, COLOR_WHITE, "MODERATOR COMMANDS: /staff, /slap, /jail, /kick, /tptoggle"); return 1; } else if(Faction[playerid] == 3 && Admin[playerid] == 2) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFES COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r, /g"); SendClientMessage(playerid, COLOR_WHITE, "JADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); return 1; } else if(Faction[playerid] == 3 && Admin[playerid] == 3) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFES COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r, /g"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "GADMIN COMMANDS: /ban, /giveweapon"); return 1; } else if(Faction[playerid] == 3 && Admin[playerid] == 4) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFES COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r, /g"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "SADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze "); return 1; } else if(Faction[playerid] == 3 && Admin[playerid] == 5) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /elevator, /m, /r,"); SendClientMessage(playerid, COLOR_WHITE, "GVN COMMANDS: /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze, "); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /noalex, /makeadmin"); return 1; } return 1; }
Код:
else if(Faction[playerid] == 1 && Admin[playerid] == 5) { SendClientMessage(playerid, COLOR_WHITE, "GENERAL COMMANDS: /help, /enter, /exit, /k(ill)c(heckpoint), /ping, /vwreset, /pm, /togpms"); SendClientMessage(playerid, COLOR_WHITE, "CHAT COMMANDS: /me, /do, /s, /low, /w(hisper), /pm"); SendClientMessage(playerid, COLOR_WHITE, "VEHICLE COMMANDS: /e, /car, /cr, /nos, /hyd, /unmodcar"); SendClientMessage(playerid, COLOR_WHITE, "FINANCIAL COMMANDS: /pay"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /invite, /uninvite, /quitgroup, /siren, /gate, /open, /locker, /elevator"); SendClientMessage(playerid, COLOR_WHITE, "SFPD COMMANDS: /m, /r, /g, /cuff, /uncuff, /mdcfind"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /staff, /slap, /jail, /kick, /tptoggle, /tp. /tphere, /setskin, /warp, /unjail"); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /ban, /banip, /giveweapon(ex), /tpo, /tpohere, /givemoney, /ha, /(un)freeze, "); SendClientMessage(playerid, COLOR_WHITE, "HADMIN COMMANDS: /noalex, /makeadmin"); return 1; }