Advertisement
Xboss_shipmake

DevMayhem

Feb 20th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.80 KB | None | 0 0
  1. function OnPlayerHitTile(player,x,y)
  2.        a = GetRandomPlayer()
  3.        b = GetPlayerX(a)
  4.        c = GetPlayerY(a)
  5.        d = GetPlayerX(player)
  6.        e = GetPlayerY(player)
  7.     if e ~= 47 then
  8.     if c ~= 47 then
  9.         MoveTile(b,c+1,d,e)
  10.         end
  11.         end
  12.     if x == 60 and y == 48 then
  13.         f = math.random(1,90)
  14.         TeleportPlayer(player,f,55)
  15. end
  16. end
  17.  
  18.  
  19.  
  20. function OnPlayerDamage(player)
  21.     a = GetPlayerHealth(player)
  22.     SetPlayerHealth(player,a-75)
  23.     if a <= 50 then
  24.         TeleportPlayer(player,46,46)
  25.     end
  26.     end
  27. function OnEverySecond(player)
  28.     a = GetPlayerHealth(player)
  29.     BigMessage(player, "\n\n                             Health: ^1"..a)
  30.     c = GetPlayerY(player)
  31.     if c == 99 then
  32.         SetPlayerHealth(player,50)
  33.         end
  34.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement