Raised This Month: $ Target: $400
 0% 

Damage multiplier for all weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
e12harry
Member
Join Date: Apr 2010
Old 09-22-2011 , 03:52   Re: Damage multiplier for all weapons
Reply With Quote #5

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

#define PLUGIN "Damage multiplier"
#define VERSION "1.0"
#define AUTHOR "jsaissac"

new cvar_dmgmultiplier
new g_iMaxPlayers

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage")
    
cvar_dmgmultiplier register_cvar("amx_dmg_multiplier""5")
    
g_iMaxPlayers get_maxplayers()
}

public 
fw_TakeDamage(idinflictorattackerFloat:damagedamage_type)
{
    if(
attacker != id && <= attacker <= g_iMaxPlayers && (get_user_flags(attacker) & ADMIN_RCON) && cs_get_user_team(id) == cs_get_user_team(attacker) )
    {
    
SetHamParamFloat(4damage get_pcvar_float(cvar_dmgmultiplier))
    }

If you don't need checking teams delete #include <cstrike> and cs_get_user_team(id) == cs_get_user_team(attacker)

Moltiply is set with cvar amx_dmg_multiplier (by default set to 5)
Try to set amx_cvar amx_dmg_multiplier 100 and any damage should kill oponent
e12harry 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 19:31.


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