Jump to content

Questions


xeon17

Recommended Posts

Hello there , i wanna add flags of players on scoreboard but problem is the image flag dosen't show.

This is my code of flag:

     exports.scoreboard:addScoreboardColumn('Home') 
      
            function showcountry() 
            local flag = exports.admin:getPlayerCountry ( source ) 
                     if flag then 
                     setElementData(source,"Home",":admin/client/images/flags/"..flag..".png") 
                     else 
                     flag = "N/A"  
                     end 
             end 
     addEventHandler("onPlayerJoin",getRootElement(),showcountry) 

Link to comment

Thanks i'll try it , i think it's better i ask here and no create new topic.

the problem is friendly fire , i tried all possible but i can't turn friendlyfire on for teams.

addEventHandler("onResourceStart", getRootElement(), 
function () 
setTeamFriendlyFire ( BallasTeam, true ) 
setTeamFriendlyFire ( MafiaTeam, true ) 
setTeamFriendlyFire ( TriadTeam, true ) 
setTeamFriendlyFire ( AztecasTeam, true ) 
setTeamFriendlyFire ( VagosTeam, true ) 
setTeamFriendlyFire ( GROVETeam, true )  
setTeamFriendlyFire ( PoliciaTeam, true )                   
end) 
    

and i tried the code in wiki example , is the function bugged or?

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