Hi, i'm trying to make a damage multiplier for all weapons, i can't make it work.
I have this:
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <hamsandwich>
#include <cstrike>
#include <amxmisc>
#define PLUGIN "Damage multiplier"
#define VERSION "1.0"
#define AUTHOR "jsaissac"
new cvar_dmgmultiplier
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("amx_dmgmultiplier","dmgmultiplier")
cvar_dmgmultiplier = register_cvar("amx_dmg_multiplier", "5")
// Add your code here...
}
public dmgmultiplier(id,Float:damage)
{
if(!(get_user_flags(id) & ADMIN_RCON))
{
SetHamParamFloat(4, damage * get_pcvar_float( cvar_dmgmultiplier ) )
}
}
The code is bad, and i don't know how i define "damage" (the underlined).
I want to make this plugin only for rcon admins.
Sorry for my bad english, thanks, jsaissac.