(((TOLK))) Posted June 9, 2009 Posted June 9, 2009 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 :) Quote
jonomatt Posted June 9, 2009 Posted June 9, 2009 Re: [mccodes V2] Nuclear Bomb im sorry, how do they get the bomb? Quote
Jordan Palmer Posted June 9, 2009 Posted June 9, 2009 Re: [mccodes V2] Nuclear Bomb You could make it so everyone gets one montly or something... $db->query("UPDATE users SET bomb='1'"); You could make it so when someone donate's they get one... Quote
Jordan Palmer Posted June 10, 2009 Posted June 10, 2009 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: Quote
Jordan Palmer Posted June 10, 2009 Posted June 10, 2009 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 :) Quote
(((TOLK))) Posted June 10, 2009 Author Posted June 10, 2009 Re: [mccodes V2] Nuclear Bomb Thanks for the edits! I'm probably gonna make a cron_week.php and add something so a random user gets a bomb Quote
Dayo Posted June 10, 2009 Posted June 10, 2009 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!!! Quote
Miniman Posted June 10, 2009 Posted June 10, 2009 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 :) Quote
Jordan Palmer Posted June 10, 2009 Posted June 10, 2009 Re: [mccodes V2] Nuclear Bomb Nice! Although I'll stick with my way :wink: Quote
CrazyT Posted June 10, 2009 Posted June 10, 2009 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. Quote
Jordan Palmer Posted June 10, 2009 Posted June 10, 2009 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 Quote
CrazyT Posted June 10, 2009 Posted June 10, 2009 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 ??? Quote
Jordan Palmer Posted June 10, 2009 Posted June 10, 2009 Re: [mccodes V2] Nuclear Bomb I mean, how's it coded and presented is a lot more advanced way, however my way is the more standard way However Thank you for your contribution :) Quote
MrGi Posted June 10, 2009 Posted June 10, 2009 Re: [mccodes V2] Nuclear Bomb For such a Simple written code, You guys are going blistic. Lol, But nice work to all. Quote
Haunted Dawg Posted June 10, 2009 Posted June 10, 2009 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. Quote
Miniman Posted June 10, 2009 Posted June 10, 2009 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! Quote
redsnake420 Posted June 11, 2009 Posted June 11, 2009 Re: [mccodes V2] Nuclear Bomb Whats the gift.php for? Quote
MrGi Posted June 11, 2009 Posted June 11, 2009 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? Quote
Dayo Posted June 11, 2009 Posted June 11, 2009 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) Quote
DISTORTED Posted June 13, 2009 Posted June 13, 2009 Re: [mccodes V2] Nuclear Bomb How can i set this up where a user can buy nuke with crystals Quote
(((TOLK))) Posted June 13, 2009 Author Posted June 13, 2009 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 Quote
Jordan Palmer Posted June 13, 2009 Posted June 13, 2009 Re: [mccodes V2] Nuclear Bomb Whats the gift.php for? Thats so you had something to give to add so users can gain bombs Quote
inferno564 Posted June 13, 2009 Posted June 13, 2009 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. Quote
DISTORTED Posted June 14, 2009 Posted June 14, 2009 Re: [mccodes V2] Nuclear Bomb thanks works great Quote
Feky Posted June 14, 2009 Posted June 14, 2009 Re: [mccodes V2] Nuclear Bomb could anyone make it so you can only use it on gang and they loose respect 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.