Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <hamsandwich>
- #define PLUGIN "Instant AWP & Scout"
- #define VERSION "1.0"
- #define AUTHOR "Gamer"
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- RegisterHam(Ham_TakeDamage, "player", "TakeDamage");
- }
- public TakeDamage(victim, weapon, attacker, Float:damage, damagebits)
- {
- if(!is_user_alive(victim) || !is_user_connected(victim) || !is_user_connected(attacker) || get_user_team(victim) == get_user_team(attacker))
- return HAM_IGNORED;
- new health = get_user_health(victim);
- if(weapon == CSW_AWP || weapon == CSW_SCOUT)
- damage=float(health);
- return HAM_IGNORED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement