подскажи пожалуйста где находится ранги админов на редейджи 3 версии?dotnet\resources\NeptuneEvoSDK\Models\ServerSettings.cs
1. Там строчка 14
public byte ServerId = 0;
С нуля меняешь на 1
Должно получиться так:
public byte ServerId = 1;
2. После чего собираешь проект.
3. После чего идешь в корень сервера в папку settings
Там есть файл serverSettings.json
В нем на строке 3
"ServerId": 0,
С нуля меняешь на 1
Должно получиться так:
"ServerId": 1,
4. Потом идешь в папку src_client
По пути src_client\utils\cef.js открываешь файл cef.js и там меняешь на строке 18
if (serverId === 0)
С нуля меняешь на 1
Должно получиться так:
if (serverId === 1)
После чего собираешь клиент часть.
Все теперь не кто не сможет без админки пользоваться такими командами как:
/givemoney и т.д.
На этом все...
Открываешь dotnet / core / adminacces если не ошибаюсь там есть и в бд указан рангиподскажи пожалуйста где находится ранги админов на редейджи 3 версии?
Заходишь по пути NeptuneEvo\Fractions там есть файл FractionCommands.csподскажи пожалуйста где находится ранги админов на редейджи 3 версии?
private static string DefaultAdminAccess = JsonConvert.SerializeObject(new Dictionary<string, sbyte>()
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.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.Givereds, 8 },
{ AdminCommands.Giveredsall, 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.offgivereds, 8 },
{ AdminCommands.creategarage, 8 },
{ AdminCommands.setbliporg, 8 },
{ AdminCommands.delbliporg, 8 },
{ AdminCommands.setmicrophone, 8 },
{ AdminCommands.Spvehs, 7 },
{ 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 },
});
AdminCommands.Id, 1,
Не верно.Открываешь dotnet / core / adminacces если не ошибаюсь там есть и в бд указан ранги
спасибоЗаходишь по пути NeptuneEvo\Fractions там есть файл FractionCommands.cs
Делаешь поиск:
C#:private static string DefaultAdminAccess = JsonConvert.SerializeObject(new Dictionary<string, sbyte>()
После чего находишь вот такое:
C#: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.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.Givereds, 8 }, { AdminCommands.Giveredsall, 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.offgivereds, 8 }, { AdminCommands.creategarage, 8 }, { AdminCommands.setbliporg, 8 }, { AdminCommands.delbliporg, 8 }, { AdminCommands.setmicrophone, 8 }, { AdminCommands.Spvehs, 7 }, { 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 }, });
Там где цифра то и есть уровень Администратора.
Например:
C#:AdminCommands.Id, 1,
Команда: /id (доступная с 1 уровня Администратора)
dotnet\resources\NeptuneEvoSDK\Models\ServerSettings.cs
1. Там строчка 14
public byte ServerId = 0;
С нуля меняешь на 1
Должно получиться так:
public byte ServerId = 1;
2. После чего собираешь проект.
3. После чего идешь в корень сервера в папку settings
Там есть файл serverSettings.json
В нем на строке 3
"ServerId": 0,
С нуля меняешь на 1
Должно получиться так:
"ServerId": 1,
4. Потом идешь в папку src_client
По пути src_client\utils\cef.js открываешь файл cef.js и там меняешь на строке 18
if (serverId === 0)
С нуля меняешь на 1
Должно получиться так:
if (serverId === 1)
После чего собираешь клиент часть.
Все теперь не кто не сможет без админки пользоваться такими командами как:
/givemoney и т.д.
На этом все...
Не верно.
Если не знаешь лучше промолчи не заводи человека в заблуждение.
и как минимум не разбирая, если человек будет 0 айди и он администратор, не будет же работать?)Лучше тебе не вводить в заблуждение людей. Единственный НОРМАЛЬНЫЙ фикс этой проблемы - валидация всех клиентских евентов, которые обрабатываются на сервере, чтоб люди не имели доступа к игровому режиму без авторизации. То, что сделал ты - полная хуета. В целом от людей, которые ковыряют чужие моды ожидать большего и не стоит ;3
Если делать нормальную валидацию - нети как минимум не разбирая, если человек будет 0 айди и он администратор, не будет же работать?)
код который дал человек сверху,разве не дает запрет на использование чего либо нулевому айди? даже если это будет просто игрокЕсли делать нормальную валидацию - нет
Даёт это запрет.код который дал человек сверху,разве не дает запрет на использование чего либо нулевому айди? даже если это будет просто игрок
не подскажишь ещё как сделать проверку на уровень админки? чтобы маленькие ранги не могли забанить и так далееЗаходишь по пути NeptuneEvo\Fractions там есть файл FractionCommands.cs
Делаешь поиск:
C#:private static string DefaultAdminAccess = JsonConvert.SerializeObject(new Dictionary<string, sbyte>()
После чего находишь вот такое:
C#: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.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.Givereds, 8 }, { AdminCommands.Giveredsall, 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.offgivereds, 8 }, { AdminCommands.creategarage, 8 }, { AdminCommands.setbliporg, 8 }, { AdminCommands.delbliporg, 8 }, { AdminCommands.setmicrophone, 8 }, { AdminCommands.Spvehs, 7 }, { 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 }, });
Там где цифра то и есть уровень Администратора.
Например:
C#:AdminCommands.Id, 1,
Команда: /id (доступная с 1 уровня Администратора)
Ты у нас умный парень дерзай )не подскажишь ещё как сделать проверку на уровень админки? чтобы маленькие ранги не могли забанить и так далее
Выполни пункт.после этих действий как вы показали сделать то у меня на сервере пропала вообще меню регистрации а сделал как по инструкции в чём может быт ьпробелма/