17.10.2012, 19:25
PHP код:
public OnPlayerText(playerid, text[])
{
if(text[0] == '!')
{
if(PlayerInfo[playerid][pTorcida] == 1)
{
static
Nome[24],
String[128]
;
Nome[0] = EOS;
String[0] = EOS;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "[Chat Gaviхes da Fiel]%s(%d): {FFFFFF}%s", Nome,playerid, text[1]);
static
id
;
id = GetMaxPlayers();
for( ; id > -1; --id){
if(PlayerInfo[id][pTorcida] == 1){
SendClientMessage(id, COLOR_TVP, String);
}
}
}
if(PlayerInfo[playerid][pTorcida] == 2)
{
static
Nome[24],
String[128]
;
Nome[0] = EOS;
String[0] = EOS;
GetPlayerName(playerid, Nome, sizeof(Nome));
format(String, sizeof(String), "[Chat Torcida Coringгo Chopp]%s(%d): {FFFFFF}%s", Nome,playerid, text[1]);
static
id
;
id = GetMaxPlayers();
for( ; id > -1; --id){
if(PlayerInfo[id][pTorcida] == 2){
SendClientMessage(id, COLOR_TVP, String);
}
}
}
return 0;
}
return 1;
}