AntiTeamKill error - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: AntiTeamKill error (
/showthread.php?tid=215597)
AntiTeamKill error -
buzifej - 23.01.2011
static gTeam[MAX_PLAYERS];
public AntiTeamKill(playerid)
{
if (IsPlayerConnected(playerid) && gPlayerImmunity[playerid])
SetPlayerTeam(playerid, gTeam[playerid]);
return 1;
}
stock ToggleFriendlyFire(playerid, bool:toggle) { gPlayerImmunity[playerid] = !toggle;
}
How to disable it?
Re: AntiTeamKill error -
Janek17 - 23.01.2011
//
Quote:
Originally Posted by buzifej
//static gTeam[MAX_PLAYERS];
//public AntiTeamKill(playerid)
//{
//if (IsPlayerConnected(playerid) && gPlayerImmunity[playerid])
//SetPlayerTeam(playerid, gTeam[playerid]);
//return 1;
//}
//stock ToggleFriendlyFire(playerid, bool:toggle) { gPlayerImmunity[playerid] = !toggle;
// }
How to disable it?
|
If you mean that?
Re: AntiTeamKill error -
buzifej - 23.01.2011
How to disable anti team kill?
Re: AntiTeamKill error -
-Rebel Son- - 23.01.2011
Buz, if you want to enable/disable that function, put at the top of your script
Then on your function, put
Код:
#if defined TEAMKILL
at the top of your function.
At the buttom, put