I'm writing my 1st script, although I've read the tutorials I never really learn anything from them other than how to replicate what the tutorial teaches you, and as I found with Photoshop this doesn't help me learn new stuff.
So, question 1:
How do I make it so only admins can use a command?
Question 2:
How to I script a 'DoDamage' that does damage to a chosen player? E.g. /slap <player ID>