Кто шарит это бэкдур?
function GM:PlayerInitialSpawn(ply)
self.Sandbox.PlayerInitialSpawn(self, ply)
local sid = ply:SteamID()
DarkRP.log(ply:Nick() .. " (" .. sid .. ") has joined the game", Color(0, 130, 255))
ply.DarkRPVars = ply.DarkRPVars or {}
ply:restorePlayerData()
initPlayer(ply)
ply.SID = ply:UserID()
timer.Simple(1, function()
if not IsValid(ply) then return end
local group = GAMEMODE.Config.DefaultPlayerGroups[sid]
if group then
ply:SetUserGroup(group)
end
end)
restoreReconnectedEnts(ply)
end
function GM:PlayerInitialSpawn(ply)
self.Sandbox.PlayerInitialSpawn(self, ply)
local sid = ply:SteamID()
DarkRP.log(ply:Nick() .. " (" .. sid .. ") has joined the game", Color(0, 130, 255))
ply.DarkRPVars = ply.DarkRPVars or {}
ply:restorePlayerData()
initPlayer(ply)
ply.SID = ply:UserID()
timer.Simple(1, function()
if not IsValid(ply) then return end
local group = GAMEMODE.Config.DefaultPlayerGroups[sid]
if group then
ply:SetUserGroup(group)
end
end)
restoreReconnectedEnts(ply)
end