09.06.2012, 14:54
SendClientMessageToAll will still send the message to EVERYONE.
pawn Код:
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerVirtualWorld(i) == GetPlayerVirtualWorld(playerid))
{
/* THIS */
new
sTextChat[800];
format(sTextChat, sizeof(sTextChat), "%s: "#EMB_COLOR_WHITE"%s", name(playerid), text);
SendClientMessage(i, GetPlayerColor(playerid), sTextChat);
/* THIS */
}
return 0;
}
}