13.12.2009, 15:57
hey guys again, i've come across this its probably nothing but could you take a look thanks.
all that happens is it says Counter (Terrorist): %s: Message but then after it it says %s message, any ideas? thanks.
-©un3o.
pawn Код:
//---------------[Coloured Chat, Normal]------------------//
if (IsPlayerConnected(playerid))
{
if(gTeam[playerid] == TEAM_CT)
{
new CTString[128];
format(CTString, 128, "Counter Terrorist %s: %s",GetPlayerNameEx(playerid), text);
SendClientMessageToAll(COLOR_MARINE, CTString);
print(CTString);
WriteLog("chat",CTString);
return 1;
}
else if(gTeam[playerid] == TEAM_TT)
{
new TString[128];
format(TString, 128, "Terrorist %s: %s",GetPlayerNameEx(playerid), text);
SendClientMessageToAll(COLOR_ORANGE, TString);
print(TString);
WriteLog("chat",TString);
return 0;
}
}
-©un3o.