SendDeathMeesage
#1


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

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

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

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;

Reply
#5

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

Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)