Jump to content

Team script Help


HeArTBeaT

Recommended Posts

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.

Link to comment
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

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