AntiTeamKill error
#1

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?
Reply
#2

//
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?
Reply
#3

How to disable anti team kill?
Reply
#4

Buz, if you want to enable/disable that function, put at the top of your script
Код:
#define TEAMKILL
Then on your function, put
Код:
#if defined TEAMKILL
at the top of your function.
At the buttom, put
Код:
#endif TEAMKILL
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)