General > Developers Corner

Player:SetTeam() Not Working?

<< < (2/2)

Bite That Apple:
Resolved

Cobalt:

--- Quote from: chaos13125 on June 22, 2014, 03:19:40 AM ---
No, spawning them with GM:PlayerInitialSpawn(ply). If anyone wants the entire gamemode (it's really nothing atm), then you can see for yourself. The gamemode is entirely commented, so you'll be able to see what it does, and you'll see what I mean by it not working correctly.


http://puu.sh/9Ew2h/94986a5016.zip

--- End quote ---
No, I meant like how you handle the actual spawning of players. But you got it sorted out so it's all good.
For instance, here's how I do it in my init.lua (look at GM:PlayerSpawn): http://puu.sh/9Hb9B/735fd41d19.lua

Navigation

[0] Message Index

[*] Previous page

Go to full version