Jump to content
MakeWebGames

Recommended Posts

Posted

This is a simple mod in which a user can detinate a nuclear bomb to hospitalise every other user in the game. They will recieve two levels when they do this. These bombs should be rare and hard to find but it's upto you what you give your users nuclearbombs for. You can change the levelling up if you wish :)

Run this SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Create A file called

nuclearbomb.php

Add into it:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Finally, add this to

header.php

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Please comment on what you think of it :)

Posted

Re: [Mc V2] Nuclear Bomb

Okay, I've just basically just added a more of a funnier side to this, Basically if the user doesnt have a bomb they'll end up in hospital :P

Call this file what you wish..

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

SQL:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

Then in mainmenu | explore | anywhere

You can add

<font color=color>Nuclear Bomb Everyone</font>

 

simple, Yet very funny... :mrgreen:

Posted

Re: [mccodes V2] Nuclear Bomb

UPDATE: Amaount of Query's have been shortend :)

Thanks for tip BlueDevil :-D

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This is gift.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

And There you have it :)

Posted

Re: [mccodes V2] Nuclear Bomb

insted of a cron use somthing like this:

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

add that to header

NOT TESTED!!!

Posted

Re: [mccodes V2] Nuclear Bomb

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

That's Dayo's way, fixed.

Also as I have error reporting on, I fixed a few errors that wouldn't be seen normally :)

Posted

Re: [mccodes V2] Nuclear Bomb

 

UPDATE: Amaount of Query's have been shortend :)

Thanks for tip BlueDevil :-D

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

This is gift.php

 

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

And There you have it :)

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Would be 10x better less queries.. *not tested.

You could also make a config for it.. eg.

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Then do like for the query..

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Posted

Re: [mccodes V2] Nuclear Bomb

 

Crazy-T, - I did it that way so new people to coding would understand and wouldnt have to post for help... However you way might be better for the more advanced coders

Whats so advanced about it ???

Posted

Re: [mccodes V2] Nuclear Bomb

 

For such a Simple written code, You guys are going blistic.

Lol, But nice work to all.

For a person who says variables is attackable, nice comment.

Lmao!

Posted

Re: [mccodes V2] Nuclear Bomb

 

For such a Simple written code, You guys are going blistic.

Lol, But nice work to all.

For a person who says variables is attackable, nice comment.

Hey, You dont have to belive me. But dont sit and critize me about my work... Got it?

Posted

Re: [mccodes V2] Nuclear Bomb

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

Wools looking thro that I forgot to add the "echo" :p still untested as I'm on my iPod and can't save a php file yet:( (me 1 know of one? :p)

Posted

Re: [mccodes V2] Nuclear Bomb

Just add some code into the crystal temple. If you can't do this and no1 tells you how to then I'll post it at about 2pm GMT tomorrow coz I can't be bothered right now

Posted

Re: [mccodes V2] Nuclear Bomb

here is how to make the bomb an item

got it from donator packs as items

create nbuse.php and add this code

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

make a nuclearbomb item.

an change 21 item id to your nuclearbombs id.

add this to your header remember replace 21 id with your items id

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

and last but not least add this to inventory.php under this code

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

 

replace 21 with you nuclear bombs id

You're unable to view this code.

Viewing code within this forum requires registration, you can register here for free.

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