01.10.2011, 00:13
Depends on your setup, are you using something already made or starting from scratch?
I'm converting my old stuff to use ZCMD and sscanf2 at the moment. ZCMD let's you write pretty simple functions which act on someone typing /whatever in-game, so you could have a /setadminlevel [level] using a combination of ZCMD and sscanf2.
But the question is, do you already store and track who is admin or not? (some people have a user enum that tracks all per user data including if they are admin and what level, are they banned, their level, blah blah). Because if you do, I can show you a simple bit of script using those 2 products above to do just that.
I'm converting my old stuff to use ZCMD and sscanf2 at the moment. ZCMD let's you write pretty simple functions which act on someone typing /whatever in-game, so you could have a /setadminlevel [level] using a combination of ZCMD and sscanf2.
But the question is, do you already store and track who is admin or not? (some people have a user enum that tracks all per user data including if they are admin and what level, are they banned, their level, blah blah). Because if you do, I can show you a simple bit of script using those 2 products above to do just that.