Jump to content

why this doesnt work? [UNSOLVED]


HealthDown

Recommended Posts

Posted (edited)

SERVER:

hitmanMarker = createMarker ( 2303.4782714844, -2019.1921386719, 13.541597366333, "cylinder", 1.5, 205, 0, 0) 
  
function hitmanMarkerH( player ) 
    setPlayerTeam ( player, "Hitmen" ) 
end 
addEventHandler( "onMarkerHit", hitmanMarker, hitmanMarkerH )  

Edited by Guest
Posted
hitmanMarker = createMarker ( 2303.4782714844, -2019.1921386719, 13.541597366333, "cylinder", 1.5, 205, 0, 0) 
  
function hitmanMarkerH( player , mDim ) 
    if not mDim then return end 
    if getElementType ( player ) ~= "player" then return end 
    setPlayerTeam ( player, getTeamFromName ( "Hitmen" ) ) 
end 
addEventHandler( "onMarkerHit", hitmanMarker, hitmanMarkerH ) 

Off: You don't have to PM me.

Posted

Well, if it still doesn't work, the problem is that the team is not yet created.

You must do..

createTeam("Hitmen", red, green, blue) 

red, green, blue are not needed, but if you want to change the color, then use them.

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