25.06.2018, 14:22
Quote:
PHP код:
|
it should be like this:
PHP код:
COMMAND:acmds(playerid, params[])
{
new string[950];
if(Player[playerid][Level] < 1) return SendClientMessage(playerid, COLOR_RED, "ERROR: {FFFFFF}You do not have the permission to use this command!");
////////////////////////////////////////////////////////////////////////
if(Player[playerid][Level] == 1)
{
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 1","/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn","Close", "");
}
if(Player[playerid][Level] == 2)
{
strcat(string, "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n");
strcat(string, "/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n");
strcat(string, "/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail\n");
strcat(string, "/aheal, /aarmour, /forcerules, /playerbank, /get, /permban(acc), /explode, /unjail\n");
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 2",string, "Close");
}
if(Player[playerid][Level] == 3)
{
strcat(string, "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n");
strcat(string, "/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n");
strcat(string, "/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n");
strcat(string, "/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n");
strcat(string, "/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n");
strcat(string, "/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n");
strcat(string, "/slay, /disarm, /giveweapon, /unban\n", string);
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 3",string, "Close");
}
if(Player[playerid][Level] == 4)
{
strcat(string, "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n");
strcat(string, "/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n");
strcat(string, "/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n");
strcat(string, "/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n");
strcat(string, "/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n");
strcat(string, "/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n");
strcat(string, "/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n");
strcat(string, "/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n");
strcat(string, "/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer\n");
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 4",string, "Close");
}
if(Player[playerid][Level] == 5)
{
strcat(string, "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n");
strcat(string, "/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n");
strcat(string, "/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n");
strcat(string, "/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n");
strcat(string, "/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n");
strcat(string, "/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n");
strcat(string, "/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n");
strcat(string, "/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n");
strcat(string, "/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer, /setmoney\n");
strcat(string, "/setxp, /silvervip, /basicvip, /goldvip, /givetoken, /kickall\n");
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 5",string, "Close");
}
if(Player[playerid][Level] >= 6)
{
strcat(string, "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n");
strcat(string, "/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n");
strcat(string, "/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n");
strcat(string, "/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n");
strcat(string, "/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n");
strcat(string, "/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n");
strcat(string, "/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n");
strcat(string, "/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n");
strcat(string, "/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer, /setmoney\n");
strcat(string, "/setxp, /silvervip, /basicvip, /goldvip, /givetoken, /kickall\n\n");
strcat(string, "{FF0000}/setlevel, /(promote/remove)bouncer, /(promote/remove)helper\n");
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 6 - 7",string, "Close");
}
return 1;
}