24.10.2016, 09:01
https://sampwiki.blast.hk/wiki/SetPlayerTeam
or use OnPlayerWeaponShot() callback and check player team inside it.
Example:
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;
}

