Thread: Zero Deaths 1.1
View Single Post
MaximusBrood
Veteran Member
Join Date: Sep 2005
Location: The Netherlands
Old 01-21-2006 , 13:17  
Reply With Quote #10

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     } }
__________________
Released six formerly private plugins. Not active here since ages.
MaximusBrood is offline