mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Фикс self:GetOwner()
Добавлено наследование от базового класса "base_gmodentity" для корректной работы E2 (enitiy():owner()) Заменен self:GetOwner() на self:GetPlayer()/SetPlayer() там, где это необходимо
This commit is contained in:
@@ -60,7 +60,7 @@ concommand.Add("metrostroi_debugtrainsystems", cmdinithandler, nil, "Add aimed a
|
||||
|
||||
-- Automatically engage debugger for train owner
|
||||
function Metrostroi.DebugTrain(train,ply)
|
||||
if not ply then ply = train:GetOwner() end
|
||||
if not ply then ply = train:GetPlayer() end
|
||||
if (not IsValid(train)) or (not IsValid(ply)) then return end
|
||||
|
||||
AddClient(ply,train)
|
||||
|
||||
Reference in New Issue
Block a user