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



SendDeathMeesage - xRadical3 - 09.09.2018


When I use kill command, I go to the list of deaths.
How do I fix it?


Re: SendDeathMeesage - UFF - 09.09.2018

Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
	return true;
}



Re: SendDeathMeesage - xRadical3 - 09.09.2018

Quote:
Originally Posted by UFF
View Post
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
	SendDeathMessage(killerid, playerid, reason);
	return true;
}

I do not want to send a splat or suicide death message.


Re: SendDeathMeesage - v1k1nG - 09.09.2018

Hello. Splat and "accidental" deaths are linked to INVALID_PLAYER_ID so
PHP Code:
public OnPlayerDeath(playeridkilleridreason){
    if(
killerid != INVALID_PLAYER_ID)SendDeathMessage(killeridplayeridreason);
    return 
1;




Re: SendDeathMeesage - Shinja - 09.09.2018

PHP Code:
public OnPlayerDeath(playeridkilleridreason)
{
    if(
killerid != INVALID_PLAYER_ID)
    {
        
SendDeathMessage(killeridplayeridreason);
    }
    return 
1;




Re: SendDeathMeesage - xRadical3 - 09.09.2018

Quote:
Originally Posted by v1k1nG
View Post
Hello. Splat and "accidental" deaths are linked to INVALID_PLAYER_ID so
PHP Code:
public OnPlayerDeath(playeridkilleridreason){
    if(
killerid != INVALID_PLAYER_ID)SendDeathMessage(killeridplayeridreason);
    return 
1;

thank you