View Single Post
Chaato
Senior Member
Join Date: Jun 2011
Location: C://Windows/Arg/MyHome
Old 12-28-2011 , 04:03   Re: [Help] Aumentar Daņo de He
#5

Prueba con esto, no esta testeado porque estoy estudiando y no tengo tiempo ^^.

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

new const Autor[] = "Chatto."
new const Name[] = "Sumar danio de bomba"
new const Vers[] = " 1.0 "

public plugin_init()
{
    
register_plugin(NameVersAutor)
    
    
RegisterHamHam_TakeDamage"player""FwTakeDamage" )
}

public 
FwTakeDamagevictiminflictorattackerFloat:damagedamage_bits 
{
    if( !
is_user_connectedvictim ) && !is_user_alivevictim ) )  // Si la victima no esta conectada o esta muerta
        
return HAM_IGNORED
    
    if( 
get_user_weaponattacker ) != CSW_HEGRENADE // Si no es igual el arma del attacker a una He grenade
        
return HAM_IGNORED;
    
    
SetHamParamFloat4damage 10.0 // Sumaria el daņo en 10.
    
return HAM_HANDLED;
    


Last edited by Chaato; 12-28-2011 at 04:05.
Chaato is offline
Send a message via MSN to Chaato Send a message via Skype™ to Chaato