Witam, myślę nad tym jak napisać komendę /speed, kiedyś napisałem ale nie działała z błahych przyczyn. Tutaj jest sam skrypcik: (zaznaczam że za dobrze napisany skrypt jest naj) Dzięki i pozdrawiam
command /speed [<integer>] [<offlineplayer>]:
permission: admin.speed
permission message: &7[&4&lSerwer&7] &8>> &cNie możesz tego zrobić, bo nie masz permisji!
trigger:
if arg 1 is set:
if arg 2 is set:
if arg 1 is greater than 0 and less than 10:
if %arg-2% is flying:
set the %arg-2% fly speed to %arg-1%
send "&7[&4&lSerwer&7] &8>> &7Ustawiono prędkość latania na %arg-1% dla gracza %arg-2%." to player
else:
set the %arg-2% walk speed to %arg-1%
send "&7[&4&lSerwer&7] &8>> &7Ustawiono prędkość chodzenia na %arg-1% dla gracza %arg-2%." to player
else:
send "&7[&4&lSerwer&7] &8>> &cWartość musi być w przedziale od 0 do 10!" to player
cancel event
else:
if arg 1 is greater than 0 and less than 10:
if player is flying:
set the player's fly speed to %arg-1%
send "&7[&4&lSerwer&7] &8>> &7Ustawiono prędkość latania na %arg-1%!" to player
else:
set the player's walk speed to %arg-1%
send "&7[&4&lSerwer&7] &8>> &7Ustawiono prędkość chodzenia na %arg-1%!" to player
else:
send "&7[&4&lSerwer&7] &8>> &cPoprawne użycie: &4/speed <0-10> <gracz>"
Logi podczas wczytywania:
[20:30:42 ERROR]: Numeric ids are not supported anymore. (Speed.sk, line 7: if arg 1 is greater than 0 and less than 10:')
[20:30:42 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Speed.sk, line 14: else:')
[20:30:42 ERROR]: Numeric ids are not supported anymore. (Speed.sk, line 17: if arg 1 is greater than 0 and less than 10:')
[20:30:42 INFO]: [Skript] Encountered 3 errors while reloading Speed.sk!
Pytanie
3meraldK 100
Witam, myślę nad tym jak napisać komendę /speed, kiedyś napisałem ale nie działała z błahych przyczyn. Tutaj jest sam skrypcik: (zaznaczam że za dobrze napisany skrypt jest naj) Dzięki i pozdrawiam
Logi podczas wczytywania:
[20:30:42 ERROR]: Numeric ids are not supported anymore. (Speed.sk, line 7: if arg 1 is greater than 0 and less than 10:') [20:30:42 ERROR]: 'else' has to be placed just after an 'if' or 'else if' section (Speed.sk, line 14: else:') [20:30:42 ERROR]: Numeric ids are not supported anymore. (Speed.sk, line 17: if arg 1 is greater than 0 and less than 10:') [20:30:42 INFO]: [Skript] Encountered 3 errors while reloading Speed.sk!
Edytowane przez 3meraldKlogi
Odnośnik do komentarza
https://skript.pl/temat/33288-skrypt-na-speed/Udostępnij na innych stronach
1 odpowiedź 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ą.