26.09.2010, 11:31
pawn Код:
if(text[0] == '!')
{
new string[128+MAX_PLAYER_NAME+5];
new name[24]; GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"*%s* : %s",name,text[1]);
PlayerLoop(i)
{
if(IsPlayerConnected(i) &&(gTeam[i] == gTeam[playerid]))
{
SendClientMessage(i,GetPlayerColor(playerid),string);
return 0;
}
}
return 0;
}