GetPlayerGiveHits, detect
#1

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


Forum Jump:


Users browsing this thread: 1 Guest(s)