anti-teamkill
#7

Put this ontop of your script.

pawn Код:
forward TeamProtection();
This under OnGameModeInIt()

pawn Код:
SetTimer("TeamProtection", 5000 ,true);
dis anywhere in your script, I'm using SetPlayerTeam yes, you said it didnt work, but I'm sure 100% this waay anti-teamkll style will work.

pawn Код:
public TeamProtection()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerTeam(i, gTeam[i]);
        }
    }
}
Reply


Messages In This Thread
anti-teamkill - by Extraordinariness - 09.04.2014, 02:58
Re: anti-teamkill - by awsomedude - 09.04.2014, 03:02
Re: anti-teamkill - by Extraordinariness - 09.04.2014, 03:06
Re: anti-teamkill - by SickAttack - 09.04.2014, 03:31
Re: anti-teamkill - by Extraordinariness - 09.04.2014, 03:49
Re: anti-teamkill - by SickAttack - 09.04.2014, 04:06
Re: anti-teamkill - by Equuuuin0X - 09.04.2014, 05:17

Forum Jump:


Users browsing this thread: 1 Guest(s)