Best way to get a players text
#8

gTeam is just a variable (often used to store the teamid from each player)
Just check your script if it use a team variable or the native functions Set/GetPlayerTeam (just dont forget with that SetTeamCount)
With the native functions the friendly fire is disabled (so the team members cant kill themself)

And like Rizard said it would be

pawn Код:
for(new i; i < MAX_PLAYERS; i++) //playerids start at 0
{
  if(/*Teamvariable/GetPlayerTeam*/ == /*TEAMID*/) //or vice versa
  {
    SendClientMessage(i, 0x222200FF, cmdtext[7]);
  }
}
Reply


Messages In This Thread
Best way to get a players text - by Torran - 20.02.2010, 17:27
Re: Best way to get a players text - by BlackFoX - 20.02.2010, 17:55
Re: Best way to get a players text - by Torran - 20.02.2010, 17:58
Re: Best way to get a players text - by BlackFoX - 20.02.2010, 18:04
Re: Best way to get a players text - by Torran - 20.02.2010, 18:09
Re: Best way to get a players text - by Torran - 21.02.2010, 14:42
Re: Best way to get a players text - by Rizard - 21.02.2010, 14:57
Re: Best way to get a players text - by Nero_3D - 21.02.2010, 15:16
Re: Best way to get a players text - by Torran - 21.02.2010, 15:27
Re: Best way to get a players text - by Rzzr - 21.02.2010, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)