bartje01 Posted November 7, 2010 Share Posted November 7, 2010 Hey guys. I have a marker and it shows a message. But I only want it to show it to the person that stands in the marker and not to everyone. local myMarker = createMarker( 1368.49, -1279.94, 13.54, 'cylinder', 2.0, 255, 0, 0, 150 ) function MarkerHit( hitElement, matchingDimension,player ) if getElementType( hitElement ) == "player" then outputChatBox ( "You have picked up a Nite Stick.", player ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) Ty Link to comment
Castillo Posted November 7, 2010 Share Posted November 7, 2010 local myMarker = createMarker( 1368.49, -1279.94, 13.54, 'cylinder', 2.0, 255, 0, 0, 150 ) function MarkerHit( hitElement, matchingDimension,player ) if getElementType( hitElement ) == "player" then outputChatBox ( "You have picked up a Nite Stick.", hitElement ) end end addEventHandler( "onMarkerHit", myMarker, MarkerHit ) 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