public OnPlayerDeath(playerid, killerid, reason)
#4

Reason is an integer you were printing a string.
You need to check if the player died by fall/fire/drown etc aka killerid = INVALID_PLAYER_ID.
Otherwise if player died by a weapon just get the weapon name.
Reply


Messages In This Thread
public OnPlayerDeath(playerid, killerid, reason) - by Zeus666 - 22.09.2018, 17:16
Re: public OnPlayerDeath(playerid, killerid, reason) - by solstice_ - 22.09.2018, 17:18
Re: public OnPlayerDeath(playerid, killerid, reason) - by VVWVV - 22.09.2018, 17:23
Re: public OnPlayerDeath(playerid, killerid, reason) - by v1k1nG - 22.09.2018, 19:05
Re: public OnPlayerDeath(playerid, killerid, reason) - by TheToretto - 23.09.2018, 00:21

Forum Jump:


Users browsing this thread: 1 Guest(s)