Skocz do zawartości
  • 0

autobalance teamow


grzybeek

Pytanie

mam autobalance na 2 teamy, ale potrzebuje zeby był na 4 teamy i czy ktoś go przerobi?

 

on join:
	if {teams::%player%} is not set:
		if {teams::RED} is greater than {teams::BLUE}:
			add player to {teams::BLUE::*}
			add 1 to {teams::BLUE}
			run player command "pex user %player% add team.blue" as op
			run player command "nte reload" as op
			set {teams::%player%} to true
			wait 1 second
			broadcast "%player% dolaczyl do druzyny &9BLUE"
		if {teams::BLUE} is greater than {teams::RED}:	
			add player to {teams::RED::*}
			add 1 to {teams::RED}
			run player command "pex user %player% add team.red" as op
			run player command "nte reload" as op
			set {teams::%player%} to true
			wait 1 second
			broadcast "%player% dolaczyl do druzyny &cRED"
		if {teams::RED} is equal to {teams::BLUE}:
			set {_s} to a random integer between 1 and 2
			if {_s} is 1:
				add player to {teams::BLUE::*}
				add 1 to {teams::BLUE}
				run player command "pex user %player% add team.blue" as op
				run player command "nte reload" as op
				set {teams::%player%} to true
				wait 1 second
				broadcast "%player% dolaczyl do druzyny &9BLUE"
			else:
				add player to {teams::RED::*}
				add 1 to {teams::RED}
				run player command "pex user %player% add team.red" as op
				run player command "nte reload" as op
				set {teams::%player%} to true
				wait 1 second
				broadcast "%player% dolaczyl do druzyny &cRED"

 

Odnośnik do komentarza
Udostępnij na innych stronach

0 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

Nie udzielono jeszcze odpowiedzi na to pytanie

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ę...