29.12.2017, 10:03
Quote:
So, what can I do for health of damagedid to not decrease when the playerid shoot?
|
Edit: You can actually return 0 in OnPlayerWeaponShot to make the bullet useless
Код:
OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(hittype = BULLET_HIT_TYPE_PLAYER) { if(PlayerInfo[playerid][pGroup] == PlayerInfo[playerid][pGroup] && WarActive[PlayerInfo[playerid][pMember]] > 0) return 0; } return 1; }
Edit2: Jake, that's a shitty idea. if a player has 1 HP, he will die.
Try what I said, I'm fairly certain it would work.