GetPlayerGiveHits, detect - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: GetPlayerGiveHits, detect (
/showthread.php?tid=617393)
GetPlayerGiveHits, detect -
FinStar - 20.09.2016
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
Код:
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;
}
Specifically, I think the function GetPlayerGiveHits to do something.