Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- ╔═════════════════════════╗
- -- ║ » Author: Tonic ║
- -- ║ » Datum: 23.05.2017 ║
- -- ║ » Uhrzeit: 15:33 Uhr ║
- -- ╚═════════════════════════╝
- local Marker = {}
- function Marker.new(...)
- local o = setmetatable({}, { __index = Marker })
- if o.constructor then
- o:constructor(...)
- end
- return
- end
- function Marker:constructor()
- self.m_Marker = createMarker(-1816, -425, 15, "cylinder", 1, 125, 0, 0, 200)
- local function CallBackFunc(...) self:hit(...) end
- addEventHandler("onMarkerHit", self.m_Marker, CallBackFunc)
- end
- function Marker:hit(elem, dim)
- if dim then
- if getElementType(elem) == "player" then
- givePlayerMoney(elem, 1500)
- end
- end
- end
- Marker.new()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement