Anti-Team Kill Bug
#1

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

Explain more, please.
Reply
#3

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
Reply
#4

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
Reply
#5

Then show us your Anti team kill code.
Reply
#6

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;
}
Reply
#7

Do you have a 'OnPlayerGiveDamage'?
Reply
#8

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

What about OnPlayerTakeDamage?
Reply
#10

Do you have SetPlayerTeam anywhere in your script?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)