Jump to content

setTeam


NissanGT

Recommended Posts

hi guys i create code on player join to server set player in team xXx

but player nill team !!

code

local team = createTeam ( 'xXx' ) 
  
addEventHandler ( 'onPlayerJoin',root, 
function (  ) 
            setPlayerTeam( source,team ) 
            giveWeapon( source,31,3214 ) 
            outputChatBox ( 'xXx Player Join', source, 255, 255, 255, true ) 
    end 
) 

Link to comment

lol

  
local team = createTeam ( 'xXx' ) 
  
addEventHandler ( 'onPlayerJoin',source, 
function (  ) 
            setPlayerTeam( source,team ) 
            giveWeapon( source,31,3214 ) 
            outputChatBox ( 'xXx Player Join', source, 255, 255, 255, true ) 
    end 
) 
  

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

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