30.07.2015, 23:01
Hm what if player cant see the message? if I set it to SendClientMessage
Like something like this
Like something like this
pawn Код:
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 the ones who didnt type /chatid
{
format(string,sizeof(string),"%s: {FFFFFF}%s",playerid, ReturnName(playerid),text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
//SendClientMessage(playerid, -1, string);
}
}
else
{
new string[128];
format(string,sizeof(string),"%s: {FFFFFF}%s",ReturnName(playerid),text);
SendClientMessageToAll(GetPlayerColor(playerid), string);
}