Kaip didinti visų ginklų damage
Posted: 2011 Apr 08 15:19
Kaip tai padaryti nedarant ilgų kodų?
Code: Select all
/* Plugin generated by AMXX-Studio */ #include <amxmodx>#include <hamsandwich> #define PLUGIN "Plugin"#define VERSION "1.0"#define AUTHOR "aaarnas" #define INCREASE 50.0#define DMG_BULLET (1<<1)#define DMG_SLASH (1<<2) #define DMG_BLAST (1<<6) public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) RegisterHam(Ham_TakeDamage, "player", "weapon_damage")} public weapon_damage(victim, inflictor, attacker, Float:damage, damage_type) if((DMG_BULLET|DMG_SLASH|DMG_BLAST) & damage_type) SetHamParamFloat(4, damage+INCREASE)