2020-10-08, 01:51 PM
Create a counter for the player.
Increase that counter by 1 each time a player dies.
Increase that counter by 1 each time a player dies.
Code:
playerkills = 0
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][playerkills] = 0; //Resets the player kills back to 0 after death
PlayerInfo[killerid][playerkills]; //Increases the killer kills by 1
return 1;
}