-- Профа Админа
TEAM_STAFF = DarkRP.createJob("Администратор", {
color = Color(84, 0, 0, 255),
model = {"models/crow.mdl"},
description = [[Вы админ! :)]],
weapons = {"weapon_keypadchecker"},
command = "staff",
max = 0,
salary = 800,
admin = 0,
vote = false,
hasLicense = false,
candemote = false,
category = "Администрация",
customCheck = function(ply) return
table.HasValue({"moderator", "helper", "trialadmin", "admin", "headadmin", "kurator", "manager", "superadmin"}, ply:GetNWString("usergroup")) -- здесь привилегии которые могут за него заходить
end,
CustomCheckFailMsg = "Вы не админ чтобы быть им!",
PlayerSpawn = function(ply)
ply:GodEnable()
end
})
-- Профа Забаненого
TEAM_BANNED = DarkRP.createJob("Забанен", {
color = Color(200, 50, 50, 255),
model = {"models/player/skeleton.mdl"},
description = "Вы забанены.",
weapons = {},
command = "banned",
modelScale = 0.1,
max = 0,
salary = 0,
admin = 0,
vote = false,
category = "Остальное",
hasLicense = false,
customCheck = function(ply) return CLIENT or
table.HasValue({"superadmin"}, ply:GetNWString("usergroup"))
end,
CustomCheckFailMsg = "Ты не в бане!",
})