team speak
#1

I have no team in my gm i use a variable job[MAX_PLAYERS];

How can i make a team chat that if sender is job[playerid] == 5 to send all players with job=5 what he told
Reply
#2

with
Код:
forward SendMessageToTeam( teamid, color, msg[ ] );
public SendMessageToTeam( teamid, color, msg[ ] )
{
    for( new i = 0; i < MAX_PLAYERS; i++ )
    {
      if( gTeam[ i ] == teamid )
      {
        SendClientMessage( i, color, msg );
      }
    }
}
Reply
#3

hahhaahha not for this dude with text i solved it thank anyway
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)