• Stop player's from spawning immediately? (gamemode)
    2 replies, posted
Seems pretty basic, but I'm honestly lost. I'd like a menu to appear for players who have just connected to the server, like the team/class select in TF2, or perk menu in Killing Floor. Can anyone provide brief instructions on how to do so?
I think you have to override the [url=http://wiki.garrysmod.com/page/GM/PlayerDeathThink]PlayerDeathThink[/url] gamemode hook to prevent the player from spawning themselves.
PlayerDeathThink is the major part of it. Here is something to set up a spectator system; I'd recommend creating a CanSpawn function and use that.. [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/_systems/spectating_players_system.lua.html[/url]
Sorry, you need to Log In to post a reply to this thread.