Skocz do zawartości
  • 0

Event


RoxetGamePlay

Pytanie

Ktoś by takie coś ogarnął?

/event start (pisze ze za 30 sekund wystartuje) każdy ma 20 sek aby wpsiać /dolacz ci co dołącza zostają tepnięci po 20 sek na /warp test dołaczanie zostaje włacozne

czekają 10 sek i pisze event wystartował.

I ważne minimum 5 graczy musi wpisać /dolacz zeby teplo a max 60

Odnośnik do komentarza
https://skript.pl/temat/15999-event/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
		{event.status} = false
        {event.zapis} = false
        {event.zapisany.%player%} = false
        {event.graczy} = 0
        
#JAK COŚ NIE DZIAŁA PISZ NA PW LUB POST

command /event [<text>]:
	permission: event.start
    permission message: &cNie posiadasz uprawnien!
    trigger:
    	if arg 1 is not set:
        	send "&aUzyj: &f/event start"
            send "&aUzyj: &f/event reset"
            stop
		if arg 1 is "start":
        	broadcast "&aZa 30 sekund wystartuje EVENT!"
        	set {event.status} to true
            set {event.zapis} to true
			wait 20 seconds
            set {event.zapis} to false
            loop all players:
            	if {event.status} is true:
                    if {event.zapisany.%loop-player%} is true:
                    	if {event.graczy} is more or equal to 5:
                        	if {event.graczy} is not bigger than 59:
                                execute loop-player command "/warp test"
                                send "&7Zostales przeteleportowany na EVENT!" to loop-player
                                wait 10 seconds
                                broadcast "&aEVENT wystartowal!"
                                stop
                        else:
                        	broadcast "&cEVENT nie wystartowal, poniewaz zapisalo sie zbyt malo osob!"
                            set {event.graczy} to 0
                            set {event.status} to false
                            set {event.zapis} to false
                            set {event.zapisany.%loop-player%} to false
                            set {event.zapisany.%player%} to false
                            stop
                    
        if arg 1 is "reset":
        	loop all players:
            	set {event.status} to false
        		set {event.zapis} to false
       			set {event.zapisany.%player%} to false
                set {event.zapisany.%loop-player%} to false
        		set {event.graczy} to 0 

command /dolacz:
	trigger:
    	if {event.status} is true:
        	if {event.zapis} is true:
            	if {event.zapisany.%player%} is false:
                	set {event.zapisany.%player%} to true
                    add 1 to {event.graczy}
                    send "&7Zapisales sie na EVENT!"
                    stop
                else:
                	send "&cZapisales sie juz na EVENT!"
                    stop
            else:
            	send "&cNie mozesz juz sie zapisac na EVENT!"
                stop
        else:
        	send "&cAktualnie nie ma zadnego Eventu!"
            stop
            
on quit:
	if {event.status} is true:
        set {event.status} to false
        set {event.zapis} to false
        set {event.zapisany.%player%} to false
        set {event.graczy} to 0

Nie testowane jak cos pisz, pisane na szybko

 

JAK POMOGŁEM TO DAJ KCIUKA !

Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-109100
Udostępnij na innych stronach

  • 0
1 minutę temu, RoxetGamePlay napisał:

Całę wytabować trzeba xd(61 error). Jutro sprawdzę bo dzisiaj już czasu nie mam.

Jest wytabowane już spróbuj z tego linku https://code.skript.pl/qF72PI3r/

Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-109155
Udostępnij na innych stronach

  • 0
14 godzin temu, SirGeorge napisał:

Jest wytabowane już spróbuj z tego linku https://code.skript.pl/qF72PI3r/

Nadal nie xd. Ale już sb naprawiłem błędy. 

Gitara 0 błędów działa jak bym chciał. Tylko jedna małą sprawa, dodał byś że jak ktoś lognie na regionie "event" i wbije za jakiś czas to bd na spawn? Żeby mi nie logali na evencie ;/.

Edytowane przez RoxetGamePlay
Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-109200
Udostępnij na innych stronach

  • 0
Dnia 24.01.2017 o 19:42, SirGeorge napisał:

on quit:
	if player is in the region "event":
		if {event.zapisany.%player%} is true:
			set {event.zapisany.%player%} to false
			execute player command "/spawn"
			stop

O takie coś ci chodziło ?

Tak. Ale eventy nie dzialaja :/.

Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-110674
Udostępnij na innych stronach

  • 0
on join:
	if {event.zapisany.%player%} is true:
		execute console command "spawn %player%"
		set {event.status} to false
		set {event.zapis} to false
		set {event.zapisany.%player%} to false
		set {event.graczy} to 0

Zastąp za

on quit:
	if {event.status} is true:
		set {event.status} to false
		set {event.zapis} to false
		set {event.zapisany.%player%} to false
		set {event.graczy} to 0

 

Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-120557
Udostępnij na innych stronach

  • 0
Dnia 11.04.2017 o 21:00, ShroN napisał:

on join:
	if {event.zapisany.%player%} is true:
		execute console command "spawn %player%"
		set {event.status} to false
		set {event.zapis} to false
		set {event.zapisany.%player%} to false
		set {event.graczy} to 0

Zastąp za


on quit:
	if {event.status} is true:
		set {event.status} to false
		set {event.zapis} to false
		set {event.zapisany.%player%} to false
		set {event.graczy} to 0

 

Ogólnie to cały plugin nie działa. pomagał mi na priv ale zawsze coś było nie tak ;/. Kod z błędami

https://code.skript.pl/qF72PI3r/

Edytowane przez RoxetGamePlay
Odnośnik do komentarza
https://skript.pl/temat/15999-event/#findComment-121549
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ę...