Facebook
From jaaaaa, 9 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 547
  1. variables:
  2.      {walka.%player%} = false
  3.        
  4. on damage of player:
  5.      if attacker is player:
  6.           if victim is false:
  7.                if {walka.%victim%} is false:
  8.                     set {walka.%victim%} to true
  9.                     send "&cJedstes podczas pvp" to victim
  10.                     wait 15 seconds
  11.                     send "&cNie jestes juz podczas pvp" to victim
  12.                     set {walka.%victim%} to false
  13.                if {walka.%attacker%} is false:
  14.                     set {walka.%attacker%} to true
  15.                     send "&cJedstes podczas pvp" to attacker
  16.                     wait 15 seconds
  17.                     send "&cNie jestes juz podczas pvp" to attacker
  18.                     set {walka.%attacker%} to false
  19.  
  20. on quit:
  21.      if {walka.%player%} is true:
  22.           kill player
  23.           broadcast "&6Gracz &c%player%&6 wylogowal sie podczas walki"