thenuke321

Untitled

Nov 29th, 2013
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. Client
  2. function watercheck()
  3.         if (isElementInWater(localPlayer)) then
  4.                 triggerServerEvent("deathrun.killSource", localPlayer, localPlayer)
  5.                 setElementData(localPlayer,"dead",true)
  6.         else
  7.                 return false
  8.         end
  9. end
  10. setTimer(watercheck, 50, 0)    
  11.  
  12.  
  13. Server
  14.  
  15.     function DTXf()
  16.        if getElementData(thePlayer,"dead") then
  17.             killPed(thePlayer)
  18.             outputChatBox("You Bitch Can't Swim!", plr)
  19.             setElementData(thePlayer,"dead",false)
  20.         end
  21.     end
  22.     addEvent("deathrun.killSource", true)
  23.     addEventHandler("deathrun.killSource", root, DTXf)
Advertisement
Add Comment
Please, Sign In to add comment