19.07.2012, 15:11
Eae este chat ta bugado quando o player digita ! [Texto] Aparece um monte e sendo que nem й da torcida quem poder me ajuda vlw cуdigo :
No Topo :
OnPlayerText:
No Topo :
pawn Код:
static Torcida[MAX_PLAYERS];
pawn Код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
if(PlayerInfo[playerid][pTorcida] >= 1)
{
new VarTorcida[MAX_PLAYERS];
new Nome[24], String[128];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "[Chat de Torcida][Torcida Jovem do Flamengo]: %s Diz: %s", Nome, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(VarTorcida[playerid] == Torcida[i])
{
SendClientMessage(playerid, COLOR_PC, String);
}
}
}
if(PlayerInfo[playerid][pTorcida] >= 2)
{
new VarTorcida[MAX_PLAYERS];
new Nome[24], String[128];
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "[Chat de Torcida][Raзa Rubro Negra]: %s : %s", Nome, text[1]);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(VarTorcida[playerid] == Torcida[i])
{
SendClientMessage(playerid, COLOR_PC, String);
}
}
}
}
return 1;
}