• Get spawn point
    5 replies, posted
Hello Facepunch How get pos of player spawn point? Thx (@_@)
Go to where you want the player to spawn/spawns and open up the console with the tilde key (the one the the left of 1) and type [code]getpos[/code] If you are having troubles opening the console you can change the button you use to open it in your Options. Hope this helps, Bings:)
[QUOTE=Bings;50743933]Go to where you want the player to spawn/spawns and open up the console with the tilde key (the one the the left of 1) and type [code]getpos[/code] If you are having troubles opening the console you can change the button you use to open it in your Options. Hope this helps, Bings:)[/QUOTE] I need get spawn pos into all map.
If you're wanting to do it with lua you'll want to use a hook that's called when the player is spawned. [code] hook.Add("PlayerSpawn", "SpawnPos", function (ply) print(ply:GetPos()) end) [/code] Or if you want it to only work when the player spawns for the very first time joining the server use [code] hook.Add("PlayerInitialSpawn", "SpawnPos", function (ply) print(ply:GetPos()) end) [/code]
[code] local spawns = ents.FindByClass('info_player_start') [/code]
[QUOTE=Coffeee;50744151][code] local spawns = ents.FindByClass('info_player_start') [/code][/QUOTE] Yhea! Thx you!
Sorry, you need to Log In to post a reply to this thread.