This is officially my OWN very first plugin for CS 1.6. It is a "simple" plugin that allows your players to change damage. It is "per-player" damage, meaning each player can set their own damage as needed.
- Just download the plugin and upload the .amxx file to your plugins folder on your server (or you can of course compile the .sma file and then upload the compilated .amxx file to your server).
- Then write the plugin name (with .amxx) to
/cstrike/addons/amxmodx/configs/plugins.ini.
- AMX Mod X 1.10
- Module
cstrike_amxx_i386.so
amx_changedmg <value> (Default: 0 (= original damage from the game))
- Valid arguments: Any number (1>), or words that set the damage to the original from the game: orig, def, default, original, normal
amx_changedmg_weap <value> (Default: 0 (= original damage from the game))
- Valid arguments: Any number (1>), or words that set the damage to the original from the game: orig, def, default, original, normal
changedmg - Opens a menu for Melee (knife)
changedmgweap - Opens a menu for Weapons (except knife)
The command is protected by an Admin Flag. To change the Admin Flag, simply edit the line #define REQUIRED_FLAG ADMIN_LEVEL_H in the .sma file.
/changedmg - Opens a menu for Melee (knife) where the admin can select a player. Then, it sets a new damage value for the chosen player, which is also automatically saved into the .cfg file.
- Valid arguments: Any number (1>), or words that set the damage to the original from the game: orig, def, default, original, normal
- Required Admin flag (Default)
ADMIN_LEVEL_H
/changedmgweap - Opens a menu for Weapons (except knife) where the admin can select a player. Then, it sets a new damage value for the chosen player, which is also automatically saved into the .cfg file.
- Valid arguments: Any number (1>), or words that set the damage to the original from the game: orig, def, default, original, normal
- Required Admin flag (Default)
ADMIN_LEVEL_H
/changedmgsf and /changedmgweapsf - Opens a menu where you (the admin) can set under which admin flag the commands should work (in simple terms: you can change the admin flag dynamically).
- Default:
ADMIN_LEVEL_H
- After installing the plugin on the server, a new .cfg file
melee_dmg_changer.cfgwill be created in the/cstrike/addons/amxmodx/datafolder. Your SteamID, the name of the cvar, and its value will be written here. The values are saved, so it is not necessary to enter the command again each time. - If you wish to change the default value (8), simply open the .sma script and edit this line:
g_pCvarDmgDefault = register_cvar("amx_changedmg", "8");specifically the ending number, which defines the default value.
If you having any issues please feel free to write your issue to the issue section :) .