Jump to content

onPlayerLogin


Recommended Posts

Aparently, it will not work if i've restarted the script, but if i've joined it works.. strange somehow :D

Anyways it doesnt bothers, im struck here, it always recognizes as if the player was in my team, no matter what.

  
unction RadarTeamBlips() 
for i, v in ipairs(getElementsByType("player")) do 
    if getPlayerTeam(v) == getPlayerTeam(getLocalPlayer()) then 
    createBlipAttachedTo(v, 62, 2, 0, 255, 0, 255, 0, 65535) 
    else 
    createBlipAttachedTo(v, 59, 2, 0, 255, 0, 255, 0, 65535) 
    end 
     
end 
end 
addEventHandler("onClientRender", getRootElement(), RadarTeamBlips) 

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