S
Sergunkorowakurwa
Ziyaretçi
Kod:
on first join:
set {sergun26.skript.ozel.pvpkoruma.%player%} to 1
wait 15 minutes
if {sergun26.skript.ozel.pvpkoruma.%player%} is set:
delete {sergun26.skript.ozel.pvpkoruma.%player%}
command /korumasil:
trigger:
if {sergun26.skript.ozel.pvpkoruma.%player%} is set:
delete {sergun26.skript.ozel.pvpkoruma.%player%}
send "Koruma kaldırıldı."
else:
send "Zaten koruman kapalı."
on damage:
attacker is a player:
victim is a player:
if {sergun26.skript.ozel.pvpkoruma.%attacker%} is set:
cancel event
send "Koruman bitmedi"
if {sergun26.skript.ozel.pvpkoruma.%victim%} is set:
cancel event
send "Koruman bitmedi"
Durmadan loop yaptığı için lag yapar, iflerdeki tablar hatalı.denerim birazdan[DOUBLEPOST=1422437318,1422433484][/DOUBLEPOST]oldu mu?PHP:on first join: message "&2&l[&6Koruma&2&l] &6Koruman 15 dakika boyunca surecek." to player set {koruma.%player%} to 900 wait 900 real seconds delete {koruma.%player%} command /koruma <text>: trigger: if arg 1 is "bilgi": message "&2&l[&6Koruma&2&l] &6%{koruma.%player%}% saniyeniz kaldi." to player if arg 1 is "sil": delete {koruma.%player%} message "&2&l[&6Koruma&2&l] &6Korumaniz silindi!" to player every 1 real second: loop all players: if {koruma.%loop-player%} is bigger than 0: remove 1 from {koruma.%loop-player%} on damage: if victim is a player: if {koruma.%victim%} is bigger than 0: message "&2&l[&6Koruma&2&l] &6Korumaniz oldugu icin caniniz gitmedi. %{koruma.%player%}% saniyeniz kaldı." to victim cancel event message "&2&l[&6Koruma&2&l] &6Saldirdiginiz kisinin korumasi var!" to attacker if attacker is a player: if {koruma.%attacker%} is bigger than 0: cancel event message "&2&l[&6Koruma&2&l] &6Korumaniz oldugu icin saldiramazsiniz!" to attacker