Guitar Freak
_LüA_n☺b_
Im under a lot of stress lately which is keeping me from thinking correctly so Im having quite a hard time figuring this one out, hopefully you will know better.
Basically it is what title says:
"Player X" kills "Player Y" and another player i.e "Player Z" who may or may not even be near the place where this happened, automatically receives a message notifying him about it (i.e "Player X has just killed Player Y.").
If you need a further example, lets say we have 2 teams of players fighting each other on an arena or similar, being:
So lets say the arena is huge and Player A went on fighting Player B on the upper part of the arena being really far from Player 1 and Player 2 which are on the bottom, in this case if Player A managed to kill Player B, his teammate Player 1 wouldnt be able to know (instantly at least), so my question is how can I make it so Player 1 receives this notification.
In the case Ill use it for, this "Player 1 and Player A" will have a storage that defines them as "Team A", and a different one for Team B, so the point is that if someone from Team B is killed, everyone with the storage for Team A will be notified.
What Im not looking for:
Global Broadcasting. Why? Because I dont want this broadcasted to the whole server, I want the notifications "broadcasted" (messaged) only to this exclusive amount of people (Team A/Team B).
So there you go, any idea how to pull this off? Also, it doesnt matter if you script for 0.2+ or 0.3+, I just need a reference to work with myself.
Thanks in advance, as always Ill be +repping any helpful answers.
(Notice that if you come up with a working solution and dont get +repped from me, it is most certainly because I received the error "must spread rep" thing, but Ill pay attention and try to +rep you everytime I log until I succeed )
Basically it is what title says:
"Player X" kills "Player Y" and another player i.e "Player Z" who may or may not even be near the place where this happened, automatically receives a message notifying him about it (i.e "Player X has just killed Player Y.").
If you need a further example, lets say we have 2 teams of players fighting each other on an arena or similar, being:
Team A:
Player A + Player 1
Team B:
Player B + Player 2
So lets say the arena is huge and Player A went on fighting Player B on the upper part of the arena being really far from Player 1 and Player 2 which are on the bottom, in this case if Player A managed to kill Player B, his teammate Player 1 wouldnt be able to know (instantly at least), so my question is how can I make it so Player 1 receives this notification.
In the case Ill use it for, this "Player 1 and Player A" will have a storage that defines them as "Team A", and a different one for Team B, so the point is that if someone from Team B is killed, everyone with the storage for Team A will be notified.
What Im not looking for:
Global Broadcasting. Why? Because I dont want this broadcasted to the whole server, I want the notifications "broadcasted" (messaged) only to this exclusive amount of people (Team A/Team B).
So there you go, any idea how to pull this off? Also, it doesnt matter if you script for 0.2+ or 0.3+, I just need a reference to work with myself.
Thanks in advance, as always Ill be +repping any helpful answers.
(Notice that if you come up with a working solution and dont get +repped from me, it is most certainly because I received the error "must spread rep" thing, but Ill pay attention and try to +rep you everytime I log until I succeed )