public enum AdminLevel {
None = 0,
Admin1,
Admin2,
Admin3,
Admin4,
Admin5,
Admin6,
Admin7,
Main,
Director,
}
private static string DefaultAdminAccess = JsonConvert.SerializeObject(new Dictionary<string, sbyte>()
{
{ AdminCommands.Id, 1 },
{ AdminCommands.Admins, 1 },
{ AdminCommands.A, 1 },
{ AdminCommands.Sp, 1 },
{ AdminCommands.Inv, 1 },
{ AdminCommands.Agm, 1 },
{ AdminCommands.Tpc, 1 },
{ AdminCommands.Kl, 1 },
{ AdminCommands.Checkdim, 1 },
{ AdminCommands.Setdim, 1 },
{ AdminCommands.Fz, 1 },
{ AdminCommands.UnFz, 1 },
{ AdminCommands.Mute, 1 },
{ AdminCommands.Offmute, 1 },
{ AdminCommands.Offunmute, 1 },
{ AdminCommands.Unmute, 1 },
{ AdminCommands.Flip, 1 },
{ AdminCommands.Stats, 1 },
{ AdminCommands.Offstats, 1 },
{ AdminCommands.Mypos, 1 },
{ AdminCommands.Nhistory, 1 },
{ AdminCommands.Checkwanted, 1 },
{ AdminCommands.Hp, 1 },
{ AdminCommands.Asms, 1 },
{ AdminCommands.Redname, 1 },
{ AdminCommands.Slap, 1 },
{ AdminCommands.ptime, 1},
{ AdminCommands.TakeMask, 1},
{ AdminCommands.Tpcarnumber, 1 },
{ AdminCommands.Spawn, 2 },
{ AdminCommands.Checkkill, 2 },
{ AdminCommands.Kick, 2 },
{ AdminCommands.Jail, 2 },
{ AdminCommands.Unjail, 2 },
{ AdminCommands.Offjail, 2 },
{ AdminCommands.Offunjail, 2 },
{ AdminCommands.Carnumber, 2 },
{ AdminCommands.Check, 2 },
{ AdminCommands.Fixcar, 2 },
{ AdminCommands.Fixcarid, 2 },
{ AdminCommands.Spveh, 2 },
{ AdminCommands.Spvehid, 2 },
{ AdminCommands.Tp, 2 },
{ AdminCommands.Ban, 3 },
{ AdminCommands.Warn, 3 },
{ AdminCommands.Checkmoney, 3 },
{ AdminCommands.Sethp, 3 },
{ AdminCommands.Delad, 3 },
{ AdminCommands.Metp, 3 },
{ AdminCommands.Metpcar, 3 },
{ AdminCommands.Setdimcar, 1 },
{ AdminCommands.Tpcar, 3 },
{ AdminCommands.Gm, 3 },
{ AdminCommands.Kill, 3 },
{ AdminCommands.Createmp, 3 },
{ AdminCommands.Startmp, 3 },
{ AdminCommands.Stopmp, 3 },
{ AdminCommands.Mpveh, 3 },
{ AdminCommands.Mpkick, 3 },
{ AdminCommands.Banmp, 3 },
{ AdminCommands.Unbanmp, 3 },
{ AdminCommands.Mphp, 3 },
//{ AdminCommands.Mpar, 3 },
{ AdminCommands.Mpplayers, 3 },
{ AdminCommands.Mpo, 3 },
{ AdminCommands.tphouse, 3 },
{ AdminCommands.tpbiz, 3 },
{ AdminCommands.Clear, 3 },
{ AdminCommands.mpskin, 3 },
{ AdminCommands.mpskins, 3 },
{ AdminCommands.mppos, 3 },
{ AdminCommands.Offwarn, 4 },
{ AdminCommands.Hardban, 4 },
{ AdminCommands.Offhardban, 4 },
{ AdminCommands.Offban, 4 },
{ AdminCommands.Global, 4 },
{ AdminCommands.Veh, 4 },
{ AdminCommands.Delveh, 4 },
{ AdminCommands.Delvehid, 4 },
{ AdminCommands.Delvehall, 4 },
{ AdminCommands.Delmyveh, 4 },
{ AdminCommands.Sendcreator, 4 },
{ AdminCommands.Revive, 4 },
{ AdminCommands.Delobj, 4 },
{ AdminCommands.Unwarn, 5 },
{ AdminCommands.Offunwarn, 5 },
{ AdminCommands.Setleader, 5 },
{ AdminCommands.Delleader, 5 },
{ AdminCommands.Deljob, 5 },
{ AdminCommands.Delfrac, 5 },
{ AdminCommands.Offdelfrac, 5 },
{ AdminCommands.Sban, 5 },
{ AdminCommands.Setar, 5 },
{ AdminCommands.Givegun, 5 },
{ AdminCommands.Delgun, 5 },
{ AdminCommands.Giveammo, 5 },
{ AdminCommands.Setname, 5 },
{ AdminCommands.Setnameoff, 5 },
{ AdminCommands.Afuel, 5 },
{ AdminCommands.Unban, 5 },
{ AdminCommands.Accept, 5 },
{ AdminCommands.Getlogin, 5 },
{ AdminCommands.Agl, 6 },
{ AdminCommands.Unbanip, 5 },
{ AdminCommands.SkipQuest, 5 },
{ AdminCommands.Stopmatwars, 5 },
{ AdminCommands.Hideme, 6 },
{ AdminCommands.Unhardban, 6 },
{ AdminCommands.Skick, 6 },
{ AdminCommands.Setbizmafia, 6 },
{ AdminCommands.Setcolour, 6 },
{ AdminCommands.Setskin, 6 },
{ AdminCommands.Elections, 6 },
{ AdminCommands.Sc, 6 },
{ AdminCommands.Sac, 6 },
{ AdminCommands.Pa, 6 },
{ AdminCommands.Sa, 6 },
{ AdminCommands.Szstate, 6 },
{ AdminCommands.Ishard, 6 },
{ AdminCommands.Promosync, 6 },
{ AdminCommands.Bonussync, 6 },
{ AdminCommands.Alog, 6 },
{ AdminCommands.Medialist, 6 },
{ AdminCommands.Startmatwars, 6 },
{ AdminCommands.Skin, 6 },
{ AdminCommands.Setvehcord, 6 },
{ AdminCommands.DelObjects, 6 },
{ AdminCommands.Clothoff, 9 },
{ AdminCommands.Tsc, 6 },
{ AdminCommands.Goadditem, 6 },
{ AdminCommands.Nalog, 6 },
{ AdminCommands.Acancel, 6 },
{ AdminCommands.Restart, 7 },
{ AdminCommands.Save, 7 },
{ AdminCommands.Banlogin, 7 },
{ AdminCommands.Setadmin, 7 },
{ AdminCommands.Deladmin, 7 },
{ AdminCommands.Offdeladmin, 7 },
{ AdminCommands.Arank, 7 },
{ AdminCommands.Offarank, 7 },
{ AdminCommands.Givevip, 7 },
{ AdminCommands.Giveexp, 7 },
{ AdminCommands.Givelvl, 7 },
{ AdminCommands.GetRb, 6 },
{ AdminCommands.GetVip, 1 },
{ AdminCommands.Payday, 7 },
{ AdminCommands.Offgivevip, 7 },
{ AdminCommands.Stt, 7 },
{ AdminCommands.Svm, 7 },
{ AdminCommands.Svn, 7 },
{ AdminCommands.Svh, 7 },
{ AdminCommands.Setfractun, 7 },
{ AdminCommands.Setfracveh, 7 },
{ AdminCommands.Vehs, 7 },
{ AdminCommands.Fclear, 7 },
{ AdminCommands.Aclear, 7 },
{ AdminCommands.Enablefunc, 7 },
{ AdminCommands.setfamily, 7 },
{ AdminCommands.Crimeban, 6 },
{ AdminCommands.Offcrimeban, 6 },
{ AdminCommands.Uncrimeban, 6 },
{ AdminCommands.Offuncrimeban, 6 },
{ AdminCommands.Givecarnumber, 8 },
{ AdminCommands.Additem, 8 },
{ AdminCommands.Carcoupon, 8 },
{ AdminCommands.Giveroyals, 8 },
{ AdminCommands.Giveroyalsall, 9 },
{ AdminCommands.Offgivemoney, 8 },
{ AdminCommands.Givemoney, 8 },
{ AdminCommands.Giveclothes, 8 },
{ AdminCommands.Takeoffbiz, 8 },
{ AdminCommands.Fsetcmd, 8 },
{ AdminCommands.Vlist, 8 },
{ AdminCommands.Setprod, 8 },
{ AdminCommands.Changestock, 8 },
{ AdminCommands.Vehchange, 8 },
{ AdminCommands.offgiveroyals, 8 },
{ AdminCommands.creategarage, 8 },
{ AdminCommands.setbliporg, 8 },
{ AdminCommands.delbliporg, 8 },
{ AdminCommands.setmicrophone, 8 },
{ AdminCommands.Spvehs, 7 },
{ AdminCommands.SaveServer, 9 },
{ AdminCommands.Att, 9 },
{ AdminCommands.Givecase, 9 },
{ AdminCommands.Hidenick, 9 },
{ AdminCommands.Newsimcard, 9 },
{ AdminCommands.Createbusiness, 9 },
{ AdminCommands.Createunloadpoint, 9 },
{ AdminCommands.Changebiztax, 9 },
{ AdminCommands.Deletebusiness, 9 },
{ AdminCommands.Setproductbyindex, 9 },
{ AdminCommands.Deleteproducts, 9 },
{ AdminCommands.Changebizprice, 9 },
{ AdminCommands.Changehouseprice, 9 },
{ AdminCommands.Housetypeprice, 9 },
{ AdminCommands.Delhouseowner, 9 },
{ AdminCommands.Dmgmodif, 9 },
{ AdminCommands.Vehcustom, 9 },
{ AdminCommands.Vehcustompcolor, 9 },
{ AdminCommands.Vehcustomscolor, 9 },
{ AdminCommands.Sl, 9 },
{ AdminCommands.Sw, 9 },
{ AdminCommands.St, 9 },
{ AdminCommands.loadipl, 9 },
{ AdminCommands.unloadipl, 9 },
{ AdminCommands.loadprop, 9 },
{ AdminCommands.unloadprop, 9 },
{ AdminCommands.starteffect, 9 },
{ AdminCommands.stopeffect, 9 },
//{ AdminCommands.muted, 9 },
{ AdminCommands.createsafe, 9 },
{ AdminCommands.removesafe, 9 },
{ AdminCommands.setvehdirt, 9 },
{ AdminCommands.givehc, 6 },
{ AdminCommands.givehcrad, 6 },
{ AdminCommands.tr_ev_start, 9 },
{ AdminCommands.removegarage, 9 },
{ AdminCommands.createhouse, 9 },
{ AdminCommands.setparkplace, 9 },
{ AdminCommands.setgarage, 9 },
{ AdminCommands.removehouse, 9 },
{ AdminCommands.housechange, 9 },
});