CombatLog skripti

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 :D 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::*}
 

Lovegame

GameOfTurk
En iyi cevaplar
0
Eline sağlık. Beğendim.
Arkadaşlar skripti ben yapmadım internette buldum.


post is rampage![DOUBLEPOST=1416749517,1416749442][/DOUBLEPOST]Kanka hani o on quit eventında kill player var onun üstüne bi satır aç şunu yaz:
PHP:
execute console command "tempban %player% 300s"

-required essentials

Deneyeceğim hemen.[DOUBLEPOST=1416757383][/DOUBLEPOST]


@ruddeTR Dediğini yaptım ancak adam oyundan çıktığında bir sürü böyle yazı çıkıyor. (Console hataları normal oyuncularda çıkmıyor.)
 

Lovegame

GameOfTurk
En iyi cevaplar
0
Güncel yardımcı olacak varmı ?[DOUBLEPOST=1416842993,1416840180][/DOUBLEPOST]Sorunu çözdüm konu kilit.

Çözüm : CombatLog pluginini yükledim DisableRespawnScreen plugini ile çakıştığını farkkettim DisableRespawnScreen pluginini sildim çözüldü..

İyi forumlar.
 
Üst