All pastes #2101149 Raw Edit

teamchat

public text v1 · immutable
#2101149 ·published 2012-01-08 15:39 UTC
rendered paste body
OnPlayerText(playerid, text[])
{
    if(text[0] = '!')
    {
        for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, 0xFFFF0000, text);
        return false;
    }
    return true;
}