@name Almost-Admin Slay
@persist Ent:entity Trigger
runOnChat(1)
if (chatClk(owner()) & owner():lastSaid():sub(1,1)=="-") {
    hideChat(1)
    CMD=owner():lastSaid():sub(2):explode(" ")
    if (CMD[1,string]=="slay") {
        local Players=players()
        local Target=noentity()
        for (I=1, Players:count()) {
            if (Players[I,entity]:name():lower():matchFirst(CMD[2,string]:lower())) {
                Target=Players[I,entity]
                #blow that asshole up
                Ent=propSpawn("models/props_c17/oildrum001_explosive.mdl",Target:pos(),1)
                timer("blow",100)
                for (I=1, 3) {
                    propSpawn("models/props_c17/oildrum001_explosive.mdl",Target:pos(),1)
                }
            }
        }
    }
}
if (clk("blow")) {
    Ent:propBreak()
    Target=noentity()
}
interval(1000)
if (owner():keyUse() & owner():isAlive() & !Target) {
    if (Trigger) {
                Target=owner()
                #blow that asshole up
                Ent=propSpawn("models/props_c17/oildrum001_explosive.mdl",Target:pos(),1)
                timer("blow",100)
                for (I=1, 3) {
                    propSpawn("models/props_c17/oildrum001_explosive.mdl",Target:pos(),1)
                }
            } else {
                Trigger=1
                print("Detonating...")
            }
        } else {Trigger=0}
