SHARE
TWEET

Untitled

a guest Feb 20th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local sx,sy = guiGetScreenSize()
  2. function createMarkers()
  3.     megallo1 = createMarker(1826.27930, -1875.17651, 13.29919, "checkpoint", 3, 67, 158, 211, 255)
  4. end
  5. addEvent("createServerMarkers", true)
  6. addEventHandler("createServerMarkers", localPlayer, createMarkers)
  7.  
  8.  
  9. function hitMarkers()
  10.     if isElementWithinMarker(localPlayer, megallo1) then
  11.         destroyElement(megallo1)
  12.         outputChatBox("Sikeresen eljutottál az egyik megállóhoz.", 255, 255, 255, true)
  13.         setPlayerMoney(getPlayerMoney(localPlayer)+math.random(100,300))
  14.         megallo2 = createMarker(1825.6005859375, -1871.6865234375, 13.390877723694, "checkpoint", 3, 67, 158, 211, 255)
  15.     elseif isElementWithinMarker(localPlayer, megallo2) then
  16.         destroyElement(megallo2)
  17.        
  18.         outputChatBox("Sikeresen eljutottál az egyik megállóhoz.", 255, 255, 255, true)
  19.         setPlayerMoney(getPlayerMoney(localPlayer)+math.random(100,300))
  20.         megallo3 = createMarker(1825.865234375, -1801.6865234375, 13.390877723694, "checkpoint", 3, 67, 158, 211, 255)
  21.     elseif isElementWithinMarker(localPlayer, megallo3) then
  22.         destroyElement(megallo3)
  23.         outputChatBox("Sikeresen eljutottál az egyik megállóhoz.", 255, 255, 255, true)
  24.         setPlayerMoney(getPlayerMoney(localPlayer)+math.random(100,300))
  25.         megallo4 = createMarker(1826.107421875, -1737.6865234375, 13.390877723694, "checkpoint", 3, 67, 158, 211, 255)
  26.     elseif isElementWithinMarker(localPlayer, megallo4) then
  27.         destroyElement(megallo4)
  28.         outputChatBox("Sikeresen eljutottál az egyik megállóhoz.", 255, 255, 255, true)
  29.         setPlayerMoney(getPlayerMoney(localPlayer)+math.random(100,300))
  30.         megallo5 = createMarker(1825.5146484375, -1669.7265625, 13.390877723694, "checkpoint", 3, 67, 158, 211, 255)
  31.     elseif isElementWithinMarker(localPlayer, megallo5) then
  32.         destroyElement(megallo5)
  33.         outputChatBox("Sikeresen eljutottál az egyik megállóhoz.", 255, 255, 255, true)
  34.         setPlayerMoney(getPlayerMoney(localPlayer)+math.random(100,300))
  35.         megallo6 = createMarker( 1825.5986328125, -1627.736328125, 13.390877723694, "checkpoint", 3, 67, 158, 211, 255)
  36.     end
  37. end
  38. addEventHandler("onClientMarkerHit", root, hitMarkers)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top