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

Admin health pack


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 09:59   Admin health pack
Reply With Quote #1

Admin Extra Health Pack


Description :
Remember Schwarzenegger in his prime? Neither do I.
I'll put it simple, admin with immunity flag gets extra health every respawn/round start.

Cvars :
hp_enable : 1/0 (Enables/Disables the plugin) – Default 1
hp_extra : 0-31337 (Changes the amount of extra health) – Default 100

Keep in mind that extra health will be added to your current hp, which is 100 assuming you don’t run any plugins of similar type.

Examples :
Current hp 100 + extra hp 100 = 200
Current hp 100 + extra hp 0 = 100


Updates :
v.1.0 - My first n00bish release.
v.1.1 - Removed ACSII Giraffe
v.1.2 - Added hamsandwich
Attached Files
File Type: sma Get Plugin or Get Source (admin_health_pack.sma - 997 views - 618 Bytes)

Last edited by .OM NOM NOM NOM; 01-05-2010 at 08:37.
.OM NOM NOM NOM is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-03-2010 , 10:08   Re: Admin health pack
Reply With Quote #2

I think this already exists...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 10:15   Re: Admin health pack
Reply With Quote #3

#2
I haven't seen a single plugin that checks hp amount using admin level.


PS
This is the closest thing I could find.

Last edited by .OM NOM NOM NOM; 01-03-2010 at 10:48.
.OM NOM NOM NOM is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 01-03-2010 , 11:59   Re: Admin health pack
Reply With Quote #4

Also this:
http://forums.alliedmods.net/showthread.php?p=702749

It doesn't have admin privileges, but it does the same idea.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-03-2010 , 12:23   Re: Admin health pack
Reply With Quote #5

Also, ResetHUD message is not the correct method to detect spawn.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
.OM NOM NOM NOM
BANNED
Join Date: Dec 2009
Old 01-03-2010 , 13:23   Re: Admin health pack
Reply With Quote #6

This is my first plugin, I've been trying to make something that the world might remember me for.

Meh, my dreams are ruined.

#4
Didn't see this before.

#5
You should update it. Speaking of your code, add admin level.
What should I use instead of ResetHUD?

- - -

Speaking of ResetHUD, everything's going pretty smooth here, no errors seen thus far.
Is there is a way to abuse it? What's wrong with it?

Last edited by .OM NOM NOM NOM; 01-03-2010 at 14:42.
.OM NOM NOM NOM is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 01-03-2010 , 13:25   Re: Admin health pack
Reply With Quote #7

Quote:
Originally Posted by .OM NOM NOM NOM View Post
This is my first plugin, I've been trying to make something that the world might remember me for.

Meh, way to ruin my dreams.

#4
Didn't see this before.

#5
You should update it, add admin level.
What should I use instead of ResetHUD?

- - -

Speaking of ResetHUD, everything's going pretty smooth here, no errors seen thus far.

There is a way to abuse it or, erm?
I just remember you by your avatar...

#4
Then better look...

#5
Well, take a look in other plugins... (by conor)

---

There are no errors... But it's better...
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-03-2010 , 13:27   Re: Admin health pack
Reply With Quote #8

Plugins like this should not exist. It's unfair.

Quote:
Originally Posted by .OM NOM NOM NOM View Post
What should I use instead of ResetHUD?
Use Ham_Spawn.

Quote:
Originally Posted by crazyeffect View Post
There are no errors
Actually, there is.
__________________

Last edited by fysiks; 01-03-2010 at 13:31.
fysiks is offline
DarkGod
SourceMod DarkCrab
Join Date: Jul 2007
Location: Sweden
Old 01-03-2010 , 13:51   Re: Admin health pack
Reply With Quote #9

'fullupdate' - a console command causes ResetHUD to be called, IIRC.
__________________
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 , 14:14   Re: Admin health pack
Reply With Quote #10

#8
There.
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>
 
#define Plugin "Admin extra health pack"
#define Version "1.2"
#define Author "om"
#define ADMIN_LEVEL ADMIN_LEVEL_A
 
new cvarhp
public plugin_init()
 
{
register_plugin(PluginVersionAuthor)
RegisterHam(Ham_Spawn"player""client_spawn"1)
 
cvar register_cvar("hp_enable""1")
hp register_cvar("hp_extra""100")
 
}
public 
client_spawn(id)
{
 
if(
get_pcvar_num(cvar) < 1)
return 
PLUGIN_CONTINUE
 
if(get_user_flags(id) & ADMIN_LEVEL)
set_user_health(idget_user_health(id) + get_pcvar_num(hp))
return 
PLUGIN_CONTINUE
 

Back to #8
Quote:
Originally Posted by fysiks View Post
Plugins like this should not exist. It's unfair.

>
Code:
 
 
Godmode, noclip, extra damage, norecoil, visual esp, speed, rgb glow, bazooka, jetpack I can go on forever.


#9
Is it really that bad? I didn't notice any massive spikes nor any FPS drops
Stable 1000fps.
What exactly does it do by besides spamming console?

Last edited by .OM NOM NOM NOM; 01-04-2010 at 21:04.
.OM NOM NOM NOM 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 21:53.


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