Skocz do zawartości
  • 0

Anty-Logout


xfreduz

Pytanie

Czy ktos umie zedytowac ten skirpt tak zeby po lognieciu gracza zostal on zabity ?

on damage:
    if attacker is player:
        if attacker's gamemode is survival:
            set {czasl::%victim%} to 20
            set {log::%victim%} to true
            set {czasl::%attacker%} to 20
            set {log::%attacker%} to true
        
every 1 second:
    loop all players:
        if {log::%loop-player%} is true:
            if {czasl::%loop-player%} is greater than 0:
                remove 1 from {czasl::%loop-player%}
                display board named "&cANTY-LOGOUT" to loop-player
                make score of "&cTIME:&7 %{czasl::%loop-player%}% s" in scoreboard of loop-player to 1
                move display of loop-player to sidebar
            else:
                set {log::%loop-player%} to false
                display board named "" to loop-player
                make score of "" in scoreboard of loop-player to 1
                move display of loop-player to sidebar

Odnośnik do komentarza
https://skript.pl/temat/19332-anty-logout/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Dodaj 

on quit:

    If {log::%attacker%}  is set:

        Kill player 

        set {log::%attacker%} to false   

On quit:

    If {log::%victim%} is set:

        Kill player 

       Set {log::%victim%} to false

Masz zrobione że jak się wyloguj i vicitm i attacker 

To ich zabija

 

Edytowane przez Vineroy
Odnośnik do komentarza
https://skript.pl/temat/19332-anty-logout/#findComment-131597
Udostępnij na innych stronach

  • 0

eh masz poprawione bo @Vineroy napisal trochę źle

Do @Vineroy

Przecież w on quit nic nie ginie ani nie dostaje damage

 

Poprawiony kod:

on quit:
     If {log::%player%}  is set:
		Kill player 
		set {log::%player%} to false  

 

Za pomoc, daj  @Vineroy naj i repa

a mi daj samego repa xd 

Lub jak tam chcesz

Edytowane przez McKoxu
Odnośnik do komentarza
https://skript.pl/temat/19332-anty-logout/#findComment-131621
Udostępnij na innych stronach

  • 0
on damage:
	if attacker is player:
		if attacker's gamemode is survival:
			set {czasl::%victim%} to 20
			set {log::%victim%} to true
			set {czasl::%attacker%} to 20
			set {log::%attacker%} to true
		
every 1 second:
	loop all players:
		if {log::%loop-player%} is true:
			if {czasl::%loop-player%} is greater than 0:
				remove 1 from {czasl::%loop-player%}
				display board named "&cANTY-LOGOUT" to loop-player
				make score of "&cTIME:&7 %{czasl::%loop-player%}% s" in scoreboard of loop-player to 1
				move display of loop-player to sidebar
			else:
				set {log::%loop-player%} to false
				display board named "" to loop-player
				make score of "" in scoreboard of loop-player to 1
				move display of loop-player to sidebar
on disconnect:
	if {log::%player%} is true:
		kill player # jezeli to nie dziala to usun to kill player
		set {logoutpodczaswalki::%player%} to true
on join:
	if {logoutpodczaswalki::%player%} is true:
		clear {logoutpodczaswalki::%player%}
		kill player
		stop
	stop

 

Odnośnik do komentarza
https://skript.pl/temat/19332-anty-logout/#findComment-131872
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...