27.01.2010, 11:30
When someones typed !hello it's just saying it in the normal chat. So everyone can read it. I hope somebody can help me.
pawn Код:
if(text[0] == '!' && text[1] != 0)
{
format( string, 128, "[Team] %s: %s", pInfo[playerid][name], text[1] );
for(new i = 0; i < MAX_PLAYERS; i++ )
{
if( IsPlayerConnected(i) && gTeam[i] == gTeam[i] )
SendClientMessage( i, teamchat, string );
}
return 0;
}