Lovegame
GameOfTurk
- En iyi cevaplar
- 0
Merhaba arkadaşlar KitPvP sunucum için internette bulunan CombatLog skriptinde bir değişiklik yapmam gerekiyor ancak pek anlamıyorum skriptten yapamadım
Sunucuda ölünce item düşmüyor bu yüzden adam savaştayken oyundan çıktığında 300 saniye ban atmasını istiyorum (tempban) AntiCombatLog skriptine bunu ekleyebilirmisin ? Teşekkürler şimdiden 
Kod:
# _ _ _____ _ _ _
# /\ | | (_) / ____| | | | | | |
# / \ _ __ | |_ _ | | ___ _ __ ___ | |__ __ _| |_ | | ___ __ _
# / /\ \ | '_ \| __| | | | / _ \| '_ ` _ \| '_ \ / _` | __| | | / _ \ / _` |
# / ____ \| | | | |_| | | |___| (_) | | | | | | |_) | (_| | |_ | |___| (_) | (_| |
# /_/ \_\_| |_|\__|_| \_____\___/|_| |_| |_|_.__/ \__,_|\__| |______\___/ \__, |
# __/ |
# |___/
#
# Author: GeekWithAChick
# Version: 2.3
on quit:
{combatlog::players::%player%::in.combat} is true
# #! Code that triggers when a player quits in combat
kill player
broadcast "<grey>[AntiCombatLog] <light red>%player% has been killed for combat logging!"
# #! End of the code you can edit when combat logging
delete {combatlog::players::%player%::*}
on command:
{combatlog::players::%player%::in.combat} is true
command is "spawn" or "warp" or "tp" or "tpa" or "tpaccept" or "tpahere" or "back" or "home" or "world" or "god"
message "<light red>You're not allowed to use this command during a combat"
cancel the event
on damage:
victim is a player
attacker is a player
if {combatlog::players::%victim%::in.combat} is true:
set {combatlog::players::%victim%::in.seconds.until.out} to 10
stop
send "<grey>[AntiCombatLog] <light red>You are in combat now, don't log out!" to victim
set {combatlog::players::%victim%::in.combat} to true
set {combatlog::players::%victim%::in.seconds.until.out} to 10
while {combatlog::players::%victim%::in.seconds.until.out} is more than 1:
{combatlog::players::%victim%::in.seconds.until.out} is not set:
stop
subtract 1 from {combatlog::players::%victim%::in.seconds.until.out}
wait 1 second
delete {combatlog::players::%victim%::in.combat}
delete {combatlog::players::%victim%::in.seconds.until.out}
send "<grey>[AntiCombatLog] <light green>You can safely log out now" to victim
on death:
delete {combatlog::players::%victim%::in.combat}
delete {combatlog::players::%victim%::in.seconds.until.out}
on damage:
victim is a player
attacker is a player
if {combatlog::players::%attacker%::in.combat} is true:
set {combatlog::players::%attacker%::in.seconds.until.out} to 10
stop
send "<grey>[AntiCombatLog] <light red>You are in combat now, don't log out!" to attacker
set {combatlog::players::%attacker%::in.combat} to true
set {combatlog::players::%attacker%::in.seconds.until.out} to 10
while {combatlog::players::%attacker%::in.seconds.until.out} is more than 1:
{combatlog::players::%attacker%::in.seconds.until.out} is not set:
stop
subtract 1 from {combatlog::players::%attacker%::in.seconds.until.out}
wait 1 second
delete {combatlog::players::%attacker%::in.combat}
delete {combatlog::players::%attacker%::in.seconds.until.out}
send "<grey>[AntiCombatLog] <light green>You can safely log out now" to attacker
on join:
delete {combatlog::players::%player%::*}
on script load:
delete {combatlog::players::*}