Now you are checking the attacker and the victim twice.
Just use this, if you want me to make an attachment of it, message me
Code:
// Uncomment this if you're GOING to use Counterstrike
//#define USE_CSTRIKE
#include <amxmodx>
#if defined USE_CSTRIKE
#include <cstrike>
#endif
#define PLUGIN "Zero Deaths"
#define VERSION "1.2"
#define AUTHOR "v3x"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR);
register_event("DeathMsg", "CheckDeaths", "a");
}
public CheckDeaths()
{
new aPlayers[32], iNum, i
get_players(aPlayers, iNum)
for(i = 0; i <= iNum; i++)
{
//I removed the following line to spare quite some cpu cycles, since pawn doesn't have good memory optimation
//new id = aPlayers[i];
if(!is_user_connected(aPlayers[i]))
continue;
#if defined USE_CSTRIKE
cs_set_user_deaths(aPlayers[i], 0);
#else
set_user_deaths(aPlayers[i], 0);
#endif
}
}
__________________