SA-MP Forums Archive
Hit Points - 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: Hit Points (/showthread.php?tid=282509)



Hit Points - spd_sahil - 11.09.2011

Guyss.. i wanna make a code in which when i hit someone with some gun.. the amount of damage im doing should come on their head..

Also i wanna send a client message to the person who dies after the whole battle about how he died and what was his killer's Health


Re: Hit Points - Retardedwolf - 11.09.2011

This isn't a script request section, you can find the thread here.


Re: Hit Points - spd_sahil - 12.09.2011

im not asking for someone to make the code for me and give it to me.. i just want little help in the functions. im not aware of them.. and some little logic


Re: Hit Points - Allan Kardec - 12.09.2011

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    new aKiller[MAX_PLAYER_NAME];
    GetPlayerName(killerid, aKiller, sizeof(aKiller));
    SendClientMessage(playerid, "[~] [ID: %i]%s killed him, with a gun » ID:[%d]", killerid, aKiller,  GetPlayerWeapon(killerid));
    return 1;
}



Re: Hit Points - WoodPecker - 12.09.2011

"the amount of damage im doing should come on their head.." You mean head=more damage, arms=normal damage, body=same damage, or you mean some TextDraws when you get damage from someone?[on his head the textdraw]