@name Player stats
@inputs E:entity #for use with target finder
#execute chip evry 10000
interval(10000) #set to 10000 to prevent being spammed
Printmode=2 #how to print (0-off|1-chat|2-hint)
E=E:type #get entity type, if someone is targeted it will set E to "player" else 0
if(E=="player"){DONOTHING=1} #check if input E is being used
else{E=owner()} #if E is not used target owner
#get player stats
Ename=E:name() #get name
Etype=E:type() #get type (normaly not needed)
Esteamid=E:steamID() #get steamid
Ehealth=E:health() #get hp
Earmor=E:armor() #get armor
Epos=E:pos() #get world position x y z
# using this x y z coud cause problems in print mode 1 so
# we must extract x y z and round them up
# extract x y z out of Epos
Ex=Epos:x() #define x
Ey=Epos:y() #define y
Ez=Epos:z() #define z
# round up x y z
EX=ceil(Ex)
EY=ceil(Ey)
EZ=ceil(Ez)
# Put x y z back into a vector (original state)
# can be replaced by changing print("Pos:"+Epos) into 
# print("Pos:"+EX+" "+EY+" "+EZ)
Epos=vec(EX,EY,EZ)
Pwep=E:weapon() #get playerweapon
EPwep=Pwep:type() #Weapon is an entity so get name of that entity
#print it all on screen useing mode you selected
if(Printmode==1){ print("Name:"+Ename) print("Type:"+Etype) print("SteamID:"+Esteamid) print("HP:"+Ehealth) print("Armor:"+Earmor) print("Pos:"+Epos) print("Weapon:"+EPwep)
}
if(Printmode==2){ hint("Name:"+Ename,10) hint("Type:"+Etype,10) hint("SteamID:"+Esteamid,10) hint("HP:"+Ehealth,10) hint("Armor:"+Earmor,10) hint("Pos:"+Epos,10) hint("Weapon:"+EPwep,10)
}
