27.06.2014, 19:17
Hello can to help mee with SendClientMessageToAll.
Hello i want to create to send meesage to all players but not on myself.
Hello i want to create to send meesage to all players but not on myself.
SendMessageToAll(-1, "some tests", 1);
SendMessageToAll(color, const string[], exception = INVALID_PLAYER_ID)
{
if (exception != INVALID_PLAYER_ID)
{
foreach(new i : Player)
{
if (i != exception) SendClientMessage(i, color, string);
}
}
else
{
foreach(new i : Player) SendClientMessage(i, color, string);
}
}