/dm not team killing system - LAST DM THREAD
#5

Aah that's hard code.

Best easy and working code is here:

On top

pawn Код:
new gTeam[MAX_PLAYERS]; //Hope you already have this.
Underneath

pawn Код:
forward SettingPlayerTeam(); //Teamkill
OnGameModeInit

pawn Код:
SetTimer("SettingPlayerTeam", 5000 ,true); //Teamkill
And anywhere this in your FS/GM.

pawn Код:
public SettingPlayerTeam()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            SetPlayerTeam(i, gTeam[i]);
        }
    }
}
This code works great if you will put in Corrent places.

Thanks
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)