Jump to content

TDM Spawn Skins


The.Pheonix

Recommended Posts

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) 

  • Like 1
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...