@name Health Resupply Locker
@persist Array:array Distance Result:string Times Damage HoloDist Circle X Y
@trigger 
interval(5000)
timer("check",4000)
## SETTINGS!
#Distance
Distance = 100
#Player's that wont be killed E.G "findExcludePlayer("Rick")".

#findExcludePlayer(owner())

#Result (slay, jail, strip, slap, ragdoll)
Result = ""
#Only if you are using slap!
Times = 100
Damage = 20
#
##SETTINGS
holoCreate(1)
holoModel(1,"models/props_gameplay/resupply_locker.mdl")


if (clk("check")) {
    findInSphere(entity():pos(), Distance)
    Array = findToArray()

    for(I=1,Array:count()) {
        if(Array[I,entity]:isPlayer()) {
            if(Array[I,entity]:isAlive()) {
                if (Result != "whip") {
holoAnim(1,1)
                    #concmd("say get away from me" + Result + " " + Array[I,entity]:name():sub(1,25) + "")
                } else {
                holoAnim(1,0)
                    #concmd("say get away i said" + Result + " " + Array[I,entity]:name():sub(1,5) + " " + Times + "" + Damage + "")
                }
            }
        }
    }
}
