Raised This Month: $ Target: $400
 0% 

[ZP]Items Extra : more Hp human and zombie


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AlejandroSk
BANNED
Join Date: Nov 2008
Location: Aqui, en mi casa. Karma:
Old 03-16-2009 , 19:26   Re: [ZP]Items Extra : more Hp human and zombie
Reply With Quote #2

PHP Code:

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>
#include <hamsandwich>
#include <zombieplague>

#define PLUGIN "[ZP] Extra Item: Life"
#define VERSION "0.1"
#define AUTHOR "AlejandroSk"

new bool:g_HasLife[33]
new 
g_itemid1

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_itemid1 zp_register_extra_item("Life [150] "15ZP_TEAM_HUMAN)
    
RegisterHam(Ham_Spawn"player""Fwd_PlayerSpawn_Post"1)
}

public 
zp_extra_item_selected(iditem)
{
    if (
item == g_itemid1)
    {
        
g_HasLife[id] = true
        
new user_health get_user_health(id)
        
fm_set_user_health(iduser_health 150)
    }
}

public 
Fwd_PlayerSpawn_Post(id)
{
    if (
g_HasLife[id])
    {
        
g_HasLife[id] = false
    
}

not tested.
AlejandroSk is offline
Send a message via MSN to AlejandroSk
 



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 16:59.


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