24.07.2012, 21:16
Adicione o resto ...
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
new Nome[24], String[128];
GetPlayerName(playerid, Nome, sizeof(Nome));
if(PlayerInfo[playerid][pTorcida] == 1)
format(String, sizeof(String), "[Chat Gaviхes da Fiel] %s : {FFFFFF}%s", Nome, text[1]);
else if(PlayerInfo[playerid][pTorcida] == 2)
format(String, sizeof(String), "[Chat Torcida Coringгo Chopp] %s : {FFFFFF}%s", Nome, text[1]);
SendHelperMessage(playerid, COLOR_TVP, String);
return 0;
}
return 1;
}
public SendHelperMessage(playerid, color, string[])
{
for(new i, j = GetMaxPlayers(); i != j; i++)
if(IsPlayerConnected(i))
if(PlayerInfo[playerid][pTorcida] == PlayerInfo[i][pTorcida])
SendClientMessage(i, COLOR_TVP, string);
printf("[Chat]%s", string);
}