andrey1221235
Пользователь
- Регистрация
- 20 Ноя 2019
- Сообщения
- 9
- Реакции
- 0
- Баллы
- 13
TEAM_MAYOR = DarkRP.createJob("Мэр", {
color = Color(255, 0, 0, 255),
model = {"models/player/donald_trump.mdl"},
description = [[
✔ Описание:
● Вы Мэр!
● Создавайте законы, регулируйте политику города.
● Контролируйте этот город.
✔ Правила:
● Вам Запрещенно иметь тяжёлое оружие
● Вам нельзя грабить банк и игрока.
● Вам нельзя объединяться с мафией]],
weapons = {"weapon_adv_keys", "weapon_physcannon", "gmod_tool", "weapon_physgun", "weapon_fists", "itemstore_pickup", "weapon_fists"},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Граждане",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Мэр был убит.")
else
DarkRP.notifyAll(0, 4, "Мэр скончался.")
end
end
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)
color = Color(255, 0, 0, 255),
model = {"models/player/donald_trump.mdl"},
description = [[
✔ Описание:
● Вы Мэр!
● Создавайте законы, регулируйте политику города.
● Контролируйте этот город.
✔ Правила:
● Вам Запрещенно иметь тяжёлое оружие
● Вам нельзя грабить банк и игрока.
● Вам нельзя объединяться с мафией]],
weapons = {"weapon_adv_keys", "weapon_physcannon", "gmod_tool", "weapon_physgun", "weapon_fists", "itemstore_pickup", "weapon_fists"},
command = "mayor",
max = 1,
salary = GAMEMODE.Config.normalsalary * 1.89,
admin = 0,
vote = true,
hasLicense = false,
mayor = true,
category = "Граждане",
PlayerDeath = function(ply, weapon, killer)
ply:teamBan()
ply:changeTeam(GAMEMODE.DefaultTeam, true)
if killer:IsPlayer() then
DarkRP.notifyAll(0, 4, "Мэр был убит.")
else
DarkRP.notifyAll(0, 4, "Мэр скончался.")
end
end
})
--[[---------------------------------------------------------------------------
Define which team joining players spawn into and what team you change to if demoted
---------------------------------------------------------------------------]]
GAMEMODE.DefaultTeam = TEAM_CITIZEN
--[[---------------------------------------------------------------------------
Define which teams belong to civil protection
Civil protection can set warrants, make people wanted and do some other police related things
---------------------------------------------------------------------------]]
GAMEMODE.CivilProtection = {
[TEAM_POLICE] = true,
[TEAM_CHIEF] = true,
[TEAM_MAYOR] = true,
}
--[[---------------------------------------------------------------------------
Jobs that are hitmen (enables the hitman menu)
---------------------------------------------------------------------------]]
DarkRP.addHitmanTeam(TEAM_MOB)