24.12.2008, 13:56
Hey!
I'm using LimitGlobalChatRadius(125) on my server, so automatically when you write it only sends to the people around you.
Now I want to send the Message "Nobody around you recieved the message." if noone received the message. Now i have the weird bug, that the message also comes if 1 Person heard you, but as soon as 2 people hear it, it is all ok and the Message does not appear.
Anyone can help me please? Here is the code I'm using:
I'm using LimitGlobalChatRadius(125) on my server, so automatically when you write it only sends to the people around you.
Now I want to send the Message "Nobody around you recieved the message." if noone received the message. Now i have the weird bug, that the message also comes if 1 Person heard you, but as soon as 2 people hear it, it is all ok and the Message does not appear.
Anyone can help me please? Here is the code I'm using:
pawn Код:
LimitGlobalChatRadius(125);
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(GetDistanceBetweenPlayers(playerid, i) > 125)
{
SendClientMessage(playerid,COLOUR_WHITE , "( ! ) (INFO) Nobody around you recieved the message.");
}
}