Er...
Dont listen to V-Man unless that is what you were wanting.
I have a couple special keybinds for something that you were describing.
alias sa [old_name = $curname, setadmin 1 $adpass; sleep 100 [name Admin]] //super admin
alias nu [setadmin 0; name $old_name] //normal user
bind "K" [sa]
bind "L" [nu]
To install, you would put the first two lines into your autoexec.cfg, and if you wanted them binded, add the second two. Replace $adpass with your admin password, and replace Admin with the name you want (with no spaces).
What this will do is when you use this script to claim admin, it will replace your current name with Admin, and when you use this script to un-claim admin, it will go back to your previous name.
The keybinds are:
K - Claims admin
L - Unclaims admin
If you want a menu item doing this, then add this into your menus_multiplayer.cfg.
Right under the line starting with "menuitemtextinput "Nickname: "
and right under the line starting with "newmenu "In-game admin""
add this code.
menuitem "Toggle admin" [if (= (currole) 1) [nu] [sa]]
Now back to your question, I gave you something that I thought superior. However, if you just want changing names quickly (and only if admin), add this to your autoexec.cfg.
alias adminname [ if (= (currole) 1) [ name "Administrator" ] [ name INSERTNAMEHERE ] ]
Now, I have little idea of what you wanted that script to do, however it acts like a name toggle. So type it if you are a admin, you will change your name to Administrator, type it when you are in normal player, you will change your name to INSERTNAMEHERE.
Go to #cubescript on irc.gamesurge.net to get more help :)