#how do i send it to every one but player

1 messages · Page 1 of 1 (latest)

brisk pagoda
#

warning this may be dumb

plucky ocean
#

You wanna send a message to everyone online except for the command sender?

#

sorry I'm a bit confused about the problem

plucky ocean
#

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

brisk pagoda
#

ok i will look it up

#

i will be back if i dont find any thing

plucky ocean
#

👍

brisk pagoda
#

wait

#

how do i sent message

plucky ocean
#

send "hello" to loop-player

brisk pagoda
#

can you send a complete one sorry for inconvenience

plucky ocean
#

I'm not going to spoonfeed

brisk pagoda
#

sorry

plucky ocean
plucky ocean
brisk pagoda
#

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

plucky ocean
#
  loop all players:
    if loop-player != command sender:
      send "hello" to loop player```
#

something like that

brisk pagoda
#

how dose loop-player work

plucky ocean
#

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

brisk pagoda
#

ahh

plucky ocean
#

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

brisk pagoda
#

fixed thank you so much for helping me i just started coding and this is my first experience

brisk pagoda
#

how do you put a if condition in a if condition

mighty blade
mighty blade
drowsy pendant
#

or just send "Message" to all players where [input is not player]

brisk pagoda
mighty blade
#

Just google skript tutorials

#

Theres some old ones