The.Pheonix Posted November 8, 2015 Share Posted November 8, 2015 Hi i using TDM default script and every time when player spawnins its a random skin i need to spawn with one skin for blue and one skin for red team (i mean custom skin id) i am noob at scripting and i cant find place where are that function can Link to comment
1LoL1 Posted November 8, 2015 Share Posted November 8, 2015 Hi i using TDM default script and every time when player spawnins its a random skin i need to spawn with one skin for blue and one skin for red team (i mean custom skin id)i am noob at scripting and i cant find place where are that function can function spawn (source) local players = getPlayerTeam(source) local team = getTeamName(players) if (team) == "Blue" then spawnPlayer (source, x, y, z, rotation, math.random (0,288), interior, dimension) -- blue spawn with random skin else spawnPlayer (source, x, y, z, rotation, math.random (0,288), interior, dimension) -- other spawn with random skin end end addEventHandler("onPlayerWasted", getRootElement(), spawn) 1 Link to comment
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