Skocz do zawartości
  • 0

Waluta za granie na serwerze


koncuwka69
 Udostępnij

Pytanie

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on join:
	if {Nagroda::%player%} is not set:
    	set {Nagroda::%player%} to 0
every minute:
	loop all players:
    	add 1 to {Nagroda::%loop-player%}
    	if {Nagroda::%loop-player%} >= 60:
        	set {Nagroda::%loop-player%} to 0
            add 50 to loop-player's money
            send "&cDostales 50%% za kolejna godzine gry na serwerze!" to loop-player
        	

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
8 minut temu, koncuwka69 napisał:

Czesc poszukuje skryptu lub i pluginu na wersje 1.16 aby za jedna godzine dostawalo sie 50 hajsu pod /bal

Posiadam plugin do waluty Essentials oraz Vault.

Pozdrawiam

Spróbuj z tym:

every 1 minute:
	loop all players:
		if {time::%loop-player%} is not set:
			set {time::%loop-player%} to 0
		add 1 to {time::%loop-player%}
		if {time::%loop-player%} is divisible by 60:
			add 50 to loop-player's money
			send action bar "&aOtrzymales &650 &a$ za gre na serwerze!" to loop-player

 

Edytowane przez Kormic
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
W dniu 1.09.2020 o 15:25, Kormic napisał:

Spróbuj z tym:

every 1 minute:
	loop all players:
		if {time::%loop-player%} is not set:
			set {time::%loop-player%} to 0
		add 1 to {time::%loop-player%}
		if {time::%loop-player%} is divisible by 60:
			add 50 to player's money

 

[ERROR] .... can't understand this condition: '{time::%loop-player%} is divisible by 60' (hajs.sk, line 6: if {time::%loop-player%} is divisible by 60:')

 

W dniu 1.09.2020 o 15:25, Grex napisał:

on join: if {Nagroda::%player%} is not set: set {Nagroda::%player%} to 0 every minute: loop all players: add 1 to {Nagroda::%loop-player%} if {Nagroda::%loop-player%} >= 60: set {Nagroda::%loop-player%} to 0 add 50 to loop-player's money send "&cDostales 50%% za kolejna godzine gry na serwerze!" to loop-player

[ERROR] .... indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (hajs.sk, line 3: set {Nagroda::%player%} to 0')
[WARNING] .... Empty configuration section! You might want to indent one or more of the subsequent lines to make them belong to this section or remove the colon at the end of the line if you don't want this line to start a section. (hajs.sk, line 2: if {Nagroda::%player%} is not set:')
[ERROR] .... indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (hajs.sk, line 6: add 1 to {Nagroda::%loop-player%}')
[ERROR] .... indentation error: expected 2 tabs, but found '____->' [-> = tab, _ = space, ? = other whitespace] (hajs.sk, line 7: if {Nagroda::%loop-player%} >= 60:')
[ERROR] .... indentation error: expected 2 tabs, but found '________->' [-> = tab, _ = space, ? = other whitespace] (hajs.sk, line 8: set {Nagroda::%loop-player%} to 0')
[ERROR] .... indentation error: expected 2 tabs, but found 12 spaces (hajs.sk, line 9: add 50 to loop-player's money')
[ERROR] .... indentation error: expected 2 tabs, but found 12 spaces (hajs.sk, line 10: send "&cDostales 50%% za kolejna godzine gry na serwerze!" to loop-player')

 

://

Edytowane przez Wojciu
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Teraz, koncuwka69 napisał:

[ERROR] .... can't understand this condition: '{time::%loop-player%} is divisible by 60' (hajs.sk, line 6: if {time::%loop-player%} is divisible by 60:')

 

;/

W takim wypadku tak:

every 1 minute:
	loop all players:
		if {time::%loop-player%} is not set:
			set {time::%loop-player%} to 0
		add 1 to {time::%loop-player%}
		if {time::%loop-player%} is greater than or equal to 60:
			set {time::%loop-player%} to 0
			add 50 to loop-player's money
			send action bar "&aOtrzymales &650 &a$ za gre na serwerze!" to loop-player

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, Kormic napisał:

W takim wypadku tak:

every 1 minute:
	loop all players:
		if {time::%loop-player%} is not set:
			set {time::%loop-player%} to 0
		add 1 to {time::%loop-player%}
		if {time::%loop-player%} is greater than or equal to 60:
			set {time::%loop-player%} to 0
			add 50 to loop-player's money
			send action bar "&aOtrzymales &650 &a$ za gre na serwerze!" to loop-player

 

Dziala dziekuje

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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