pogh10

Untitled

May 23rd, 2015
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. function GM:PlayerInitialSpawn(ply)
  2. self.BaseClass:PlayerInitialSpawn(ply)
  3. DarkRP.log(ply:Nick().." ("..ply:SteamID()..") has joined the game", Color(0, 130, 255))
  4. ply.DarkRPVars = ply.DarkRPVars or {}
  5. ply:restorePlayerData()
  6. ply:ConCommand( "rpgintro" )
  7. initPlayer(ply)
  8. ply.SID = ply:UserID()
  9.  
  10. timer.Simple(1, function()
  11. if not IsValid(ply) then return end
  12. local group = GAMEMODE.Config.DefaultPlayerGroups[ply:SteamID()]
  13. if group then
  14. ply:SetUserGroup(group)
  15. end
  16. end)
  17.  
  18. restoreReconnectedEnts(ply)
  19. end
Advertisement
Add Comment
Please, Sign In to add comment