Raised This Month: $ Target: $400
 0% 

Damage multiplier for all weapons


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jsaissac
Junior Member
Join Date: Sep 2011
Old 09-22-2011 , 02:40   Damage multiplier for all weapons
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
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(4damage get_pcvar_floatcvar_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.
jsaissac 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:32.


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