SA-MP Forums Archive
How to see when player kill someone or get killed - 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: How to see when player kill someone or get killed (/showthread.php?tid=461782)



How to see when player kill someone or get killed - bustern - 03.09.2013

I want to make When player get killed to show which what gun was killed and when he kill to get who killed and wich what gun that is on right


Re: How to see when player kill someone or get killed - Tomer!.$ - 03.09.2013

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    return 
1;




Re: How to see when player kill someone or get killed - Cypress - 03.09.2013

I don't understand the whole point here but you can check with which weapon player was killed with, by getting the reason of OnPlayerDeath

https://sampwiki.blast.hk/wiki/Weapons

EDIT: The above code dude sent makes sense, do better writing next time.


Re: How to see when player kill someone or get killed - bustern - 03.09.2013

i want to make that:



Re: How to see when player kill someone or get killed - Tomer!.$ - 03.09.2013

I already gave you the function.
PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
SendDeathMessage(killeridplayeridreason);
    return 
1;