Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Разработано Rex Interactive / MR.REX --
- local ADMIN_ACCESS = {
- "76561198084777060", -- MR.REX
- "76561198397977075", -- MR.MAKSIM
- "76561198113116493", -- MR.ZERO
- "76561198310625158", -- HACKING
- "76561198277006935", -- Bagz
- "76561198373754393", -- Yotex
- "76561198267493338", -- Tarn
- "76561198311202047", -- Rin
- }
- util.AddNetworkString( "navex_spawn_visual" );
- function check_admin_list(ply)
- navex_spawn_access = false;
- if ply:IsAdmin() or ply:IsSuperAdmin() then
- navex_spawn_access = true;
- end
- -- Вот тут должна быть РАБОЧАЯ система свой/чужой
- -- Должно возвращать true при совпадении, при false менюху не откроет.
- return navex_spawn_access;
- end
- concommand.Add( "navex_spawn_173", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP173(); end
- end )
- concommand.Add( "navex_spawn_049", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP049(); end
- end )
- concommand.Add( "navex_spawn_106", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP106(); end
- end )
- concommand.Add( "navex_spawn_457", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP457(); end
- end )
- concommand.Add( "navex_spawn_966", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP966(); end
- end )
- concommand.Add( "navex_spawn_096", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP096(); end
- end )
- concommand.Add( "navex_spawn_035", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP035(); end
- end )
- concommand.Add( "navex_spawn_682", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP682(); end
- end )
- concommand.Add( "navex_spawn_939", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP939(); end
- end )
- concommand.Add( "navex_spawn_993", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP993(); end
- end )
- concommand.Add( "navex_spawn_999", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP999(); end
- end )
- concommand.Add( "navex_spawn_166", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP166(); end
- end )
- concommand.Add( "navex_spawn_1048", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP1048(); end
- end )
- concommand.Add( "navex_spawn_1048a", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP1048a(); end
- end )
- concommand.Add( "navex_spawn_066", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:SetSCP066(); end
- end )
- -- КЛАСС-Д ПЕРСОНАЛ
- concommand.Add( "navex_spawn_classd", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["classds"]["roles"][1]); end
- end )
- concommand.Add( "navex_spawn_classd_vet", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["classds"]["roles"][2]); end
- end )
- concommand.Add( "navex_spawn_classd_thief", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["classds"]["roles"][3]); end
- end )
- concommand.Add( "navex_spawn_classd_killer", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["classds"]["roles"][4]); end
- end )
- -- НАУЧНЫЙ ПЕРСОНАЛ
- concommand.Add( "navex_spawn_resercher", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["researchers"]["roles"][1]); end
- end )
- concommand.Add( "navex_spawn_resercher_med", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["researchers"]["roles"][2]); end
- end )
- -- Служба безопасности
- concommand.Add( "navex_spawn_guard", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][1]); end
- end )
- concommand.Add( "navex_spawn_guard_com", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][2]); end
- end )
- -- МОГ
- concommand.Add( "navex_spawn_mtf", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][3]); end
- end )
- concommand.Add( "navex_spawn_mtf_med", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][4]); end
- end )
- concommand.Add( "navex_spawn_mtfl", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][5]); end
- end )
- concommand.Add( "navex_spawn_hazmat", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][6]); end
- end )
- concommand.Add( "navex_spawn_mtf_com", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][7]); end
- end )
- -- Директор комплекса
- concommand.Add( "navex_spawn_sd", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["security"]["roles"][8]); end
- end )
- -- Хаос
- concommand.Add( "navex_spawn_chaos", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["support"]["roles"][2]); end
- end )
- -- МОГ ЭПСИЛОН
- concommand.Add( "navex_spawn_ntf", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- ply:UnSpectate();
- ply:StripWeapons();
- ply:RemoveAllAmmo();
- ply:ApplyRoleStats(ALLCLASSES["support"]["roles"][1]); end
- end )
- -- Визуальная составляющая
- concommand.Add( "navex_spawn", function( ply, cmd, args )
- if check_admin_list(ply) == true then
- net.Start( "navex_spawn_visual" );
- net.Send( ply );
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement