Raised This Month: $ Target: $400
 0% 

Something wrong with set_user_health?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
zi443r
Senior Member
Join Date: Mar 2009
Location: Braila,Romania
Old 07-12-2013 , 23:43   Re: Something wrong with set_user_health?
Reply With Quote #5

this is working very well.
Quote:
Originally Posted by ~Ice*shOt View Post
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
register_cvar("health_enable""1")

    
RegisterHam(Ham_Spawn"player""Fwd_Spawn"1)
}

public 
Fwd_Spawn(id)
{
    if (!
is_user_alive(id))
        return

    if (
get_cvar_num("health_enable") == 1)
    {
        
set_user_health(id,  120)
    }

Simple, else if and putinserver is needn't here.
__________________
zi443r 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 06:27.


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