How to make teams not attack each other?(No health lose).
#2

https://sampwiki.blast.hk/wiki/SetPlayerTeam

or use OnPlayerWeaponShot() callback and check player team inside it.
Example:
Код:
OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	if(hittype == BULLET_HIT_TYPE_PLAYER)
	{
		if(InSameTeam(playerid, hitid))
			return 0;
	}
	return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)