Anyone help me pls :P
#2

You actually don't need this. When someone is shooting at you and then you set your health to 0.0 it won't be not be considered as suicide. The killerid will be the the same person who was shooting you.

You can check it by yourself with debug code:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID) SendClientMessage(playerid, -1, "Death reason: suicide/died");
    else SendClientMessage(playerid, -1, "You're killed");
    return 1;
}
Reply


Messages In This Thread
Anyone help me pls :P - by Rix70 - 10.08.2016, 17:45
Re: Anyone help me pls :P - by Darkwood17 - 10.08.2016, 17:51
Re: Anyone help me pls :P - by Rix70 - 10.08.2016, 18:08

Forum Jump:


Users browsing this thread: 1 Guest(s)