24.06.2018, 22:55
PHP код:
COMMAND:acmds(playerid, params[])
{
new string[2068];
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", sizeof(string));
strcat(string, "%s/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n", sizeof(string));
strcat(string, "%s/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail\n", sizeof(string));
strcat(string, "%s/aheal, /aarmour, /forcerules, /playerbank, /get, /permban(acc), /explode, /unjail\n", sizeof(string));
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", sizeof(string));
strcat(string, "%s/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n", sizeof(string));
strcat(string, "%s/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n", sizeof(string));
strcat(string, "%s/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n", sizeof(string));
strcat(string, "%s/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n", sizeof(string));
strcat(string, "%s/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n", sizeof(string));
strcat(string, "%s/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", sizeof(string));
strcat(string, "%s/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n", sizeof(string));
strcat(string, "%s/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n", sizeof(string));
strcat(string, "%s/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n", sizeof(string));
strcat(string, "%s/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n", sizeof(string));
strcat(string, "%s/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n", sizeof(string));
strcat(string, "%s/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n", sizeof(string));
strcat(string, "%s/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n", sizeof(string));
strcat(string, "%s/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer\n", sizeof(string));
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", sizeof(string));
strcat(string, "%s/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n", sizeof(string));
strcat(string, "%s/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n", sizeof(string));
strcat(string, "%s/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n", sizeof(string));
strcat(string, "%s/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n", sizeof(string));
strcat(string, "%s/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n", sizeof(string));
strcat(string, "%s/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n", sizeof(string));
strcat(string, "%s/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n", sizeof(string));
strcat(string, "%s/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer, /setmoney\n", sizeof(string));
strcat(string, "%s/setxp, /silvervip, /basicvip, /goldvip, /givetoken, /kickall\n", sizeof(string));
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 5",string, "Close");
}
if(Player[playerid][Level] >= 6)
{
strcat(string, sizeof(string), "/getip, /vfix, /accolor, /vnitro, /vrespawn, /aod, /ans(wer), /jaillist, /arules, /ahelp\n", sizeof(string));
strcat(string, sizeof(string), "%s/asay, /mute, /unmute, /warn, /goto, /clearchat, /tempban, /kick, /spawn\n", sizeof(string));
strcat(string, sizeof(string), "%s/teleport, /vc, /vdestroy, /respawnalluv, /destroyallav, /tempname, /removename, /jail, /unjail\n", sizeof(string));
strcat(string, sizeof(string), "%s/aheal, /aarmour, /forcerules, /playerbank, /(un)freeze, /get, /permban(acc), /explode\n", sizeof(string));
strcat(string, sizeof(string), "%s/givemoney, /respawnallv, /setinterior, /setvirtualword, /swapmotd, /settime, /setday, /announce\n", sizeof(string));
strcat(string, sizeof(string), "%s/gotovehicle, /arenas, /playertokens, /playerjob, /acure, /playerjailtime, /blockreport, /blockask\n", sizeof(string));
strcat(string, sizeof(string), "%s/slay, /disarm, /giveweapon, /unban, /setwanted, /givexp, /topdonator, /motd, /alog, /fine, /setskin\n", sizeof(string));
strcat(string, sizeof(string), "%s/astream, /saveallstats, /faketip, /ping, /teleportevent, /(un)copban, /(un)armyban, /giveallweapon\n", sizeof(string));
strcat(string, sizeof(string), "%s/disarmall, /(un)freezeevent, /giveeventweapon, /reseteventweapons, /spawneventplayer, /setmoney\n", sizeof(string));
strcat(string, sizeof(string), "%s/setxp, /silvervip, /basicvip, /goldvip, /givetoken, /kickall\n\n", sizeof(string));
strcat(string, sizeof(string), "%s{FF0000}/setlevel, /(promote/remove)bouncer, /(promote/remove)helper\n", sizeof(string));
ShowPlayerDialog(playerid, DIALOG_UNUSED, DIALOG_STYLE_MSGBOX, "Admin Commands Level 6 - 7",string, "Close");
}
return 1;
}