fala um pouco mais do problema. mais eu acho que й assim
pawn Код:
//Caveirгo
if(text[0] == '!')
if(Player[playerid][pTorcida] == 1 || Player[playerid][pTorcida] == 2 || Player[playerid][pTorcida] == 3 || Player[playerid][pTorcida] == 4)
{
new sendername[30];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Chat - Caverгo] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
ABroadTeam(COR_CMD,string,1);
printf(string);
return 0;
}
//Comando da paz
if(text[0] == '!')
if(Player[playerid][pTorcida] == 5 || Player[playerid][pTorcida] == 6 || Player[playerid][pTorcida] == 7 || Player[playerid][pTorcida] == 8)
{
new sendername[30];
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Chat - Comando Da Paz] %s (%i): {FFFFFF}%s", sendername, playerid , text[1]);
ABroadTeam2(COR_ADA,string,1);
printf(string);
return 0;
}
//----------------//
forward ABroadTeam(COLOR,const string[],level);
public ABroadTeam(COLOR,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if(Player[i][pTorcida] == 1 || Player[i][pTorcida] == 2 || Player[i][pTorcida] == 3 || Player[i][pTorcida] == 4)
{
SendClientMessage(i, COLOR, string);
}
}
}
return 1;
}
forward ABroadTeam2(COLOR,const string[],level);
public ABroadTeam2(COLOR,const string[],level)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new aname[MAX_PLAYER_NAME];
GetPlayerName(i, aname, MAX_PLAYER_NAME);
if(Player[i][pTorcida] == 5 || Player[i][pTorcida] == 6 || Player[i][pTorcida] == 7 || Player[i][pTorcida] == 8)
{
SendClientMessage(i, COLOR, string);
}
}
}
return 1;
}