HealthDown Posted September 9, 2011 Share Posted September 9, 2011 (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 September 9, 2011 by Guest Link to comment
E-mail Posted September 9, 2011 Share Posted September 9, 2011 Mybye You Have to use addEventHandler ( "onClientMarkerHit", getRootElement(), hitmanMarker ) ? Link to comment
HealthDown Posted September 9, 2011 Author Share Posted September 9, 2011 i thint there is problem in line 4 Link to comment
JR10 Posted September 9, 2011 Share Posted September 9, 2011 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. Link to comment
Aaron Posted September 10, 2011 Share Posted September 10, 2011 This is solved by JR10, rename your topic to SOLVED. Link to comment
JR10 Posted September 10, 2011 Share Posted September 10, 2011 Didn't see any post saying he solved it. Link to comment
myonlake Posted September 10, 2011 Share Posted September 10, 2011 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. 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