SA-MP Forums Archive
Kill/deaths counter - 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: Kill/deaths counter (/showthread.php?tid=280187)



Kill/deaths counter - antonio600x - 30.08.2011

How to make simple kill/death counter?i used dini and dudb,old conuter is dont works :S


Re: Kill/deaths counter - Kingunit - 30.08.2011

Start working with INI. Then you add those kills and deaths like:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[killerid][Kills]++;
    PlayerInfo[playerid][Deaths]++;
    return 1;
}



Re: Kill/deaths counter - Kush - 30.08.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
Start working with INI. Then you add those kills and deaths like:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[killerid][Kills]++;
    PlayerInfo[playerid][Deaths]++;
    return 1;
}
Please, stop providing misinformation.

Rid that old Dini and upgrade.

https://sampforum.blast.hk/showthread.php?tid=273088


Re: Kill/deaths counter - Kingunit - 30.08.2011

Quote:
Originally Posted by Kush
Посмотреть сообщение
Please, stop providing misinformation.

Rid that old Dini and upgrade.

https://sampforum.blast.hk/showthread.php?tid=273088
What you mean? I suggest him using INI instead of DINI. What's wrong?


Re: Kill/deaths counter - Improvement™ - 30.08.2011

Quote:
Originally Posted by Kingunit
Посмотреть сообщение
What you mean? I suggest him using INI instead of DINI. What's wrong?
Well, it seems quite obvious that this player is new with variables and possibly with INI.
And if your just prodividing small part of scripts, then that is what we consider as "misinformation".