Jump to content
MakeWebGames

-Genocide-

Members
  • Posts

    106
  • Joined

  • Last visited

    Never

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

-Genocide-'s Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Re: [mccode] voting Pimped Out I am going to edit the original post so some of you can understand it a little better
  2. Re: Referals Logs Very nice....def using it
  3. Re: [mccode] voting Pimped Out bump :-P
  4. Re: Free Starter Pack Great mod, this is exactly what I was looking for to help people get started out in my game....gets them addicted quick :P Great Work. Peace :mrgreen:
  5. Re: Itempedia FREE V2 Mod... Very nice, I'll be using it
  6. Re: Medical Insurance / Hospital Bill [FREE]   Thanks much.
  7. Re: Medical Insurance / Hospital Bill [FREE] Money is supposed to go into the negative, so as soon as they have money in hand, it goes to pay the bill.
  8. It's been a while since most of you have seen or spoken to me, so I decided to make a little mod for us all to get reacquainted.   :::::Med Insurance / Hosp Bill Mod v1::::: What it does: When a user loses a fight or is attacked, not only do they go to the hospital, but they have a bill which they pay every night when the day cron runs, unless they have insurance. insagent.php (for v1) <?php /*----------------------------------------------------- -- Medical Insurance v1 -- This is a free modification, please do not resell -- If you use this mod, please give credit -- [email][email protected][/email] -- insagent.php -----------------------------------------------------*/ session_start(); require "global_func.php"; if($_SESSION['loggedin']==0) { header("Location: login.php");exit; } $userid=$_SESSION['userid']; require "header.php"; $h = new headers; $h->startheaders(); include "mysql.php"; global $c; $is=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid",$c) or die(mysql_error()); $ir=mysql_fetch_array($is); check_level(); $fm=money_formatter($ir['money']); $cm=money_formatter($ir['crystals'],''); $lv=date('F j, Y, g:i a',$ir['laston']); $h->userdata($ir,$lv,$fm,$cm); $h->menuarea(); if($ir['hospital']>0) { print "You cant buy insurance while youre already in the hospital."; $h->endpage(); } if($ir['jail']>0) { print "You cant buy insurance while youre in jail."; $h->endpage(); } if(!$_GET['x']) { print "<center><table><table width=100% border=3 cellspacing=5 bordercolor=white>Welcome to the Insurance Agency! You have [b]{$ir['medins']}[/b] days left before you can renew your policy. How would you like to pay for your policy? <center>[url='insagent.php?x=money'] Pay With Cash - \$2500[/url] <center>[url='insagent.php?x=crystals'] Pay With Crystals - 25[/url] "; } else { if($_GET['x'] == 'money') { if($ir['money'] <2500) { print "You don't have enough money, sorry."; } else if($ir['medins'] > 0) { print "You have {$ir['medins']} days left before you must renew your policy."; } else { $_POST['money']=strip_tags($_POST['money']); $_POST['money']=mny_stripfmt($_POST['money'], ENT_QUOTES); $_POST['money']=abs((int)($_POST['money'])); mysql_query("UPDATE users SET medins=medins+30,money=money-2500 WHERE userid=$userid",$c); print "You have paid \$2,500 for a 30 day insurance policy."; } } else if($_GET['x'] == 'crystals') { if($ir['crystals'] <25) { print "You don't have enough crystals, sorry."; } else if($ir['medins'] > 0) { print "You have {$ir['medins']} days left before you must renew your policy."; } else { $_POST['crystals']=strip_tags($_POST['crystals']); $_POST['crystals']=mny_stripfmt($_POST['crystals'], ENT_QUOTES); $_POST['crystals']=abs((int)($_POST['crystals'])); mysql_query("UPDATE users SET medins=medins+30,crystals=crystals-25 WHERE userid=$userid",$c); print "You have paid 25 crystals for a 30 day insurance policy."; } } $h->endpage(); ?>   insagent.php (for v2)   <?php /*----------------------------------------------------- -- Medical Insurance v1 -- This is a free modification, please do not resell -- If you use this mod, please give credit -- [email][email protected][/email] -- insagent.php -----------------------------------------------------*/ include "globals.php"; if($ir['hospital']>0) { print "You cant buy insurance while youre already in the hospital."; $h->endpage(); } if($ir['jail']>0) { print "You cant buy insurance while youre in jail."; $h->endpage(); } if(!$_GET['x']) { print "<center><table><table width=100% border=3 cellspacing=5 bordercolor=white>Welcome to the Insurance Agency! You have [b]{$ir['medins']}[/b] days left before you can renew your policy. How would you like to pay for your policy? <center>[url='insagent.php?x=money'] Pay With Cash - \$2500[/url] <center>[url='insagent.php?x=crystals'] Pay With Crystals - 25[/url] "; } else { if($_GET['x'] == 'money') { if($ir['money'] <2500) { print "You don't have enough money, sorry."; } else if($ir['medins'] > 0) { print "You have {$ir['medins']} days left before you must renew your policy."; } else { $_POST['money']=strip_tags($_POST['money']); $_POST['money']=mny_stripfmt($_POST['money'], ENT_QUOTES); $_POST['money']=abs((int)($_POST['money'])); mysql_query("UPDATE users SET medins=medins+30,money=money-2500 WHERE userid=$userid",$c); print "You have paid \$2,500 for a 30 day insurance policy."; } } else if($_GET['x'] == 'crystals') { if($ir['crystals'] <25) { print "You don't have enough crystals, sorry."; } else if($ir['medins'] > 0) { print "You have {$ir['medins']} days left before you must renew your policy."; } else { $_POST['crystals']=strip_tags($_POST['crystals']); $_POST['crystals']=mny_stripfmt($_POST['crystals'], ENT_QUOTES); $_POST['crystals']=abs((int)($_POST['crystals'])); mysql_query("UPDATE users SET medins=medins+30,crystals=crystals-25 WHERE userid=$userid",$c); print "You have paid 25 crystals for a 30 day insurance policy."; } } $h->endpage(); ?>   Edits for your attack files: Find the query that send the user to the hospital, should look something like this:   mysql_query("UPDATE users SET hp=1,hospital=$hosptime,hospreason='Mugged by <a href=\'viewuser.php?u={$userid}\'>{$ir['username']}</a>' WHERE userid={$r['userid']}");   Under that add this:   mysql_query("UPDATE users SET hospbill=hospbill+$hosptime*10 WHERE userid={$r['userid']}");   In attacklost.php it should look like this:   mysql_query("UPDATE users SET hospbill=hospbill+$hosptime*10 WHERE userid={$ir['userid']}");   Add these queries to your daily cron:   mysql_query("UPDATE users SET medins=medins-1 WHERE medins>0",$c); mysql_query("UPDATE users SET money=money-hospbill WHERE medins>0",$c); mysql_query("UPDATE users SET hospbill=0 WHERE hospbill>0",$c);   SQL:   ALTER TABLE `users` ADD `medins` BIGINT( 22 ) NOT NULL DEFAULT '0', ADD `hospbill` BIGINT( 22 ) NOT NULL DEFAULT '0';   I coded this one the spot and didnt test any of it. If I missed anything or there are features you would like to see added, let me know and I'll fix it up. Peace. :mrgreen: **Edit** Add this anywhere you would like it to display there medical bill.   print "Medical Bill: /${$ir['hospbill']}";
  9. Re: [FREE] Bodyguard V2.0 Anyone having problems with this mod, I have a bodyguard for v1 and v2, has different levels of protection, ie. different bodyguards protect against different things, has donator options, options to pay with money, crystals, or certain items, etc etc
  10. Re: NotoriousOnline for sale Has been sold, please delete topic.
  11. Re: NotoriousOnline for sale ive been on msn all day, also, please dont post about that here, leave this topic for people interested in buying the games
  12. Re: NotoriousOnline for sale Current offer $3000.00 beat it or match it, first come first serve
  13. Re: NotoriousOnline for sale   May 13th - 20th = $612.50
  14. Re: NotoriousOnline for sale   you should take time and use a calculator, because you severely miscalculated, the first week posted was $612.50, not including money orders, and cash in the mail.
  15. Re: NotoriousOnline for sale   Refuse to refund for the fact that you're selling my mods, as well as everyone elses, and yes I have proof, you tried to sell my ammo mod to Ice Queen, and my bodyguard to several other people, so don't even bother
×
×
  • Create New...