Raised This Month: $ Target: $400
 0% 

(native "set_user_health") error


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
OM NOM NOM NOM
Member
Join Date: Jan 2010
Old 02-05-2010 , 04:58   Re: (native "set_user_health") error
Reply With Quote #5

PHP Code:
#include < amxmodx >
#include < fun >
#include < hamsandwich >
#define ADMINS_ONLY
#define ADMIN_LEVEL ADMIN_LEVEL_A
new const Version[ ] = "1.3"
new cvarhp
public plugin_init( )
{
register_plugin("Premium health pack"Version"om");
RegisterHamHam_Spawn"player""HamPlayerSpawnPost");
 
cvar register_cvar"hp_enable""1" );
hp register_cvar"hp_extra""25" );
}
 
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;

OM NOM NOM NOM is offline
 



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 07:19.


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