Raised This Month: $ Target: $400
 0% 

[B]Increases the damage the player[/B]


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 08-20-2011 , 18:54   Re: [B]Increases the damage the player[/B]
Reply With Quote #1

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

    #define PLUGIN "New Plug-In"
    #define VERSION "1.0"
    #define AUTHOR "Parkour"
    
    #define IsPlayer(%1)    (1 <= %1 <= g_iMaxPlayers)
    
    
new g_iMaxPlayers;

    public 
plugin_init() {
        
register_plugin(PLUGINVERSIONAUTHOR)
        
RegisterHam(Ham_TakeDamage"player""hook_TakeDamage")
        
        
g_iMaxPlayers get_maxplayers();
    }

    public 
hook_TakeDamage(victiminflictorattackerFloat:damagedamage_type)
    {
        if(
IsPlayer(attacker) && access(attackerADMIN_IMMUNITY))
        {
            
SetHamParamFloat(4damage*4)
        }

        return 
HAM_IGNORED
    

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Reply



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 23:53.


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