11.08.2009, 03:24
pawn Код:
public OnPlayerText(playerid,text[])
{
if(text[0] == '@')
{
new string[128]; GetPlayerName(playerid, string, sizeof(string));
format(string, sizeof(string), "gTeamnamehere %s: %s", string, text[1]); // Specify which gTeams you need this for.
printf("%s", string);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, COLOR_WHITE, string); // Changes color to white, not what color player is.
}
return 0;
}
return 1;
}

