SA-MP Forums Archive
team speak - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: team speak (/showthread.php?tid=124177)



team speak - TouR - 29.01.2010

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


Re: team speak - akis_tze - 29.01.2010

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 );
      }
    }
}



Re: team speak - TouR - 29.01.2010

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