31.03.2012, 15:29
(
Последний раз редактировалось Cjgogo; 31.03.2012 в 15:42.
Причина: Topic Closed!!!
)
Problem solved!!!
public OnPlayerText(playerid, text[])
{
new pName[24];
GetPlayerName(playerid,pName,sizeof(pName));
new string[256];
if(gTeam[playerid]==TEAM_ROBBERS) format(string,sizeof(string),"{FFFFFF}%s(%d):%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_COPS) format(string,sizeof(string),"{0000FF}%s(%d):{FFFFFF}%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_MEDICS) format(string,sizeof(string),"{33AA33}%s(%d):{FFFFFF}%s",pName,playerid,text);
else if(gTeam[playerid]==TEAM_FIREFIGHTERS) format(string,sizeof(string),"{FF4500}%s(%d):{FFFFFF}%s",pName,playerid,text);
SendClientMessageToAll(COLOR_WHITE,string);
return 0;
}