Jump to content

Team script Help


HeArTBeaT

Recommended Posts

Posted

Hi I want to make a 4 teams script for a tdm server... I just want you guys to tell me about how to set team spawn , player skins , team names , how to make players spawn with certain weapons (will be usefull to me when I will make classes)

Any tutorial links will be very usefull.

Posted
team1 = createTeam( "Team1", 255, 255, 0 ) 
  
function noBigDeal() 
if getPlayerTeam( 'Team1' ) then 
spawnPlayer( 0, 0, 0 ) 
setElementModel( source, 287 ) 
giveWeapon( source, 31, 200 ) 
end 
end 

ONLY EXAMPLE!

Posted
team1 = createTeam( "Team1", 255, 255, 0 ) 
  
function noBigDeal() 
if getPlayerTeam( 'Team1' ) then 
spawnPlayer( 0, 0, 0 ) 
setElementModel( source, 287 ) 
giveWeapon( source, 31, 200 ) 
end 
end 

ONLY EXAMPLE!

getPlayerTeam( 'Team1' ) 

??

This function gets the current team a player is on.

bad example.

Posted
team1 = createTeam( "Team1", 255, 255, 0 ) 
  
function noBigDeal() 
if getPlayerTeam( 'Team1' ) then 
spawnPlayer( 0, 0, 0 ) 
setElementModel( source, 287 ) 
giveWeapon( source, 31, 200 ) 
end 
end 

ONLY EXAMPLE!

getPlayerTeam( 'Team1' ) 

??

This function gets the current team a player is on.

bad example.

duh it gets the players team he is on, thats because if he ain't on that team, it won't work

Posted
OK If I show you guys where I want to spawn them can you give me the vallues?

"5.spawnPlayer( 0, 0, 0 )"

its : spawnPlayer( posX, posY, posZ ) do it yourself

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...