thenuke321

BUG

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