SA-MP Forums Archive
kill list - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: kill list (/showthread.php?tid=188452)



kill list - Rafa - 07.11.2010

guys please some1 give me the code for kill list ...
i make one but dont work fine :/

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
    {
        SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
    }
    return 1;
}
Thanks...


Re: kill list - ExeC - 07.11.2010

Add this to "OnPlayerDeath".

Code:
SendDeathMessage(killerid, playerid, reason);



Re: kill list - Rafa - 07.11.2010

pawn Code:
public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid == INVALID_PLAYER_ID)
    {
        SendDeathMessage(killerid, playerid, reason);
    }
    return 1;
}
like this :S


Re: kill list - Haydz - 07.11.2010

Quote:
Originally Posted by ExeC
View Post
Add this to "OnPlayerDeath".

Code:
SendDeathMessage(killerid, playerid, reason);
Yeh, you only need 1 line nothing special .


Re: kill list - ExeC - 07.11.2010

Quote:
Originally Posted by Hayden_Bruin
View Post
Yeh, you only need 1 line nothing special .
Yeah.


Re: kill list - Haydz - 07.11.2010

search for OnPlayerDeath in your gamemode, if it's not there use
Code:
public OnPlayerDeath(playerid, killerid, reason)
{
       SendDeathMessage(killerid, playerid, reason);
}
And if you do have OnPlayerDeath, just copy and paste this somewhere under OnPlayerDeath.

Code:
SendDeathMessage(killerid, playerid, reason);