marker = createMarker(2327.87, 2420.20, 10.82-0.90, "cylinder", 1, 255, 0, 0, 20)
blip = createBlip(2327.87, 2420.20, 10.82, 41)
function glod(plr, wybierasz)
wybierasz = tostring(wybierasz)
if wybierasz then return end
if isElementWithinMarker(plr, marker) then
if wybierasz == "kebab" then
outputChatBox("zjad?e? kebaba. Dostajesz 10 hp")
elseif wybierasz == "burger" then
outputChatBox("zjad?e? burgera. Dostajesz 20 hp")
setElementHealth(plr, getElementHealth(plr), 20)
end
end
end
addCommandHandler("kup",glod)
function rozpoczecie(plr)
outputChatBox("Witaj, je?eli masz ma?o hp zjedz co?, wybierz: burger, kebab", plr)
end
addEventHandler("onMarkerHit", marker, rozpoczecie)