////////////////////////
//Purpose: Screenshot on kill with any weapon
//Author: greyHound
//Date: 2004/12/11
//Insiprated: by Nio
//Requirements: Event Handling Pack
//installation: put in any executed *.cs file or create ur own and exec it.
/////////////////////////
//setting
//just add the desired weapons to the $ssscript::wpnarray variable.
//Vehicle,Chaingun,Plasma,Explosives,Laser Rifle,Mortar,Blaster,ELF Gun
$ssscript::wpnarray = "Disc Launcher Laser Rifle";
//key
$sss::tooglekey = "j";
//default "on" change to false to have it off per default
$sss::mode = "true";
//delay until the screenshot is done. 0.3 is a quite good value.
$sss::delay = 0.3;
/////////////////////////
//no need to change anything below
Event::Attach(EventKillTrak, SSScript::Parse);
bindCommand(keyboard0, make, $sss::tooglekey, TO, "SSScript::toggle();");
bindCommand(keyboard0, break, $sss::tooglekey, TO, "");
function SSScript::Parse(%serverid, %victim, %killer, %wpn)
{
if($sss::mode)
if(%killer == getManagerId())
if(String::findSubStr($ssscript::wpnarray, %wpn) != -1 )
schedule("screenShot(MainWindow);", $sss::delay);
}
function SSScript::toggle()
{
$sss::mode = !$sss::mode;
if($sss::mode)
remotebp(2048, "KillScreenshot enabled", 3);
else
remotebp(2048, "KillScreenshot disabled", 3);
}