Skocz do zawartości
  • 0

Skrypt na 10$ co 5 minut


Pytanie

Poproszę żeby ktoś napisał mi skrypt na 10$ co 5 minut i żeby był dzienny limit czyli jeśli wejdę na serwer o 13 i będę grał do 14 to dostanę 60$ i wyskoczy mi wiadomość że osiągnąłem dzienny limit oraz gdy dostaję 10$ to żeby pojawiała się informacja np na czacie

Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/
Udostępnij na innych stronach

15 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
every 5 minutes in "world":
	if {limit:%player%} is not set:
		set {limit:%player%} to 0
	if {limit:%player%} is not 20:
		execute console command "eco give %player% 10"
		send "&aOtrzymales/as 10$ za gre na serwrze! Dziekujemy!" to player
		add 1 to {limit:%player%}
	else:
		send "&aPrzekroczono limit zarobku online! (limit: 200$ )"
		wait 12 hours
		set {limit:%player%} to 0
	

proszę :3

EDIT: teraz powinno działać, tam gdzie jest "world" wpisz nazwę świata, na którym to ma występować. Jeżeli ma być na kilku to wpisz every 5 minutes in "world" and "world2":

Edytowane przez ShardIt
poprawa kodu2
Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246516
Udostępnij na innych stronach

  • 0

Mogę wysłać to co jest tam napisane

 

[22:56:18] [Server thread/ERROR]:There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (skript.sk, line 2: if {limit:%player%} is not set:')
[22:56:18] [Server thread/ERROR]: There's no world in a periodic event if no world is given in the event (e.g. like 'every hour in "world"') (skript.sk, line 4: if {limit:%player%} is not 20:')
[22:56:18] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (skript.sk, line 8: else:')
Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246807
Udostępnij na innych stronach

  • 0

@Jacob_-_ Kod poprawiłem także tutaj powinno działać. 

W dniu 18.05.2020 o 14:05, ShardIt napisał:

every 5 minutes in "world":
	if {limit:%player%} is not set:
		set {limit:%player%} to 0
	if {limit:%player%} is not 20:
		execute console command "eco give %player% 10"
		send "&aOtrzymales/as 10$ za gre na serwrze! Dziekujemy!" to player
		add 1 to {limit:%player%}
	else:
		send "&aPrzekroczono limit zarobku online! (limit: 200$ )"
		wait 12 hours
		set {limit:%player%} to 0
	

proszę :3

EDIT: teraz powinno działać, tam gdzie jest "world" wpisz nazwę świata, na którym to ma występować. Jeżeli ma być na kilku to wpisz every 5 minutes in "world" and "world2":

 

Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246832
Udostępnij na innych stronach

  • 0

Zrobiłem tak jak mi powiedziałeś i teraz wyskakuje mi coś takiego


 

[12:14:19] [Server thread/INFO]: [Skript] Reloading skript.sk...
[12:14:19] [Server thread/ERROR]: There's no player in a periodical event (skript.sk, line 2: if {limit:%player%} is not set:')
[12:14:19] [Server thread/ERROR]: There's no player in a periodical event (skript.sk, line 4: if {limit:%player%} is not 20:')
[12:14:19] [Server thread/ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (skript.sk, line 8: else:')
[12:14:19] [Server thread/INFO]: [Skript] Encountered 3 errors while reloading skript.sk!
Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246834
Udostępnij na innych stronach

  • 0

aaaaaaaaaaaaaa dobra głupi jestem XD wait. to powinno zadziałać na 100%. rakiem jestem

every 5 minutes in "world":
	loop all players:
		if {limit..%loop-player%} is not set:
			set {limit..%loop-player%} to 0
		if {limit..%loop-player%} is not 20:
			execute console command "eco give %loop-player% 10"
			send "&aOtrzymales/as 10$ za gre na serwrze! Dziekujemy!" to loop-player
			add 1 to {limit..%loop-player%}
		else:
			send "&aPrzekroczono limit zarobku online! (limit: 200$ )"
			wait 12 hours
			set {limit..%loop-player%} to 0

EDIT: teraz powinno być ok, nie wszedzie dalem loop-player

Edytowane przez ShardIt
Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246838
Udostępnij na innych stronach

  • 0

A teraz wyskakują już 2 błędy 

[12:56:19] [Server thread/WARN]: If you meant to make the variable {limit:%loop-player%} a list, its name should contain '::'. Having a single ':' does nothing! (skript.sk, line 3: if {limit:%loop-player%} is not set:')
[12:56:19] [Server thread/ERROR]: There's no player in a periodical event (skript.sk, line 4: set {limit:%player%} to 0')
[12:56:19] [Server thread/WARN]: If you meant to make the variable {limit:%loop-player%} a list, its name should contain '::'. Having a single ':' does nothing! (skript.sk, line 5: if {limit:%loop-player%} is not 6:')
[12:56:19] [Server thread/WARN]: If you meant to make the variable {limit:%loop-player%} a list, its name should contain '::'. Having a single ':' does nothing! (skript.sk, line 8: add 1 to {limit:%loop-player%}')
[12:56:19] [Server thread/ERROR]: There's no player/console in a periodical event (skript.sk, line 10: send "&aPrzekroczono limit zarobku!"')
[12:56:19] [Server thread/WARN]: If you meant to make the variable {limit:%loop-player%} a list, its name should contain '::'. Having a single ':' does nothing! (skript.sk, line 12: set {limit:%loop-player%} to 0')
[12:56:19] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading skript.sk!
Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246843
Udostępnij na innych stronach

  • 0

już, zedytowałem ten. jestem rakiem życiowym i co chwile podstawowy błąd :/ 

45 minut temu, ShardIt napisał:

aaaaaaaaaaaaaa dobra głupi jestem XD wait. to powinno zadziałać na 100%. rakiem jestem


every 5 minutes in "world":
	loop all players:
		if {limit..%loop-player%} is not set:
			set {limit..%loop-player%} to 0
		if {limit..%loop-player%} is not 20:
			execute console command "eco give %loop-player% 10"
			send "&aOtrzymales/as 10$ za gre na serwrze! Dziekujemy!" to loop-player
			add 1 to {limit..%loop-player%}
		else:
			send "&aPrzekroczono limit zarobku online! (limit: 200$ )"
			wait 12 hours
			set {limit..%loop-player%} to 0

EDIT: teraz powinno być ok, nie wszedzie dalem loop-player

 

Odnośnik do komentarza
https://skript.pl/temat/39226-skrypt-na-10-co-5-minut/#findComment-246844
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ę...