• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pawn] ask dm
#2
Create a counter for the player.

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;

}
  Reply


Messages In This Thread
ask dm - by nbx2000 - 2020-10-05, 05:38 AM
RE: ask dm - by Worm - 2020-10-08, 01:51 PM
RE: ask dm - by Expert* - 2020-10-15, 01:54 PM
RE: ask dm - by nbx2000 - 2020-10-16, 06:09 AM
RE: ask dm - by Worm - 2020-10-16, 10:38 AM

Forum Jump: