And the signature:
PHP Code:
get_user_name(id, szName, 32)//Must be 31 or charsmax(szName)
However, idea is not bad. Sometimes owners want to give acces to their admins to such commands but they don't want to give them cvar access,because it can be used to other commands like sv_gravity, which is too much.
He can do a plugin with many these commands, like:
amx_restartround
amx_gravity
amx_airaccelerate
and more others...
Set access ADMIN_CVAR by default and owners will change access to them from cmdaccess.ini .
This will be a good plugin.
But this one you posted is too "tight", there should be something general that not only 1 owner will use.
As it is easy to do you will improve your scripting skills and also give to people nice plugin.