Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Client
- function watercheck()
- if (isElementInWater(localPlayer)) then
- triggerServerEvent("deathrun.killSource", localPlayer, localPlayer)
- setElementData(localPlayer,"dead",true)
- else
- return false
- end
- end
- setTimer(watercheck, 50, 0)
- Server
- function DTXf()
- if getElementData(thePlayer,"dead") then
- killPed(thePlayer)
- outputChatBox("You Bitch Can't Swim!", plr)
- setElementData(thePlayer,"dead",false)
- end
- end
- addEvent("deathrun.killSource", true)
- addEventHandler("deathrun.killSource", root, DTXf)
Advertisement
Add Comment
Please, Sign In to add comment