21.02.2010, 15:16
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
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]);
}
}