mirror of
https://github.com/metrostroi-repo/MetrostroiAddon.git
synced 2026-05-02 00:42:29 +00:00
Merge pull request #622 from metrostroi-repo/#595
Замена self:GetOwner() на self:GetPlayer()
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