Raised This Month: $ Target: $400
 0% 

Ham_TakeDamage?? help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Empowers
BANNED
Join Date: Feb 2009
Location: Ukraine
Old 04-15-2009 , 14:05   Re: Ham_TakeDamage?? help
Reply With Quote #5

PHP Code:
#include <amxmodx>
#include <zombieplague>
#include <hamsandwich>

new Float:num[33]

public 
plugin_init()
{
    
register_plugin("********""****""Darckbaston")
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")                                                                 
}
//------------------------------
public fw_TakeDamage(victiminflictor_entattackerFloat:fDamage)
{
    if(!
num[attacker])
        return 
HAM_IGNORED;

    
SetHamParamFloat(4fDamage*num[attacker])
    
    return 
HAM_HANDLED;
}
//------------------------------
public menu_point(idkey)
{
    switch (
key)
    {    
        case 
0:
        {
                     switch(
zp_get_user_ammo_packs(id))
                    {
                        case 
1:num[id] = 0.4
                        
case 2:num[id] = 0.6
                        
case 3:num[id] = 0.8
                        
case 4:num[id] = 1.0
                        
case 5:num[id] = 1.3
                        
case 6:num[id] = 2.3
                        
case 7:num[id] = 2.9
                        
case 8:num[id] = 3.2
                        
case 9:num[id] = 3.5
                        
case 10:num[id] = 55555555.0
                    
}
             
          }
      }


Last edited by Empowers; 04-15-2009 at 14:13.
Empowers is offline
Send a message via ICQ to Empowers
 



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 02:24.


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