AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Zero Deaths 1.1 (https://forums.alliedmods.net/showthread.php?t=15712)

v3x 07-26-2005 08:22

Zero Deaths 1.1
 
1 Attachment(s)
Zero Deaths v1.1 - by v3x

Description:
This plugin will make it so you will have 0 deaths throughout the whole game.

IF USING COUNTERSTRIKE:
Take the //'s away from the following line:
Code:
//#define USE_CSTRIKE

A very simple plugin, but a must for stat whores! :D

lanvo 07-26-2005 08:26

so does it give you infinite health or just when you hit Tab for stats? if you can make the death change, can you also make the kill to be like 900 :D

v3x 07-26-2005 08:29

It updates your deaths # on the scoreboard to 0 every time you die ( and every 4 seconds ).

poopsicle567 01-16-2006 12:57

command?
 
what is the command? is every one on the server have 0 deaths when u get on? if so u should make it so only 1 or 2 ppl can have 0 deaths. also some ppl would probably think ur hacking and start a big problem on the server. maybe u should make it so when some1 is granted 0 deaths a message will say <NAME> HAS BEEN GRANTED 0 DEATHS so ppl dont think they're hacking. other than that....NICE plugin. :P

pixel3 01-16-2006 13:56

Re: command?
 
Quote:

Originally Posted by poopsicle567
what is the command? is every one on the server have 0 deaths when u get on? if so u should make it so only 1 or 2 ppl can have 0 deaths. also some ppl would probably think ur hacking and start a big problem on the server. maybe u should make it so when some1 is granted 0 deaths a message will say <NAME> HAS BEEN GRANTED 0 DEATHS so ppl dont think they're hacking. other than that....NICE plugin. :P

I think this is not how the plugin was sopposed to work.... great job btw..

poopsicle567 01-16-2006 14:12

Re: command?
 
Quote:

I think this is not how the plugin was sopposed to work.... great job btw..
then how is it sopposed work? lets ask v3x he would probably know cause he made the plugin. also v3x could u post the code? i kinda wanna see it before downloading :D . thanks!

Dirty DuMont 01-16-2006 14:33

Poopsicle567...he posted the code. The code is the .sma file. :shock: Anyway, v3x I attempted to make something like this before but it didn't work due to TS stored deaths in a private variable. I was wondering if you had tested this for ALL mods?

MaximusBrood 01-16-2006 16:21

1 Attachment(s)
Good plugin, but what is the point to check deaths every 2 seconds, all deaths are registred when someone dies.

If there is any mistake, check only once at round end :wink:

v3x 01-17-2006 06:33

Quote:

Originally Posted by Ðirty Ð
Poopsicle567...he posted the code. The code is the .sma file. :shock: Anyway, v3x I attempted to make something like this before but it didn't work due to TS stored deaths in a private variable. I was wondering if you had tested this for ALL mods?

Only tested it in CS. I don't know what mods support set_user_deaths, I'm thinking most of them. Since CS has it's own module I added a define at the top for it.

MaximusBrood: I'm going to update it so it executes CheckDeaths in the function hooked to DeathMsg.

MaximusBrood 01-21-2006 13:17

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 :wink:

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     } }


All times are GMT -4. The time now is 19:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.