John99 Posted December 31, 2008 Share Posted December 31, 2008 Heres A Bit Of Code I Just coded took like 2 secounds Main Menu.php or any were you have staff apps like explore.php ect You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You will have to change staffapps.php to what eva your staff apps are called thanks, Crazy-T Quote Link to comment Share on other sites More sharing options...
gurpreet Posted December 31, 2008 Share Posted December 31, 2008 Re: Bit of code for staff Apps Heres A Bit Of Code I Just coded took like 2 secounds Main Menu.php or any were you have staff apps like explore.php ect You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. You will have to change staffapps.php to what eva your staff apps are called thanks, Crazy-T Which staffapps mod is this from? There are quite a lot of different versions of them. Quote Link to comment Share on other sites More sharing options...
John99 Posted December 31, 2008 Author Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps Lol it will work with any staff apps its only for mainmenu . or explore or any were you want to. its 2 show staff apps open or close Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps Yeah ideally you can do this with any link you want however Crazy-t, you should make a little admin option to turn them on and off, only takes a few minutes and makes it easier and better. Quote Link to comment Share on other sites More sharing options...
John99 Posted December 31, 2008 Author Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps Yeah i no just done it for Noobs BUT if someone in url yourgamename.com/staffapps.php it will work unless u add somethink like like the other code but like if($staffapps = CLOSED) { DIE("STAFF APPS CLOSED) } ect Quote Link to comment Share on other sites More sharing options...
POG1 Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps define("APLICATIONS","open"); echo (APLICATIONS = open) ? 'Staff Aplications : FALSE ; Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps Yeah i no just done it for Noobs BUT if someone in url yourgamename.com/staffapps.php it will work unless u add somethink like like the other code but like if($staffapps = CLOSED) { DIE("STAFF APPS CLOSED) } ect Yeah hence the make a little admin option to turn them on and off That was referring to the actual page, it would be more logical to have the die on the actual staff aps page so people click the link and it says "staff applications are currently closed" blah blah... Easy way would be to add a sql to the staff apps db table. then just if it. You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. then for the admin just have either a case or just a separate file..but case would be easy i suppose.. function staffapps() { globals $db,$c etc $aps = $db->query("select open from staffapps"); if($aps['open']==1) { $db->query("update staffapps set open=0"); echo "staff apps turned off"; }else{ $db->query("update staff apps set open=1"); echo "staff apps turned on"; } taking your sql query is something like alter table staffapps add open int(11) not null default '0' and using the case case "staffapps": staffapps(); break; and the link Turn on/off staff apps Please note i did that in like 1minute, its very bad. xD Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lol Quote Link to comment Share on other sites More sharing options...
radio_active Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lol hahaha, people would be like, errr wtf? Quote Link to comment Share on other sites More sharing options...
AlabamaHit Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps yeah that would be funny Quote Link to comment Share on other sites More sharing options...
John99 Posted December 31, 2008 Author Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. lol LMFAOOOOOOOO that made me laugh lol Quote Link to comment Share on other sites More sharing options...
John99 Posted December 31, 2008 Author Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps if($_SESSION['loggedin']==1) { DIE("<body bgcolor=red><h1>Sorry But You Cant Play The Game :D</h1></font>"); } Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted December 31, 2008 Share Posted December 31, 2008 Re: [mccode] Bit of code for staff Apps everyone forgetting my staff aps mod with the turn on / off options... atleast bring something new to the table... http://criminalexistence.com/ceforums/i ... ic=26250.0 sad... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.