21.08.2015, 21:01
(
Последний раз редактировалось DerickClark; 21.08.2015 в 21:43.
)
........
if(Chat[playerid] == true) { new string[128]; format(string,sizeof(string),"(%i) %s: {FFFFFF}%s",playerid, ReturnName(playerid),text); SendClientMessageToAll(GetPlayerColor(playerid), string); if(Chat[playerid] == false) { for(new i = 0; i < MAX_PLAYERS; i++) { format(string,sizeof(string),"%s: {FFFFFF}%s",playerid, ReturnName(i),text); SendClientMessage(playerid,GetPlayerColor(playerid),string); } } } else { for(new i = 0; i < MAX_PLAYERS; i++) { new string[128]; format(string,sizeof(string),"%s: {FFFFFF}%s",ReturnName(i),text); SendClientMessage(playerid,GetPlayerColor(playerid),string); } }
if(Chat[playerid] == true)
{
new string[128];
format(string,sizeof(string),"(%i) %s: {FFFFFF}%s",playerid, ReturnName(playerid),text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
if(Chat[playerid] == false)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
format(string,sizeof(string),"%s: {FFFFFF}%s",playerid, ReturnName(i),text);
}
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
}
else
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new string[128];
format(string,sizeof(string),"%s: {FFFFFF}%s",ReturnName(i),text);
}
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}