20.09.2016, 16:14
Hi, I was wondering if you know how to recognize the number of times a player fired into the player from the gun?
I want to create a condition in OnPlayerWeaponShot, I think something like GetPlayerGiveHits
Specifically, I think the function GetPlayerGiveHits to do something.
I want to create a condition in OnPlayerWeaponShot, I think something like GetPlayerGiveHits
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ) { if(GetPlayerGiveHits(hitid) == 2)) { SendClientMessage(hitid, -1, "You've just been shot twice!"); } return 1; }