OnPlayerGiveDamage
#6

Quote:
Originally Posted by None1337
Посмотреть сообщение
So, what can I do for health of damagedid to not decrease when the playerid shoot?
Put them in the same team? That's the only flawless way I know so far.

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;
}
Sorry for lousy braces xD It's hard at tablet

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.
Reply


Messages In This Thread
OnPlayerGiveDamage - by None1337 - 28.12.2017, 23:45
Re: OnPlayerGiveDamage - by Kane - 28.12.2017, 23:47
Re: OnPlayerGiveDamage - by None1337 - 29.12.2017, 00:16
Re: OnPlayerGiveDamage - by RedFusion - 29.12.2017, 00:52
Re: OnPlayerGiveDamage - by None1337 - 29.12.2017, 09:15
Re: OnPlayerGiveDamage - by Ritzy2K - 29.12.2017, 10:03
Re: OnPlayerGiveDamage - by JaKe Elite - 29.12.2017, 10:09
Re: OnPlayerGiveDamage - by RedFusion - 29.12.2017, 14:03

Forum Jump:


Users browsing this thread: 2 Guest(s)