/* AMXMOD script.
*
* (c) Copyright 2000-2002, RAV
* This file is provided as is (no warranties).
*
* Takes screenshot of kill if damage is over set level.
* 
* Changelog
*
* Version 1.1 - Initial Build
* Version 2.2 - Added higher damage Sound based event.
*/

#include <amxmod> /* read this file to learn the functions */

public high_damage() 
{
	new victim = read_data(0);
	new damage = read_data(2);
/* Damage level set here */
	if (damage > 90) {
	new weapon;
	new name[32]
	new attacker = get_user_attacker(victim,weapon);
	get_user_name(victim,name,32)
	client_cmd(attacker,"wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;snapshot")   
	client_print(attacker,print_chat,"Your last hit caused %i damage, screenshot taken",damage)
	return PLUGIN_HANDLED
	}
	if (damage > 150) {
	new weapon;
	new name[32]
	new attacker = get_user_attacker(victim,weapon);
	get_user_name(victim,name,32)
	client_cmd(attacker,"wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;wait;snapshot")   
	client_print(attacker,print_chat,"GOD LIKE^nYour last hit caused %i damage, screenshot taken",damage)
	client_cmd(attacker,"spk misc/godlike")
	return PLUGIN_HANDLED			
	}	
	return PLUGIN_CONTINUE

}

public plugin_init()
{
	register_plugin("ScreenShot","1.2","Rav")
	register_event("Damage", "high_damage", "b", "2>75");
	register_cvar("RVS_ScreenShot", "1.2",FCVAR_SERVER) 
	
	return PLUGIN_CONTINUE
}




