canibalstew Posted March 20, 2008 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
Akash Posted March 20, 2008 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
Godhand Posted March 20, 2008 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
canibalstew Posted March 21, 2008 Author 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
shaved92bravada Posted March 21, 2008 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
canibalstew Posted March 21, 2008 Author Posted March 21, 2008 Re: free welfare mod thanx yeah the admin part was thrown together thanx for the reply Quote
Strats Posted April 10, 2008 Posted April 10, 2008 Re: free welfare mod Cool mod is it for v1 or v2? Quote
KDawg08 Posted April 10, 2008 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
Tonka Posted April 11, 2008 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
POG1 Posted April 12, 2008 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
WickedJester Posted April 14, 2008 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
Magictallguy Posted April 18, 2008 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
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.