Raised This Month: $ Target: $400
 0% 

[Ayuda] Cambiar daņo a un arma...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
MexPower
Veteran Member
Join Date: Nov 2012
Old 01-28-2013 , 20:04   [Ayuda] Cambiar daņo a un arma...
#1

Hola gente de AM, Solo les tenia una pregunta, este tutorial de starsailor para cambiar el daņo de las armas, me intereso y como que le entendi pero lo que no entiendo es donde definio o donde se define a que arma le multiplico el daņo por 2
PHP Code:
#include <amxmodx>
#include <hamsandwich> //indispensable para que funcione xD

public plugin_init()
{
    
register_plugin("Mini tuto","1.0","Maartin! (Starsailor)")

//  registramos el hamtakedamage    ENTidad      Handler     Post
    
RegisterHam(Ham_TakeDamage"player""FwdTakeDamage"0)
    
}

//              id  victima     arma  attacker id  daņo      tipo de daņo              
public FwdTakeDamage(victiminflictorattackerFloat:damagedamage_bits)
{            
//parametro 1         2         3             4             5
    
        
SetHamParamFloat(4,(damage*2.0)) 
        return 
HAM_HANDLED  
    
    
// ya el nombre del comando te lo dice
    // set param float
    // PARAMETRO 4 (daņo)
    // FLOAT porqe es un numero decimal
    // 2.0 porqe multiplicamos el daņo que hace por 2
    

Si me podrian ayudar en eso porfa, me harian un gran favor
MexPower 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 15:01.


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