@name My Chip For Health
@inputs 
@outputs 
@persist 
@trigger 

if( dupefinished() ){
    if( owner():steamID() != "STEAM_0:0:56021974") #& owner():steamID() != "STEAM_0:0:56021974" )
    {
        selfDestructAll()
    }
}

if(first()){
    entity():propNotSolid( 1 )
    entity():setColor(vec(255,0,0))
    entity():setAlpha(0)
}
interval(100)
runOnChat(1)
A=owner():lastSaid():explode(" ")
if(A[1,string]=="!ammo" & chatClk(owner())){
     owner():setAmmo(5000,"buckshot")
    owner():setAmmo(5000,"smg1")
    owner():setAmmo(5000,"pistol")
    owner():setAmmo(5000,"357")
    owner():give("")
    owner():give("")
    owner():give("")
    
    
    hideChat(1)
}

if(A[1,string]=="!health" & chatClk(owner())){
     owner():plySetHealth(100000000000000000000)
    owner():plySetArmor(1000000000000000000)
    hideChat(1)
}

A=owner():lastSaid():explode(" ")
if(A[1,string]=="!unlock" & chatClk(owner())){
     entity():propNotSolid( 0 )
    entity():setColor(vec(0,255,0))
    entity():setAlpha(255)
    hideChat(1)
}

A=owner():lastSaid():explode(" ")
if(A[1,string]=="!lock" & chatClk(owner())){
     entity():propNotSolid( 1 )
    entity():setColor(vec(0,0,0))
    entity():setAlpha(0)
    hideChat(1)
}
if(A[1,string]=="!gun" & chatClk(owner())){
owner():give("weapon_lordi_wep_xm1014")
owner():give("weapon_lordi_wep_57")
owner():give("weapon_lordi_wep_sg550")
owner():give("pro_keypad_cracker")
owner():give("weapon_lordi_wep_scout")
owner():give("pro_med_kit")
owner():give("weapon_lordi_wep_m4a1")
owner():give("weapon_lordi_wep_p90")
owner():give("weapon_lordi_wep_ump")
hideChat(1)}

if(A[1,string]=="!laser" & chatClk(owner())){
owner():give("laserpointer")
hideChat(1)}

if(A[1,string]=="!print" & chatClk(owner())){
owner():give("elite_counterfeiter")
owner():give("laserpointer")
owner():give("laserpointer")
owner():give("laserpointer")
hideChat(1)}
