25.07.2018, 21:03
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:
Thanks in advance!
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; }