Jump to content
MakeWebGames

[mccode] free welfare mod


canibalstew

Recommended Posts

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.

Link to comment
Share on other sites

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....

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • 3 weeks later...

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

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;

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...