canibalstew Posted March 20, 2008 Share Posted March 20, 2008 this is a fairly easy mod just a simple welfare mod well hope you like it (::::REMEMBER:::: ithis is thrown together as i was just playing around when i made this there may or may not be errors please post all fixes here for all to see THANKS You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. make php page called welfare You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote Link to comment Share on other sites More sharing options...
Akash Posted March 20, 2008 Share Posted March 20, 2008 Re: free welfare mod Nice idea...I might use it, but just a tip, it'd be alot easier if you had the sql done... Quote Link to comment Share on other sites More sharing options...
Godhand Posted March 20, 2008 Share Posted March 20, 2008 Re: free welfare mod I will say that I don't think he really wrote the mod... But... as far as I know it hasn't been posted on CE.. and I can't be bothered to look t all the pages I haven't read yet... If you make it a local page variable it would save you some space later on.... All you'd really need is 1 sql file unless you wanted to update this on settings.... Quote Link to comment Share on other sites More sharing options...
canibalstew Posted March 21, 2008 Author Share Posted March 21, 2008 Re: free welfare mod :-Dwell thanks for your reply but just so you know i did code this!!! look for it anywhere i challenge you :mrgreen: also sorry for sql i do apologize i was lazy today Quote Link to comment Share on other sites More sharing options...
shaved92bravada Posted March 21, 2008 Share Posted March 21, 2008 Re: free welfare mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. I'm pretty sure thats not going to work correctly, shouldn't it be more like this You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. or You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. just tryin to help you out a bit. Quote Link to comment Share on other sites More sharing options...
canibalstew Posted March 21, 2008 Author Share Posted March 21, 2008 Re: free welfare mod thanx yeah the admin part was thrown together thanx for the reply Quote Link to comment Share on other sites More sharing options...
Strats Posted April 10, 2008 Share Posted April 10, 2008 Re: free welfare mod Cool mod is it for v1 or v2? Quote Link to comment Share on other sites More sharing options...
KDawg08 Posted April 10, 2008 Share Posted April 10, 2008 Re: free welfare mod Cool mod is it for v1 or v2? ... If you see this in the code... (99% of the time at the top of the code) You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. That means it's V2... For V1 it would be global_func.php instead of globals.php This one does have me a bit confused though as it has no $db-> only mysql_ Still a v2 script though. Quote Link to comment Share on other sites More sharing options...
Tonka Posted April 11, 2008 Share Posted April 11, 2008 Re: free welfare mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this one won't work because you are only blocking out any user who's user level is above 2, a normal member has a user level 1 Quote Link to comment Share on other sites More sharing options...
POG1 Posted April 12, 2008 Share Posted April 12, 2008 Re: free welfare mod You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. this one won't work because you are only blocking out any user who's user level is above 2, a normal member has a user level 1 if(!$ir[user_level] == 2) that would be how id do it... Quote Link to comment Share on other sites More sharing options...
WickedJester Posted April 14, 2008 Share Posted April 14, 2008 Re: free welfare mod if($ir['user_level'] != 2) { die("You Are Not An Admin!!!"); } would be the correct way to do it Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted April 18, 2008 Share Posted April 18, 2008 Re: free welfare mod CREATE TABLE `welfare` ( `welmoney` INT( 11 ) DEFAULT '2000' NOT NULL , `welcry` INT( 11 ) DEFAULT '10' NOT NULL , `welstat` INT( 11 ) DEFAULT '20' NOT NULL , `user` INT( 11 ) NOT NULL ) TYPE = MYISAM ; ALTER TABLE `users` ADD `welfare` INT( 11) NOT NULL default 0; ALTER TABLE `users` ADD `welfare_paid` INT( 11) NOT NULL default 0; 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.