ZeyadGTX Posted March 12, 2014 Share Posted March 12, 2014 Please i want Script which when i add some one to team get the team color because i tried alot , alot not working please some one give me script with Meta Please Help me, And THanks Link to comment
Karuzo Posted March 12, 2014 Share Posted March 12, 2014 This is not a script suggestion board. Link to comment
Chronos Posted March 12, 2014 Share Posted March 12, 2014 This board for scripting helps not for requests,To script such thing use createTeam setPlayerTeam setPlayerNametagColor Link to comment
-.Paradox.- Posted March 12, 2014 Share Posted March 12, 2014 local blip = { } addEventHandler ( "onPlayerLogin", root, function ( ) if ( not isElement ( blip [ source ] ) ) then blip [ source ] = createBlipAttachedTo ( source ) end local theTeam = getPlayerTeam ( source ) if ( not theTeam ) then return end local r, g, b = getTeamColor ( theTeam ) setPlayerNametagColor ( source, r, g, b ) setBlipColor ( blip [ source ], r, g, b, 255 ) end ) addEventHandler ( "onPlayerQuit", root, function ( ) if isElement ( blip [ source ] ) then destroyElement ( blip [ source ] ) end end ) 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