Jailer script request
Posted: Fri Mar 15, 2013 10:58 pm
Could someone make a 1.40 compatible script for me that says "Inmate #xxx" upon jailing? that would be great...
blankgirl
blankgirl
Code: Select all
function onGuiltyVerdict(%cl, %msg, %type) before onClientMessage
{
%substr = String::findSubStr(%msg, " Was judged GUILTY by ");
%inmate = String::getSubStr(%msg, 0, %substr);
%warden = String::getSubStr(%msg, %substr + 23, 256);
if(%cl == 2048 && $PCFG::Name == %warden && %type == 0)
{
while($Warden::InmateNumber[%i] != %inmate)
%i++;
$Warden::InmateNumber[%i] = %inmate;
say(0, "Arrest #"@ $Warden::arrests++ @", Inmate #"@ %i @", Offence #"@ $Warden::HabitualOffender[%i]++ @": "@ %warden @" don't need no damn reasons!");
export("Warden::*", "temp\\Warden.cs", false);
}
}
exec("temp\\Warden.cs");