Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function OnPlayerHitTile(player,x,y)
- a = GetRandomPlayer()
- b = GetPlayerX(a)
- c = GetPlayerY(a)
- d = GetPlayerX(player)
- e = GetPlayerY(player)
- if e ~= 47 then
- if c ~= 47 then
- MoveTile(b,c+1,d,e)
- end
- end
- if x == 60 and y == 48 then
- f = math.random(1,90)
- TeleportPlayer(player,f,55)
- end
- end
- function OnPlayerDamage(player)
- a = GetPlayerHealth(player)
- SetPlayerHealth(player,a-75)
- if a <= 50 then
- TeleportPlayer(player,46,46)
- end
- end
- function OnEverySecond(player)
- a = GetPlayerHealth(player)
- BigMessage(player, "\n\n Health: ^1"..a)
- c = GetPlayerY(player)
- if c == 99 then
- SetPlayerHealth(player,50)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement