Seriously, gamefandan, you're very new to scripting, and are in no way fit to help others.
I commented in a few areas, and used proper formatting. There are a few ways you could cut down on the size of the code, but people need to take first learning coding logic one step at a time.
function servercmdStun(%client, %user)
{
if(%client.isSuperAdmin == false || %user !$= "") //"=" is used for setting variables, such as "%variable= 5", you need to use "==", because that is used for comparing two variables.
{
return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
%target.shakeCamera(); //I don't know if this is a real function, and I can't get on to test if it is. You may also not have everything you need to make it work.
messageClient(%client, '', '\c6You've Stunned %1', %targetC.name);
}
}
Though your better then someone who gets on the irc, asks how to use functions, then after asking what they do know several times they end up telling you they know nothing at all about coding.