Raised This Month: $51 Target: $400
 12% 

Admin health pack


Post New Thread Reply   
 
Thread Tools Display Modes
lazarev
Veteran Member
Join Date: Sep 2008
Old 01-03-2010 , 14:29   Re: Admin health pack
Reply With Quote #11

You should add alive check
Here is optimized code
PHP Code:
#include < amxmodx >
#include < fun >
#include < hamsandwich >

#define ADMINS_ONLY
#define ADMIN_LEVEL ADMIN_KICK

new const Version[ ] = "1.2"

new cvarhp

public plugin_init( )
{
    
register_plugin("Admin extra health pack"Version"om");
    
RegisterHamHam_Spawn"player""HamPlayerSpawnPost");
    
    
cvar register_cvar"hp_enable""1" );
    
hp register_cvar"hp_extra""100" );
}
    
public 
HamPlayerSpawnPostid )
{
    if( 
get_pcvar_numcvar ) ) 
    {
        if( 
is_user_aliveid ) ) {
            
#if defined ADMINS_ONLY
            
if ( !(get_user_flagsid ) & ADMIN_LEVEL ) )
                return 
PLUGIN_HANDLED;
            
#endif 
            
set_user_healthidget_user_healthid ) + get_pcvar_numhp ) );
        }
    }
    return 
PLUGIN_CONTINUE;


Last edited by lazarev; 01-03-2010 at 14:34.
lazarev is offline
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 14:38   Re: Admin health pack
Reply With Quote #12

#11
What good would it do?
You can't go to sleep alive and wake up dead.
.OM NOM NOM NOM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-03-2010 , 15:09   Re: Admin health pack
Reply With Quote #13

Quote:
Originally Posted by .OM NOM NOM NOM View Post
Back to #8
Code:
 
 
Godmode, noclip, extra damage, norecoil, visual esp, speed, rgb glow, bazooka, jetpack I can go on forever.
I never said they don't exist. People who program/use things like this for an unfair advantage need to grow up or get better at the game.
__________________
fysiks is offline
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 15:29   Re: Admin health pack
Reply With Quote #14

#13
Quote:
Originally Posted by fysiks View Post
I never said they don't exist. People who program/use things like this for an unfair advantage need to grow up or get better at the game.
Oh.
How long have you been playing CS?
.OM NOM NOM NOM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-03-2010 , 15:45   Re: Admin health pack
Reply With Quote #15

Quote:
Originally Posted by .OM NOM NOM NOM View Post
#13


Oh.
How long have you been playing CS?
lol, I don't play CS.
__________________
fysiks is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 15:49   Re: Admin health pack
Reply With Quote #16

Quote:
Originally Posted by fysiks View Post
lol, I don't play CS.
I have a screenshot that says the opposite!
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 16:00   Re: Admin health pack
Reply With Quote #17

#16
They don't know quite yet.

fysiks > Warden

Last edited by .OM NOM NOM NOM; 01-03-2010 at 16:03.
.OM NOM NOM NOM is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-03-2010 , 16:09   Re: Admin health pack
Reply With Quote #18

Quote:
Originally Posted by DarkGod View Post
I have a screenshot that says the opposite!
And that screenshot shows I wasn't playing [well]. My comment was a generalization just like when I say I don't drink pop (it's extremely rare).
__________________
fysiks is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 16:10   Re: Admin health pack
Reply With Quote #19

Quote:
Originally Posted by fysiks View Post
And that screenshot shows I wasn't playing [well]. My comment was a generalization just like when I say I don't drink pop (it's extremely rare).
You probably didn't play very well because you refused to use anything but your knife.
Sorry for derailing the thread, this will be the last off-topic post by me on this thread.
__________________
DarkGod is offline
Send a message via AIM to DarkGod Send a message via MSN to DarkGod
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 02-01-2010 , 01:19   Re: Admin health pack
Reply With Quote #20

Plugin is redundant and author is banned.

Unapproved.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:10.


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