Quote:
Originally posted by chrisz
I didnt say i did. I said i would like it.
Also is there any way to limit the Battle Sytem and Itemshop to certain member groups. (I need this or my whole RPG is ruined)
I dont want people who dont want to play the RPG to use them so is there any way I can do this?
|
At the top of battleupdate.php, battlefight.php, battle.php, and heal.php you will find code that checks to see if the user is in the correct usergroup. It looks something like:
PHP Code:
If ($bbuserinfo[userid] != 0 && $bbuserinfo[usergroupid] != 3 && $bbuserinfo[usergroupid] != 4 && $bbuserinfo[usergroupid] != 1){
All you need to do is add the usergroup that you don't want to have access to the rpg battle system. Like this:
PHP Code:
If ($bbuserinfo[userid] != 0 && $bbuserinfo[usergroupid] != 3 && $bbuserinfo[usergroupid] != 4 && $bbuserinfo[usergroupid] != 1 && $bbuserinfo[usergroupid] != XX){
replace XX with the ID that you don't want to have access. When someone from this usergroup goes to the pages, they will get a no permission screen.
If you want to cut off access to other files, then it will take a little bit more work. You will have to add similar code to itemshop.php, rpgcp.php, and rpgmanual.php. If you don't want them to be able to select the different races/classes/genders in their profile, then you will have to edit member.php to show a simple "You cannot access this feature" message in all of the drop-down boxes.