GreenForce12 0 Opublikowano 25 marca 2020 Udostępnij Opublikowano 25 marca 2020 Siema, wie ktoś jak zrobić, żeby wyświetlany broadcast był wyśrodkowany? Z góry dzięki za pomoc. Odnośnik do komentarza https://skript.pl/temat/37748-broadcast/ Udostępnij na innych stronach Więcej opcji udostępniania...
0 xAxee 1968 Opublikowano 25 marca 2020 Udostępnij Opublikowano 25 marca 2020 function sendCenterText(p: player, t: text): set {_spaces} to "" loop (rounded down ((80 - (1.4 * (length of {_t})))/2)) times: set {_spaces} to "%{_spaces}% " send "%{_spaces}%%{_t}%" to {_p} command /ce [<text="test">]: trigger: sendCenterText(executor, arg) jedynie mozna dac spacje przed zdanie PanMaruda 1 Odnośnik do komentarza https://skript.pl/temat/37748-broadcast/#findComment-239580 Udostępnij na innych stronach Więcej opcji udostępniania...
0 GreenForce12 0 Opublikowano 25 marca 2020 Autor Udostępnij Opublikowano 25 marca 2020 on death: if attacker is a player: if victim is wither: broadcast "&c%attacker% &6zabil withera!" ###<--- To ma być wyśrodkowane a jeżeli to tutaj miałoby być wyśrodkowane? Odnośnik do komentarza https://skript.pl/temat/37748-broadcast/#findComment-239583 Udostępnij na innych stronach Więcej opcji udostępniania...
0 PanMaruda 624 Opublikowano 25 marca 2020 Udostępnij Opublikowano 25 marca 2020 14 minut temu, GreenForce12 napisał: on death: if attacker is a player: if victim is wither: broadcast "&c%attacker% &6zabil withera!" ###<--- To ma być wyśrodkowane a jeżeli to tutaj miałoby być wyśrodkowane? function sendCenterText(p: players, t: text): set {_spaces} to "" loop (rounded down ((80 - (1.4 * (length of {_t})))/2)) times: set {_spaces} to "%{_spaces}% " send "%{_spaces}%%{_t}%" to {_p::*} on death: if attacker is a player: if victim is wither: sendCenterText((all players), ("&c%attacker% &6zabil withera!")) xAxee i GreenForce12 1 1 Odnośnik do komentarza https://skript.pl/temat/37748-broadcast/#findComment-239586 Udostępnij na innych stronach Więcej opcji udostępniania...
0 xAxee 1968 Opublikowano 25 marca 2020 Udostępnij Opublikowano 25 marca 2020 (edytowane) 26 minut temu, GreenForce12 napisał: on death: if attacker is a player: if victim is wither: broadcast "&c%attacker% &6zabil withera!" ###<--- To ma być wyśrodkowane a jeżeli to tutaj miałoby być wyśrodkowane? function getCenterText(t: text) :: texts: set {_spaces} to "" loop (rounded down ((80 - (1.4 * (length of {_t})))/2)) times: set {_spaces} to "%{_spaces}% " return "%{_spaces}%%{_t}%" on death: if attacker is a player: if victim is wither: broadcast getCenterText("&c%attacker% &6zabil withera!") aa juz maruda podał xD Edytowane 25 marca 2020 przez xAxee Odnośnik do komentarza https://skript.pl/temat/37748-broadcast/#findComment-239589 Udostępnij na innych stronach Więcej opcji udostępniania...
Pytanie
GreenForce12 0
Siema, wie ktoś jak zrobić, żeby wyświetlany broadcast był wyśrodkowany? Z góry dzięki za pomoc.
Odnośnik do komentarza
https://skript.pl/temat/37748-broadcast/Udostępnij na innych stronach
4 odpowiedzi na to pytanie
Rekomendowane odpowiedzi