mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
* Global change. Замена всех устаревших функции на аналогичные * Global change. Добавил локальные переменные там, где это было рентабельно.
This commit is contained in:
@@ -20,7 +20,7 @@ function ENT:Use(ply)
|
||||
RunConsoleCommand("metrostroi_voltage",Metrostroi.OldVoltage ~= 0 and Metrostroi.OldVoltage or 750)
|
||||
Metrostroi.OldVoltage = 0
|
||||
else
|
||||
Metrostroi.OldVoltage = GetConVarNumber("metrostroi_voltage")
|
||||
Metrostroi.OldVoltage = GetConVar("metrostroi_voltage"):GetInt()
|
||||
RunConsoleCommand("metrostroi_voltage",0)
|
||||
Metrostroi.Voltage = 0
|
||||
Metrostroi.VoltageOffByPlayerUse = true
|
||||
|
||||
Reference in New Issue
Block a user