#how do i send it to every one but player
1 messages · Page 1 of 1 (latest)
You wanna send a message to everyone online except for the command sender?
sorry I'm a bit confused about the problem
yes
alright
you wanna loop all players and then check if the loop player isn't the command sender
if it isn't, send a message to the loop player
if loop-player != command sender:```
something like that
👍
send "hello" to loop-player
can you send a complete one sorry for inconvenience
I'm not going to spoonfeed
sorry
put this after your command
and put this after the loops
like this?
if {afkYN%player%} is 0:
loop all players:
send "&b[boxcraft] &a%player% is no longer afk" to player
if loop-player != command sender:
send "&b[boxcraft] &ayou are no longer afk" to player
i have no clue what im doing
loop all players:
if loop-player != command sender:
send "hello" to loop player```
something like that
how dose loop-player work
Alright, so when you use loop all players:, it's looping through every online player one at a time. The expression loop-player is the player that your code is currently looping through
ahh
The line in the skript I sent if loop-player != command sender is checking if the loop-player is the same player as the command sender, and if it isn't, to send a message to that player. Basically it's going through and sending a message to every player but the command sender
fixed thank you so much for helping me i just started coding and this is my first experience
how do you put a if condition in a if condition
Look at some tutorials. Don’t ask for spoon feeding, that doesnt help you. You need to gain experience yourself.
Couldnt you just loop all players where input != event-player?
or just send "Message" to all players where [input is not player]
i tryed the only reson im here is because i dont know what to secrce for