#1

Heey guys

I have made a tdm with anti teamkill. I made the anti teamkill with a timer:
Код:
public SettingPlayerTeam()
{
  	for(new playerid; playerid < 200; playerid++)
        SetPlayerTeam(playerid, gTeam[playerid]);
	return 1;
}
And i made a FFA but how can i delete the anti teamkill if they are in FFA. Or destroy the teams? Helps SetplayerTeam(playerid,-1);?

pls help

Thanks Admigo
Reply
#2

First of all, anti teamkill should be made under OnPlayerDeath and not with a timer (Actually you're using a loop, not a timer):

pawn Код:
if(gTeam[killerid] == gTeam[playerid)
{
    You're_Stuff
}
To delete it you can do something like this:

pawn Код:
if(gTeam[killerid] == gTeam[playerid] && GetPlayerTeam(playerid) != FFA)//I dont know you're variable for that.
{
    You're_Stuff
}
I hope this is what you mean, since I didn't really understand you're question .
Reply
#3

Lol i am beginner
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)