How to see when player kill someone or get killed
#1

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
Reply
#2

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

Reply
#3

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

i want to make that:
Reply
#5

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

Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)