Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ClientStarts()
- marker1 = createMarker ( x, y, z, "corona", size, r, g, b, visibility )
- end
- addEventHandler( "onClientResourceStart", getResourceRootElement(getThisResource()), ClientStarts )
- function onMarkerHit( hitPlayer, matchingDimension )
- if hitPlayer ~= You then
- return
- end
- if source == marker1 then
- local sound = playSound ("yourfile.mp3")
- setSoundVolume(sound, 1)
- end
- end
- addEventHandler ( "onClientMarkerHit", getRootElement(), onMarkerHit )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement