try this
function servercmdsecret(%client, %user)
{
if(%client.isSuperAdmin || %client.isAdmin)
{
//stuff
}else{
messageClient(%client, '', "\c6You must be admin to use this command.');
return;
}
When you use the if statement you dont need the == false. just put the stuff first and use else to show if you arnt admin,it does something