Skocz do zawartości
  • 0

Skrypt na /ping


Crystal_PL

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
options:

	# Czy uprawnienie do komendy /ping <gracz> ma byc wlaczone
	# tak (1) / nie (0)
	pingARG_permission_status: 1
	
	pingARG_permission: ping.player_argument

	# Wiadomosci

	# Wiadomosc 'ping gracza, ktory wykonal komende /ping'
	# Available variables: (PING_SENDER)
	message_ping_sender: &8» &7Twoj ping to&8: &3(PING_SENDER)

	# Wiadomosc 'ping gracza z argumentu /ping <gracz[argument]>'
	# Available variables: (P_ARG), (PING_PLAYERARGUMENT)
	message_ping_playerargument: &8» &7Ping gracza &3(P_ARG) &7to&8: &6(PING_PLAYERARGUMENT)
command /ping [<player>]:
	description: Sprawdzanie PING.
	trigger:
		if argument isn't set: #' fix syntax
			set {_msg::%player%} to "{@message_ping_sender}"
			replace all "(PING_SENDER)" with "%player's ping%" in {_msg::%player%}
			send "%{_msg::%player%}%" to the player
		if argument is set:
			if "{@pingARG_permission_status}" = 1:
				if player has permission "{@pingARG_permission}":
					set {_msg::%player%} to "{@message_ping_playerargument}"
					replace all "(PING_PLAYERARGUMENT)" with "%player-argument's ping%" in {_msg::%player%}
					replace all "(P_ARG)" with "%player-argument%" in {_msg::%player%}
					send "%{_msg::%player%}%" to the player
				else:
					send "&8» &4Brak uprawnien&8." to the player
			else:
				set {_msg::%player%} to "{@message_ping_playerargument}"
				replace all "(PING_PLAYERARGUMENT)" with "%player-argument's ping%" in {_msg::%player%}
				replace all "(P_ARG)" with "%player-argument%" in {_msg::%player%}
				send "%{_msg::%player%}%" to the player
		stop

Pamiętaj, że wszystkie sekcje w "options" muszą być ustawione na cokolwiek, aby skrypt działał :].

Odnośnik do komentarza
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ę...