ID:268384
 
Hi, how would i remove statpanels like if someone was spectating thanks in advanced
mob/var/i=1
mob/Stat()
..()
if(i)
statpanel("Hi")
stat("Hi")
In response to JohnReaper
Could you explain how this works please?
Hi, how would i remove statpanels like if someone was spectating thanks in advanced

Simply don't make the statpanel then :P. Just check to see if they are spectating and if they aren't make the statpanel otherwise don't.
In response to Vash_616
I think he was getting at the point that you can use a variable to determine what sections to execute. Have a variable that you can change to 0 or 1 for whether you want the player to see statpanels or not.
mob
var/see_stats=1
verb/turn_off_stats()
see_stats=0
Stat()
if(see_stats)
//stat stuff here