localize infection player

This commit is contained in:
Jonny_Bro (Nikita) 2023-11-05 16:50:10 +05:00
parent a9c14a168f
commit 45d9fa0d46
4 changed files with 7 additions and 3 deletions

View file

@ -227,6 +227,8 @@ beatrun.deathmatch.start=Deathmatch! Kill players to get points!
# Infection
beatrun.infection.name=Infection
beatrun.infection.infectedtext=(Infected)
beatrun.infection.humantext=(Human)
beatrun.infection.start=Infection! Touch other players to infect them\n%s player(s) will become infected in %ss
beatrun.infection.nosurvivors=None...
beatrun.infection.infected=was infected!

View file

@ -227,6 +227,8 @@ beatrun.deathmatch.start=Deathmatch! Убивайте игроков чтобы
# Infection
beatrun.infection.name=Infection
beatrun.infection.infectedtext=(Заражённый)
beatrun.infection.humantext=(Человек)
beatrun.infection.start=Infection! Дотрагивайтесь до других игроков чтобы заразить их\n%s игрок(а/ов) будет выбрано через %s сек
beatrun.infection.nosurvivors=Никто...
beatrun.infection.infected=был заражён!

View file

@ -1,6 +1,6 @@
if SERVER then
local allowPropSpawn = CreateConVar("Beatrun_AllowPropSpawn", "0", {FCVAR_ARCHIVE})
local allowPropSpawn = CreateConVar("Beatrun_AllowPropSpawn", "0", {FCVAR_ARCHIVE})
if SERVER then
util.AddNetworkString("SPParkourEvent")
local spawn = {"PlayerGiveSWEP", "PlayerSpawnEffect", "PlayerSpawnNPC", "PlayerSpawnObject", "PlayerSpawnProp", "PlayerSpawnRagdoll", "PlayerSpawnSENT", "PlayerSpawnSWEP", "PlayerSpawnVehicle"}

View file

@ -309,7 +309,7 @@ if CLIENT then
local function InfectionHUDName()
if GetGlobalBool("GM_INFECTION") then
local team = LocalPlayer():GetNW2Bool("Infected") and "(Infected)" or "(Human)"
local team = LocalPlayer():GetNW2Bool("Infected") and language.GetPhrase("beatrun.infection.infectedtext") or language.GetPhrase("beatrun.infection.humantext")
return "Infection " .. team
else