#Al-Ha[J]aRii Posted June 1, 2013 Share Posted June 1, 2013 what's is the wrong I tested and it's not create blips to players this is it : ------------------ Grove = createTeam ( "Grove", 0, 255, 0 ) setTeamFriendlyFire ( Grove, false ) Police = createTeam ( "Police", 0, 0, 255 ) setTeamFriendlyFire ( Police, false ) Ballas = createTeam ( "Ballas", 255, 0, 255 ) setTeamFriendlyFire ( Ballas, false ) Vagos = createTeam ( "Vagos", 255, 252, 0 ) setTeamFriendlyFire ( Vagos, false ) Aztecas = createTeam("Aztecas", 0, 255, 251) setTeamFriendlyFire ( Aztecas, false ) No_Team = createTeam("No Team's", 255, 0, 0) setTeamFriendlyFire ( No_Team, false ) Russians = createTeam("Russian's", 255, 60, 60) setTeamFriendlyFire ( Russians, false ) Medic = createTeam("Medic", 0, 255, 255) setTeamFriendlyFire ( Medic, false ) function checkTeams() players = getElementsByType ( "player" ) for _, player in ipairs ( players ) do if ( getPlayerTeam ( player ) ) then if getTeamName ( getPlayerTeam( player ) ) == "Grove" then createBlipAttachedTo( player, 0, 2, 0, 255, 0, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Police" then createBlipAttachedTo( player, 0, 2, 0, 0, 255, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Ballas" then createBlipAttachedTo( player, 0, 2, 255, 0, 255, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Vagos" then createBlipAttachedTo( player, 0, 2, 255, 255, 0, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Aztecas" then createBlipAttachedTo( player, 0, 2, 0, 255, 251, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "No Team's" then createBlipAttachedTo( player, 0, 2, 255, 0, 0, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Russian's" then createBlipAttachedTo( player, 0, 2, 255, 60, 60, 255 ) elseif getTeamName ( getPlayerTeam ( player ) ) == "Medic" then createBlipAttachedTo( player, 0, 2, 0, 255, 255, 255 ) end end end end addEventHandler ( "onResourceStart", resourceRoot, checkTeams ) Link to comment
iPrestege Posted June 1, 2013 Share Posted June 1, 2013 Please use : getPlayersInTeam With getTeamFromName . Link to comment
#Al-Ha[J]aRii Posted June 1, 2013 Author Share Posted June 1, 2013 (edited) Please use : getPlayersInTeam With getTeamFromName . what's wrong now " ? when he was with out blips code and when I put it's in the mode be like this ! and this is my code I do it's with that function you give it's Me ....... ---- done Edited June 1, 2013 by Guest Link to comment
iPrestege Posted June 1, 2013 Share Posted June 1, 2013 You aren't make any sense at all sorry . Link to comment
#Al-Ha[J]aRii Posted June 1, 2013 Author Share Posted June 1, 2013 You aren't make any sense at all sorry . lol I know the wrong now and thank you . 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