Skocz do zawartości
  • 0

Akceptowanie regulaminu poprzez komendy


Pytanie

Wyglądało by to tak... Gracz wchodzący na serwer ma blindness nausea slowness. Na czacie wyświetlają mu się wiadomości: "Aby się zalogować przeczytaj najpierw regulamin wpisując komendę /regulamin. Po wpisaniu wyświetla się regulamin gdzie na końcu pisze "Jeżeli akceptujesz regulamin napisz /akceptuje po tym gracz może się normalnie zalogować. Dziękuję <3

Odnośnik do komentarza
https://skript.pl/temat/32732-akceptowanie-regulaminu-poprzez-komendy/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on join:
	wait a second
	if {regulamin::%player%} is not set:
		apply nausea 999 to player for 99999 seconds
		apply slowness 999 to player for 9999 seconds
		apply blindness 999 to player for 9999 seconds
		send "Aby się zalogować przeczytaj najpierw regulamin wpisując komendę /regulamin"
command /regulamin:
	trigger:
		send "bla bla bla"
		send "Jesli akceptujesz napisz /akceptuje"
		send "Jesli nie akceptujesz, opusc serwer."
command /akceptuje:
	trigger:
		if {regulamin::%player%} is not set:
			set {regulamin::%player%} to true
			send "akceptowales regulamin"
			remove nausea from player
			remove blindness from player
			remove slowness from player
on command:
	if sender is a player:
		if {regulamin::%player%} is not set:
			if command is not "regulamin" or "akceptuje":
				cancel event
				send "&cNajpierw przeczytaj regulamin"
on chat:
	if {regulamin::%player%} is not set:
		cancel event
		send "&cNajpierw przeczytaj regulamin"

 

Edytowane przez Shooterowy
Odnośnik do komentarza
https://skript.pl/temat/32732-akceptowanie-regulaminu-poprzez-komendy/#findComment-212608
Udostępnij na innych stronach

  • 0
on join:
	apply nausea 200 to player for 500 days
	apply slowness 200 to player for 500 days
	apply blindness 200 to player for 500 days
	send "&7aby normalnie zagrac akceptuj regulamin! /regulamin a nastepnie /akceptuje!"
	set {reg::%player%} to true
command /regulamin [<text>]:
	trigger:
		send "1"
command /akceptuje [<text>]:
	trigger:
		if {reg::%player%} is true:
			set {reg::%player%} to false
			remove nausea from player
			remove slowness from player
			remove blindness from player
		else:
			send "&7Juz zaakceptowales regulamin!"

 

Odnośnik do komentarza
https://skript.pl/temat/32732-akceptowanie-regulaminu-poprzez-komendy/#findComment-212609
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ę...