Here is a fix only SuperGM can use !commands its a simple code but ya..
http://forum.ragezone.com/attachment...-s-players.zip
Here is a fix only SuperGM can use !commands its a simple code but ya..
http://forum.ragezone.com/attachment...-s-players.zip
Oh this is nice ;)
I'll check it out when I'm done showering.
Thanks for this in advance.
...Doesn't work.
It works fine for me! Thanks for this
Last edited by iarehenry; 05-04-08 at 09:36 PM.
basically just edit the player and when they do the commands and run the check if their job is either 500 or 510 if yes den continue if no den die.. lol
this works very well
But what if you change your job (Cleric par example), then you aren't a real GM anymore, or am I wrong. (So if you use the !job command)...
So when you jobchanged you can't use the commands anymore or am I wrong?
Then change it in the database browser
i'm screwed, cause i wasn't on SuperGM when i replaced the script over. Anyway to make my Priest became SuperGM? I can't use !job now.
Change in the database the jobid to 510
This worked on rec 003 and 004 but gives errors in 005
edit: nvm i solved
It's better to have an accesslevel for each client, then base the use of GM commands off that.
If a hacker finds a way to change their job to anything they want, and simply having the GM job allows them to use all the GM commands, you're gonna have a huge problem on your hands!!
Example:
< 0 = Banned
0-499 = Regular Player
500-509 = Regular GM
510-600 = Super GM
> 600 = Developer
yes but u need to define the variables it isnt as easy for u to just hey i wanna code smth.. = =" unless u are good in c++ its hard to work around so much codes
I'm hardly going to code it for you...
Something like that is the most basic of basic coding. If you can't even code in C++, why are you bothering to even download the source?
Just add something like:
int AccessLevel;
Into the Player class (probably there... or the client class if there is one?). Then retrieve it from the database with all the other account info.
I know TitanMS has functions like player->getLevel();, etc. So you'll need to code something which returns the AccessLevel.
Like:
int CPlayer::getAccessLevel()
{
return player->AccessLevel;
}
THEN whenever you need to check the accesslevel of the client, call that getAccessLevel() function.
If you don't understand this, then GTFO the forum.
It's the MOST basic of class/database manipulation.
can have +post plz? tyty
oooOOO my army prevails!