Calling KillerID under OnPlayerWeaponShot
#1

Hey, I'm trying to make a death system when player gets damage, it will notify the people around and himself who shoot who, here is the code.
Код:
// DEATH SYSTEM //
    if(weaponid == 24 && hittype == BULLET_HIT_TYPE_PLAYER) //HIT PLAYER WITH DEAGLE
    {
    SendNearbyMessage(playerid, 20.0, COLOR_GREY, "(( Death: %s was injured by %s {Desert Eagle}. ))", ReturnName(killerid), ReturnName(playerid));
    }
But I can't use the Killerid, because it's not in the public itself.
Reply


Messages In This Thread
Calling KillerID under OnPlayerWeaponShot - by DemME - 10.11.2015, 04:16
Re: Calling KillerID under OnPlayerWeaponShot - by Ritzy2K - 10.11.2015, 04:26
Re: Calling KillerID under OnPlayerWeaponShot - by DemME - 10.11.2015, 04:33
Re: Calling KillerID under OnPlayerWeaponShot - by Ritzy2K - 10.11.2015, 04:34
Re: Calling KillerID under OnPlayerWeaponShot - by Ritzy2K - 10.11.2015, 04:36
Re: Calling KillerID under OnPlayerWeaponShot - by DemME - 10.11.2015, 04:45
Re: Calling KillerID under OnPlayerWeaponShot - by Ritzy2K - 10.11.2015, 04:46

Forum Jump:


Users browsing this thread: 2 Guest(s)