28.03.2009, 14:20
public OnPlayerText(playerid, text[])
{
new string[256];
if(text[0] == '!')
{
for(new i = 0; i <= MAX_PLAYERS; i++ )
{
if(gTeam[playerid] == gTeam[i])
format(string, sizeof(string), "(Team) %s", text[1]);
SendPlayerMessageToPlayer(i, playerid, string);
}
return 0;
}
return 0;
}
{
new string[256];
if(text[0] == '!')
{
for(new i = 0; i <= MAX_PLAYERS; i++ )
{
if(gTeam[playerid] == gTeam[i])
format(string, sizeof(string), "(Team) %s", text[1]);
SendPlayerMessageToPlayer(i, playerid, string);
}
return 0;
}
return 0;
}