Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- lstrColShape = createColSphere(256.9345703125, 115.6005859375, 1008.8130493164, 2.9)
- exports.pool:allocateElement(lstrColShape)
- setElementDimension(lstrColShape, 9001)
- setElementInterior(lstrColShape, 10)
- function sphere_enter(thePlayer, matchingDimension)
- if getElementType(thePlayer) == "player" then
- local nameOfThePlayer = getPlayerName ( thePlayer )
- outputChatBox ( nameOfThePlayer.." entered the zone!", getRootElement(), 255, 255, 109 )
- end
- end
- addEventHandler("onColShapeHit", lstrColShape, sphere_enter)
- function sphere_leave(thePlayer, matchingDimension)
- if getElementType(thePlayer) == "player" then
- local nameOfThePlayer = getPlayerName ( thePlayer )
- outputChatBox ( nameOfThePlayer.." left the zone!", getRootElement(), 255, 255, 109 )
- end
- end
- addEventHandler("onColShapeLeave", lstrColShape, sphere_leave)
- function lstrduty(thePlayer, command)
- local logged = getElementData(thePlayer, "loggedin")
- if (logged==1) then
- if (isElementWithinColShape(thePlayer, lstrColShape)) then
- local duty = tonumber(getElementData(thePlayer, "duty"))
- local faction = getElementData(thePlayer, "faction")
- if (faction==30) then
- if (duty==0) then
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement