FezZu 4 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 Czesc! Potrzebuje skryptu na /kit. Chce aby było tam ile czasu zostało do odebrania znowu kitu. np. &cTen zestaw będziesz mógl odebrać za: 23h59m50s. Dla tego co będzie robił: Zrób tylko 1 kit, ja sobie to poedytuje. Z Góry dziękuje Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 Zaaxel 45 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 Użyj essentials o ile używasz Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202622 Udostępnij na innych stronach Więcej opcji udostępniania...
0 FezZu 4 Opublikowano 31 grudnia 2018 Autor Udostępnij Opublikowano 31 grudnia 2018 1 minutę temu, Zaaxel napisał: Użyj essentials o ile używasz essentials ma slabe kity. Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202623 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Zaaxel 45 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 Ewentualnie przerób sobie podstawowy dezaktywowany skrypt na komendę z cooldown. Jak nie usunąłeś to masz w folderze scripts Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202625 Udostępnij na innych stronach Więcej opcji udostępniania...
0 FezZu 4 Opublikowano 31 grudnia 2018 Autor Udostępnij Opublikowano 31 grudnia 2018 2 minuty temu, Zaaxel napisał: Ewentualnie przerób sobie podstawowy dezaktywowany skrypt na komendę z cooldown. Jak nie usunąłeś to masz w folderze scripts Zawsze usuwam. Mozesz wyslac ? Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202626 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Zaaxel 45 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 # # This script is a template for commands which have a cooldown. # I will add a more intuitive way of handling cooldowns/countdowns in the future, # But for now please use something like this. # Make sure that you do not use delays for cooldowns as they stop when the server stops. # # This command allows each player to get infinite cakes # but the command has a cooldown of one minute (per player) command /cake: description: Recieve a cake, but you can only do this once per minute! permission: cake.is_a_lie executable by: players trigger: # stores how long it's been since the player last used this command set {_waited} to difference between {cake.%player%.lastused} and now # checks whether the player has used the command within the last minute if {_waited} is less than a minute: message "You have to wait %difference between a minute and {_waited}% before you can use this command again!" stop # some condition which sould not start the cooldown # (if the player doesn't get the cake he should be able to use the command again immediately) player doesn't have space for a cake: message "You do not have enough space in your inventory to hold the cake!" stop # do the action of the command give a cake to the player # and finally start the cooldown set {cake.%player%.lastused} to now Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202629 Udostępnij na innych stronach Więcej opcji udostępniania...
0 FezZu 4 Opublikowano 31 grudnia 2018 Autor Udostępnij Opublikowano 31 grudnia 2018 11 minut temu, Zaaxel napisał: # # This script is a template for commands which have a cooldown. # I will add a more intuitive way of handling cooldowns/countdowns in the future, # But for now please use something like this. # Make sure that you do not use delays for cooldowns as they stop when the server stops. # # This command allows each player to get infinite cakes # but the command has a cooldown of one minute (per player) command /cake: description: Recieve a cake, but you can only do this once per minute! permission: cake.is_a_lie executable by: players trigger: # stores how long it's been since the player last used this command set {_waited} to difference between {cake.%player%.lastused} and now # checks whether the player has used the command within the last minute if {_waited} is less than a minute: message "You have to wait %difference between a minute and {_waited}% before you can use this command again!" stop # some condition which sould not start the cooldown # (if the player doesn't get the cake he should be able to use the command again immediately) player doesn't have space for a cake: message "You do not have enough space in your inventory to hold the cake!" stop # do the action of the command give a cake to the player # and finally start the cooldown set {cake.%player%.lastused} to now nie da sie go tak przerobic. Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202631 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Parczik 7 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 W essentials wchodzisz i szukasz linijki z kitami i tam sobie wybierasz co ile sekund można wziąć, co daje i chyba permisje z tego co pamiętam Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202632 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Zaaxel 45 Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 28 minut temu, FezZu napisał: nie da sie go tak przerobic. Da się jeżeli logicznie się myśli, ja zrobiłem pod coś innego jednak pozostały czas pokazuje w dziwny sposób bona przykład "29 days and 23.95 hours" Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202634 Udostępnij na innych stronach Więcej opcji udostępniania...
0 Gość ZiemniaQ Opublikowano 31 grudnia 2018 Udostępnij Opublikowano 31 grudnia 2018 Lepszego skryptu na kity nie znajdziesz: 1 godzinę temu, Zaaxel napisał: Da się jeżeli logicznie się myśli, ja zrobiłem pod coś innego jednak pozostały czas pokazuje w dziwny sposób bona przykład "29 days and 23.95 hours" Jeżeli się logicznie myśli to przerobienie daty ze Skripta na jakąś normalną też nie będzie stanowić problemu. +Ciekawostka: Od Skript 2.2 dev34 (chyba) cooldown w komendzie można dodawać w ten sposób: command /komenda [<text>]: cooldown: 3 seconds cooldown message: Zwolnij szatanie. trigger: send arg 1 Cytuj Odnośnik do komentarza https://skript.pl/temat/31111-kity/#findComment-202653 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
FezZu 4
Czesc! Potrzebuje skryptu na /kit.
Chce aby było tam ile czasu zostało do odebrania znowu kitu. np. &cTen zestaw będziesz mógl odebrać za: 23h59m50s.
Dla tego co będzie robił:
Zrób tylko 1 kit, ja sobie to poedytuje.
Z Góry dziękuje
Odnośnik do komentarza
https://skript.pl/temat/31111-kity/Udostępnij na innych stronach
9 odpowiedzi na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.