5150 Posted November 22, 2015 Posted November 22, 2015 how can i make a spawn point that only a certain team will go to? i want my americans team to spawn in certain locations, and my germans team to spawn in other locations
1LoL1 Posted November 22, 2015 Posted November 22, 2015 how can i make a spawn point that only a certain team will go to? i want my americans team to spawn in certain locations, and my germans team to spawn in other locations Try this: function spawn (player) local players = getPlayerTeam(player) if players and getTeamFromName("Americans") == players then spawnPlayer (source, x, y, z, rotation, skin, interior, dimension) -- Americans spawn else spawnPlayer (source, x, y, z, rotation, skin, interior, dimension) -- other spawn end end addEventHandler("onPlayerWasted", getRootElement(), spawn)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now