Hello guys. I need you help on a script i was doing.
So.. i put this script server and client side (not at one time) but it didn't work.
/debugscript 3 isn't showing some problems.
Here is it:
myMarker = createMarker ( 165.39999389648, 1973.5999755859, 23.60000038147, cylinder, 1.2, 0, 255, 0, 250, root )
myBlip = createBlipAttachedTo(myMarker, 56, 2, 0, 0, 0, 255, 0, 300, root )
createBlip ( -1315 , 2519 , 87 , 62 )
myTeam = createTeam ( Team1, 170, 255, 0 )
function MarkerHit( hitElement, matchingDimension )
if myMarker then
setPlayerTeam ( source, Team1 )
setPlayerSkin ( thePlayer, 50 )
outputChatBox( elementType.." Good job. You entered the marker.", getRootElement(), 0, 255, 0 )
outputChatBox( "Now GTFO before you get banned.", getRootElement(), 0, 255, 0 )
end
end
addEventHandler( "onMarkerHit", myMarker, MarkerHit )
Can you help me to fix it pls?
Thanks