Skocz do zawartości
  • 0

Command czy on command ?


Pi3GUS3K

Pytanie

Siema, chce aby po zalogowaniu sie z pluginu authme zrobilo nastepujace czynnosci:

    execute console command "playsound random.levelup %player%"    wait 10 ticks    execute console command "playsound random.levelup %player%"    wait 10 ticks    execute console command "playsound random.levelup %player%"    wait 10 ticks    execute console command "playsound random.levelup %player%"    wait 10 seconds    loop 30 times:        send ""    send "&3&m===================================================" to player    send "&a&lWbiles na serwer: [usuwam ip ~ Parrot]!" to player    send "&3&m===================================================" to player    send "&a&l%player%, jestes na najlepszym serwerze hardcore :)" to player    send "&3&m===================================================" to player    send "&a&lReklamuj serwer, napewno dzieki temu sie rozwinie!" to player    send "&3&m=====================&e&l  Milej Gry!  &3&m===================" to player  

 

Oczywiscie, kiedy haslo jest poprawne :)

Odnośnik do komentarza
https://skript.pl/temat/3164-command-czy-on-command/
Udostępnij na innych stronach

8 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Do tego należy użyć eventu "on command", niestety nie da się wykryć argumentu w tym evencie, czyli tym samym nie da się sprawdzić poprawności hasła. Jedyne wyjście to napisanie addonu lub całego skryptu na logowanie (na forum jest kilka).

Odnośnik do komentarza
https://skript.pl/temat/3164-command-czy-on-command/#findComment-27818
Udostępnij na innych stronach

  • 0
KOD vvvvvvvvvvvvvvvvvvvvvv
on join:    wait 1 seconds        execute console command "playsound random.levelup %player%"    wait 10 ticks        execute console command "playsound random.levelup %player%"    wait 10 ticks        execute console command "playsound random.levelup %player%"    wait 10 ticks        execute console command "playsound random.levelup %player%"on join:    send "&3&m===================================================" to player    send "&a&lWbiles na serwer: [ciach]!" to player    send "&3&m===================================================" to player    send "&a&l%player%, jestes na najlepszym serwerze hardcore :)" to player    send "&3&m===================================================" to player    send "&a&lReklamuj serwer, napewno dzieki temu sie rozwinie!" to player    send "&3&m=====================&e&l  Milej Gry!  &3&m===================" to player  
KOD ^^^^^^^^^^^^

Spróbuj czy zadziała ;)

 

Albo :

on command /login:    trigger:        wait 1 seconds            execute console command "playsound random.levelup %player%"        wait 10 ticks            execute console command "playsound random.levelup %player%"        wait 10 ticks            execute console command "playsound random.levelup %player%"        wait 10 ticks            execute console command "playsound random.levelup %player%"on command /login:    trigger:        send "&3&m===================================================" to player        send "&a&lWbiles na serwer: [ciach]!" to player        send "&3&m===================================================" to player        send "&a&l%player%, jestes na najlepszym serwerze hardcore :)" to player        send "&3&m===================================================" to player        send "&a&lReklamuj serwer, napewno dzieki temu sie rozwinie!" to player        send "&3&m=====================&e&l  Milej Gry!  &3&m===================" to player  
Edytowane przez Tbone
Odnośnik do komentarza
https://skript.pl/temat/3164-command-czy-on-command/#findComment-27819
Udostępnij na innych stronach

  • 0

Istnieje addon AuthmeSkAddon do tego :) -klik

Hmm i się tak zastanawiam, po kiego grzyba chciałeś zapętlić to 30 razy ? :P

on command:	if command is "l" or "login":		wait 1 tick		make player execute command "/wbilemizalogowalem"	if command is "reg" or "register":		wait 1 tick		make player execute command "/wbilemizalogowalempierwszyraz"								command /wbilemizalogowalem:	trigger:		player is logged:			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			send ""			send "&3&m===================================================" to player			send "&a&lWbiles na serwer: [usuwam ip ~ Parrot]!" to player			send "&3&m===================================================" to player			send "&a&l%player%, jestes na najlepszym serwerze hardcore :)" to player			send "&3&m===================================================" to player			send "&a&lReklamuj serwer, napewno dzieki temu sie rozwinie!" to player			send "&3&m=====================&e&l  Milej Gry!  &3&m===================" to player  			command /wbilemizalogowalempierwszyraz:	trigger:		player is logged:			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			wait 10 ticks			execute console command "playsound random.levelup %player%"			send ""			send "&3&m===================================================" to player			send "&a&lWbiles na serwer: [usuwam ip ~ Parrot]!" to player			send "&3&m===================================================" to player			send "&a&l%player%, jestes na najlepszym serwerze hardcore :)" to player			send "&3&m===================================================" to player			send "&a&lReklamuj serwer, napewno dzieki temu sie rozwinie!" to player			send "&3&m=====================&e&l  Milej Gry!  &3&m===================" to player 
Edytowane przez Hydorax
Odnośnik do komentarza
https://skript.pl/temat/3164-command-czy-on-command/#findComment-27826
Udostępnij na innych stronach

  • 0

A czy jest opcja np.: Kiedy gracz dostanie wiadomosc: <kod>

 

Wtedy od pluginu authme i wiadomosci ze sie zarejestrowalo lub zalogowalo "wyslalo by dalszy kod do dzialania". Nie jestem pewny ale moze pomoze event "on chat" chociaz sam nie wiem jak on dziala :p

 

@up

 

Chcialem zapetlic wiadomosc "" tak aby zespamic zeby zaczac z czystym chatem xD

 

==================================================================

on command:    if command is "l" or "login":        wait 1 tick        make player execute command "/wbilemizalogowalem"    if command is "reg" or "register":        wait 1 tick        make player execute command "/wbilemizalogowalempierwszyraz" 
A czy jest to odrazu z poprawnym haslem ? Nigdy nie slyszalem o tym addonie dlatego sie pytam :p
Edytowane przez Pi3GUS3K
Odnośnik do komentarza
https://skript.pl/temat/3164-command-czy-on-command/#findComment-27828
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ę...