SA-MP Forums Archive
Anti-Team Kill Bug - 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)
+--- Thread: Anti-Team Kill Bug (/showthread.php?tid=585207)



Anti-Team Kill Bug - anassmaroc - 11.08.2015

Hello Guys I Need Help
My Anti team kill Work But if i was With Grove i a't Kill ballas And same Problem in all teams Just replie to me what i Must Show u and I will Put the Code


Re: Anti-Team Kill Bug - youssefehab500 - 11.08.2015

Explain more, please.


Re: Anti-Team Kill Bug - MichaelJones - 11.08.2015

I can't understant your English dude
But if you mean the anti team kill isn't working and you can kill your team mates then put your anti team kill code and I'll tell you the solution


Re : Re: Anti-Team Kill Bug - anassmaroc - 11.08.2015

Quote:
Originally Posted by MichaelJones
Посмотреть сообщение
I can't understant your English dude
But if you mean the anti team kill isn't working and you can kill your team mates then put your anti team kill code and I'll tell you the solution
exemple: im With Grove Street team the Anti team kill Work But i can't kill other teams


Re: Anti-Team Kill Bug - youssefehab500 - 11.08.2015

Then show us your Anti team kill code.


Re : Anti-Team Kill Bug - anassmaroc - 11.08.2015

This 1?
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
 if(killerid == INVALID_PLAYER_ID)
 {
    SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
	}
	else
	{
    if(gTeam[killerid] != gTeam[playerid])
	{

	  	SendDeathMessage(killerid,playerid,reason);
		SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
		GivePlayerMoney(killerid, 3000);
	}
	}
 return 1;
}



Re: Anti-Team Kill Bug - youssefehab500 - 11.08.2015

Do you have a 'OnPlayerGiveDamage'?


Re : Re: Anti-Team Kill Bug - anassmaroc - 11.08.2015

Quote:
Originally Posted by youssefehab500
Посмотреть сообщение
Do you have a 'OnPlayerGiveDamage'?
No i Don't have


Re: Anti-Team Kill Bug - youssefehab500 - 11.08.2015

What about OnPlayerTakeDamage?


Re: Anti-Team Kill Bug - HBG - 11.08.2015

Do you have SetPlayerTeam anywhere in your script?