Damage bug
#1

When players hit each other with Sawn Off or Sniper sometimes it doesn't take damage of the player who is hited. But this doesn't happen always.
Any ideas why is this happening?
I don't have OnPlayerTakeDamage and OnPlayerGiveDamage, under my OnPlayerWeaponShot I have this:
Код:
public OnPlayerWeaponShot( playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ )
{
        if(IsPlayerInRangeOfPoint(playerid, 30.0, 1684.5532,1446.9314,10.7706))
		{
		SendClientMessage(playerid,COLOR_RED,"Докато си близо до SPAWN-а, не можеш да стреляш!");
		return 0;
		}
		if(IsPlayerInRangeOfPoint(hitid, 30.0, 1684.5532,1446.9314,10.7706))
		{
		SetPlayerHealth(hitid,100); SetPlayerArmour(hitid,100);
		SendClientMessage(playerid,COLOR_RED,"Не можеш да стреляш по играч, който е близо до SPAWN-а!");
		SendClientMessage(hitid,COLOR_RED,"Докато си близо до SPAWN-а, не можеш да бъдеш убит!");
		return 0;
		}
    return 1;
}
Thanks in advance!
Reply


Messages In This Thread
Damage bug - by martoivanov - 25.07.2018, 21:03
Re: Damage bug - by martoivanov - 26.07.2018, 14:12
Re: Damage bug - by martoivanov - 26.07.2018, 14:15
Re: Damage bug - by JasonRiggs - 26.07.2018, 14:18
Re: Damage bug - by martoivanov - 26.07.2018, 14:20
Re: Damage bug - by JasonRiggs - 26.07.2018, 14:31
Re: Damage bug - by martoivanov - 26.07.2018, 14:39
Re: Damage bug - by Florin48 - 26.07.2018, 14:41
Re: Damage bug - by martoivanov - 26.07.2018, 16:03
Re: Damage bug - by NaS - 26.07.2018, 16:07

Forum Jump:


Users browsing this thread: 3 Guest(s)