
plintu
Members-
Posts
102 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Events
Everything posted by plintu
-
There is even other things you can do like just before the above code you can add something like : if (is_numeric($_POST['amount'])) { }else{die("What are you trying to pull here buddy?");}
-
$amount=($_POST['amount']); is completely setting yourself up to get hacked, try this: $amount=mysql_real_escape_string(strip_tags($_POST['amount'])); ok I tried <code> tags and they do not work I even tried it like and nothing so :p
-
i want this mod please contact me. breakinglight has emails blocked so anyone who has it please contact me
-
if you got it contact me please and what you want for it?
-
Bidding Ends Wednesday August 10th, If no bids have been placed you can buy it now $50. This template comes with additional images in case you have a use for them. You are purchasing full ownership rights to everything including the images. So not even I will be allowed to use these specific images. You are not purchasing ownership rights to the characters, which I still may use for other projects, but will I will not use these scenes in other projects. These preview images have a watermark, and are saved as lower quality(6) jpeg you will receive the psd for the template, non-coded, and jpeg image for the additional images. Here is the template: http://plintu.com/templates/preview/whole.jpg Here is additional images: http://plintu.com/templates/preview/d1.jpg http://plintu.com/templates/preview/d2.jpg http://plintu.com/templates/preview/h1.jpg http://plintu.com/templates/preview/h2.jpg http://plintu.com/templates/preview/h3.jpg http://plintu.com/templates/preview/h4.jpg Forgot to mention, there is a reserve $20
-
I just wanted to add something to this thread, as an independent web developer, I am disgusted with the way people come on here with their stolen scripts, then they beg for free mods, then they create a game and get money from the game but they give nothing in return. The actual people who did all the coding of the game and the mods deserve the money for the time and effort that they put into creating the mods. Aside from the hours, days, weeks and even months of time spent creating these scripts, the developer spent years of their lives learning to code and some bum wants to come around and get everything for free or steal the work and suck in that money for themselves. All I got to say is that is just despicable and disgusting. At least once you start making money off of your stolen goods, come and make it right with the actual person who created it. Even if you can't afford the entire price, shoot the programmer a few bucks and say "hey I wasn't able to afford your script at the time, I found a copy, and made a few bucks I am doing all I can here, but I will split the profit with you until I have paid you what I really should have paid you from day one" I will guarantee you the programmer will respect you for considering the hard work they put into it, and all will be good! Then in no time flat you can be legit and you won't be a scuzz-bucket! if($ir['money']='0'){ steal($code); die(); } :P
-
Yeah I ran across the same person trying that crud on my game also check for this user Milly they seem to even log into each game with the same name! LOL And I wouldn't even really care about this persons rights and being nice and not posting his IP address do you think that he is not gonna use an exploit on your game if he finds it because you were nice and didn't post his IP? These guys are jerks going around looking for mccodes games to try to ruin them so I say to hell with these guys! they have no idea how much time and effort we all put into our games to try to make them good then he trys to ruin it in a few swipes well markwick logged into my game and attempted to hack it also but he messed up and used his home computer and I got this ip address 92.235.150.88 92-235-150-88.cable.ubr20.aztw.blueyonder.co.uk so if this helps anyone prevent a hacker from ruining their game there you go! but I also got the 70.87.103.182 b6.67.5746.static.theplanet.com address from him he used that one to sign up then he also signed up using a markwick123 name, so he uses both ip's often! Now the milly one uses 82.25.183.36 client-82-25-183-36.brnt.adsl.virginmedia.com! I hope this helps someone out! I even chatted with milly for a bit about it and milly was a 15 year old boy who said he just wanted to be strong in a game and kept pushing asking to be admin but I told him he was a loon and banned him and blocked ip.:D :thumbsup:
-
Need help with adding attacks won to hall of fame
plintu replied to plintu's topic in Requests & In Production
well that is a good idea but I know there has got to be a way to do a select count or num rows with a left join users and some way to order by with a limit of, now that is the tricky part :D I was wondering if anyone could do it? Cause I know it is beyond me as of now! I think I am close with this one but I am still doing tons of trial and error to get my queries so I am not sure :D[mysql]mysql_query("SELECT COUNT(*) FROM attacklogs al LEFT JOIN users u ON u.userid = al.attacker WHERE al.result = 'won' ORDER BY COUNT(*) DESC");[/mysql] -
well here is my hall of fame I think it is the basic one, I need help selecting from attacklogs where result =won, and listing the top in my attack logs it has the following fields attacker, attacked, result that would be needed for this can anyone help? ;( <?php include "globals.php"; $filters=array( 'nodon' => 'AND donatordays=0', 'don' => 'AND donatordays > 0', 'all' => ''); $filter=(isset($filters[$_GET['filter']])) ? $_GET['filter'] : 'all'; $myf=$filters[$filter]; $bt1=($filter=="nodon") ? "[b]" : ""; $bet1=($filter=="nodon") ? "[/b]" : ""; $bt2=($filter=="don") ? "[b]" : ""; $bet2=($filter=="don") ? "[/b]" : ""; $bt3=($filter=="all") ? "[b]" : ""; $bet3=($filter=="all") ? "[/b]" : ""; print "<h2>Hall Of Fame</h2><hr /> <table width=65% cellspacing=1 class='table'> <tr> <td>[url='halloffame.php?action=level&filter={$filter}']LEVEL[/url]</td> <td>[url='halloffame.php?action=money&filter={$filter}']MONEY[/url]</td> <td>[url='halloffame.php?action=respect&filter={$filter}']RESPECT[/url]</td> </tr> <tr> <td>[url='halloffame.php?action=agility&filter={$filter}']AGILITY[/url]</td> <td>[url='halloffame.php?action=labour&filter={$filter}']LABOUR[/url]</td> <td>[url='halloffame.php?action=iq&filter={$filter}']IQ[/url]</td> </tr> <tr><td> </td><td>[url='halloffame.php?action=rcelogs&filter={$filter}']LAST 25 RACE RESULTS[/url]</td><td> </td></tr></table>"; switch($_GET['action']) { case "level": hof_level(); break; case "attacks": hof_attackswon(); break; case "money": hof_money(); break; case "points": hof_points(); break; case "respect": hof_respect(); break; case "total": hof_total(); break; case "strength": hof_strength(); break; case "agility": hof_agility(); break; case "guard": hof_guard(); break; case "labour": hof_labour(); break; case "iq": hof_iq(); break; case "referal": hof_referals(); break; case "rcelogs": view_race_logs(); break; } function view_race_logs() { global $db,$ir,$c,$h,$userid; print "<h3>Race Logs</h3> <table width=65% cellspacing='1' class='table'> <tr style='background:gray'> <th>ID</th> <th>User From</th> <th>User To</th> <th></th> <th>Amount</th> <th>Winner</th> <th></th> </tr>"; $q=$db->query("SELECT rr.*,u1.username as sender, u2.username as sent FROM race_results rr LEFT JOIN users u1 ON rr.rrCHALLENGER=u1.userid LEFT JOIN users u2 ON rr.rrCHALLENGED=u2.userid ORDER BY rr.rrID ASC LIMIT 25"); while($r=$db->fetch_row($q)) { if($r['cxFROMIP'] == $r['cxTOIP']) { $m="<span style='color:red;font-weight:800'>MULTI</span>"; } else { $m=""; } print "<tr><td>{$r['rrID']}</td> <td>[url='viewuser.php?u={$r[']{$r['sender']}[/url] [{$r['rrCHALLENGER']}] [b]Used [{$r['rrCHRCAR']}] [/b] </td><td>[url='viewuser.php?u={$r[']{$r['sent']}[/url] [{$r['rrCHALLENGED']}] [b] Used [{$r['rrCHDCAR']}] [/b] </td> <td></td> <td> {$r['rrBET']} Money </td> <td>{$r['rrWINNER']} </td> <td></td> </tr>"; } print "</table>"; stafflog_add("Viewed the Race Logs"); } function hof_level() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest levels <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Level</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY level DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t{$r['level']}$et</td> </tr>"; } print "</table>"; } function hof_money() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest amount of money <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>Money</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY money DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t\$".money_formatter($r['money'],'')."$et</td> </tr>"; } print "</table>"; } function hof_points() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest amount of points <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> <th>points</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY points DESC,userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $userid) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> <td>$t".money_formatter($r['points'],'')."$et</td> </tr>"; } print "</table>"; } function hof_respect() { global $db,$ir,$c,$userid; print "Showing the 20 gangs with the highest amount of respect <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>Gang</th> <th>Respect</th> </tr>"; $q=$db->query("SELECT * FROM gangs ORDER BY gangRESPECT DESC,gangID ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['gangID'] == $ir['gang']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangNAME']} [{$r['gangID']}]$et</td> <td>$t".money_formatter($r['gangRESPECT'],'')."$et</td> </tr>"; } print "</table>"; } function hof_total() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest total stats <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY (us.strength+us.agility+us.guard+us.labour+us.IQ) DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_strength() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest strength <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.strength DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_agility() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest agility <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.agility DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_guard() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest guard <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.guard DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_labour() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest labour <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.labour DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } function hof_iq() { global $db,$ir,$c,$userid, $myf; print "Showing the 20 users with the highest IQ <table width=65% cellspacing=1 class='table'><tr style='background:gray'> <th>Pos</th> <th>User</th> </tr>"; $q=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid LEFT JOIN gangs g ON g.gangID=u.gang WHERE u.user_level != 0 $myf ORDER BY us.IQ DESC,u.userid ASC LIMIT 20"); $p=0; while($r=$db->fetch_row($q)) { $p++; if($r['userid'] == $ir['userid']) { $t="[b]";$et="[/b]"; } else { $t="";$et=""; } print "<tr> <td>$t$p$et</td> <td>$t{$r['gangPREF']} {$r['username']} [{$r['userid']}]$et</td> </tr>"; } print "</table>"; } $h->endpage(); ?>
-
RE: Problem Logging In srachit_brutalimpact is the name of the database and users is the name of the table, you either need to run the installer or open your installer(find sql's) and manually copy the queries and run them in the database however you feel more comfortable doing!
-
Flash Slot Machine [$50] Designed to fit your game!
plintu replied to plintu's topic in Paid Modifications
WOW $5 That is amazing I would really like to see that mod! I mean really I have not seen anyone with anything like this anywhere around here but you say you can get one for $5, I would like to see a link to that forum, I have been searching and searching but I can't find it anywhere! but hey if you can get it that cheap then, I guess there is no reason for you to be posting here! but if you think you can find that other mod I would love for you to post it here! I guess I will sit here and wait a while! :sleeping: -
Flash Slot Machine [$50] Designed to fit your game!
plintu replied to plintu's topic in Paid Modifications
RE: Re: Flash Slot Machine [$50] Designed to fit your game! If you buy a copy then you have the licence. Then you can use it on all your games. O.o Pfft is someone has brought a copy ... licence then sure they can use it on there games.. PFFT! normally i would agree with you on that, however i did come to a deal with plintu for 3 copies of this and each one has been recoded to fit each of my games... so this was not just a case of the mod being sent to me and me uploading to each game, but has been graphically changed to suit each game theme...This involved ripping the SWF apart and rebuilding it, something i don't have a clue how to do... the slot machine is brilliant Plintu spent hours even changing the payouts to fit my games economy (which was lower than his) its an excellent mod and well worth $35 my members love it... Thank you Shrek! It is true normally I would agree with crazy t as well, but this isn't just a php mod, this involves php, flash and actionscript, with lots of communication between the swf file and the php files to make database queries. I Spend a great deal of time trying to make sure that all of the art will completely match each game I can either add the images myself or if you want particular images to be used then I will use those. I have already done a few of these and I work directly with my customers until they are completely satisfied with the mod! I even go so far as to teach them how it works so that they can fully understand it and make thier own changes to it if they so choose. Believe me I would honestly say $35 is not enough for the amount of time I spend on each one of these. 8) -
needs help make sure and do some serious changes to the script before implementing in a game, you can keep refreshing without a bet to get a good hand, and it does not recognize straights. but it looks really good just needs a little help.
-
Re: mafia Game bible + Ultimate how to get traffic, backlinks, and exposer for $0.00 I know this is an old topic but I couldn't resist! I guess topmorpg for got to just add the fine print in the title" It is at $0.00 cost to you as you spend money and buy the mafia game script! "but we can just shorten that for the title pruposes and make it "at $0.00 cost to you as long as you spend money"
-
Re: v3 Mafia Game Script released. I agree with sim I just don't think it is worth it, even with the amazing super discount!
-
Community work on attack system :D (for coders only)
plintu replied to plintu's topic in Requests & In Production
Re: Community work on attack system :D (for coders only) actally that did help I don't know why I wasn't using the $ir variable, and I noticed I forgot to actually query for the weapons strength, I knew there was errors in this and that it wasn't complete that is kind of what the topic was about, I wanted to see if some coders would do some adds to it and see how creative of an attack script we could come up with! as for the get variable do you really think $_GET['ID'] = isset($_GET['ID']) && preg_match("/^\d+$/ims", $_GET['ID']) ? intval($_GET['ID']) : 0; $checkUser = $db->query('SELECT userid FROM users WHERE userid = '. $_GET['ID']); if(!$_GET['ID'] || $db->num_rows($checkUser) < 1) { echo 'This user don\'t exist.'; die(headers::endpage()); } is better than $gets=mysql_real_escape_string($_GET['ID']); $get=abs((int) $gets); and why? I am not trying to be a jerk I am just wondering, I am still learning php and trying to learn the why's of everything! -
Community work on attack system :D (for coders only)
plintu replied to plintu's topic in Requests & In Production
Re: Community work on attack system :D (for coders only) that wouldn't be a problem, the funding would be :D anything can be made, but at least for a little $$ to help with time spent writing everything out! -
I am writing an attack system and I thought it might be cool to put it out here and see what the coders here thinks of it, it is about half way done, and if you got any ideas to add to it let me know ;) <?php include "globals.php"; $gets=mysql_real_escape_string($_GET['ID']); $get=abs((int) $gets); $mestr=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$get"); $me=mysql_fetch_array($mestr); $ustr=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid=$userid"); $u=mysql_fetch_array($ustr); $msecondary=$me['equip_secondary']; $usecondary=$u['equip_secondary']; $mprimary=$me['equip_primary']; $uprimary=$u[equip_primary $marmor=$me['armor']; $uarmor=$u['armor']; $magi=$me['agi']; $uagi=$u['agi']; $mehp=$me['hp']; $uhp=$u['hp']; $ugang=("SELECT COUNT('gang') FROM users WHERE userid=$get"); $megang=("SELECT COUNT('gang') FROM users WHERE userid=$userid"); $mpstr=$me['strength']*$mprimary*$megang/(floor($me['level'])/10); $upstr=$u['strength']*$uprimary*ugang/(floor($me['level'])/10); $msstr=$me['strength']*$msecondary*$megang/(floor($me['level'])/10); $usstr=$u['strength']*$usecondary*$ugang/(floor($me['level'])/10); $mdef=$me['def']*$megang*marmor/(floor($me['level'])/10); $udef=$u['def']*$ugang*$uarmor/(floor($me['level'])/10); $wait=$u['agi']-$me['agi']; $mypdamage=$mpstr-$udef; $urpdamage=$upstr-$mdef; $mysdamage=$msstr-$udef; $ursdamage=$usstr-$mdef; $mylife=rand(1,(floor($mehp/2))); $ulife=rand(1,(floor($uhp/2))); $myslife=rand(1,(floor($mehp/4))); $uslife=rand(1,(floor($uhp/4))); $exp=floor($u['level']-$me['level']*10); if($exp<1){$exp=20;} $lexp=floor($u['level']-$me['level']*10*1.5); if($exp<1){$exp=25;} if($lexp<1){$lexp=25;} //end variables// if($me['userid']==$u['userid']){mysql_query("UPDATE users SET hp=0, hospital=20, hospreason='committed suicide' WHERE userid=$userid");} die("<font size='4' color='red'>It wasn't very smart to try to kill yourself but you succeded!</font>");} if($me['level']-$u['level']>20){die("Quit trying to be a bully![url='index.php']GO HOME![/url]");} if($u['level']<10 && $me['level']>10){die("Come on give the little guy a chance!![url='index.php']GO HOME![/url]");} if($me['gang'] > 0 && $me['gang'] == $u['gang']){ die("Hey jerk watch it I am in your gang[url='index.php']GO AWAY[/url]");} if($u['userid']==1){die("You are no where near strong enough to beat God, try it again and you will be smacked down like never before!");} if($me['energy']<$me['maxenergy']/10){die("You must have at least 10% of your energy to attack![url='index.php']GO HOME![/url]");} if($mehp<10){die("You do not have enough Health to fight! [url='hospital.php']Go to hospital and heal[/url] or [url='index.php']Go Home[/url]");} if($uhp<10 && $u['gender']==male){die("Why are you try to kick a man while he's down! You are ruthless!");} if($uhp<10 && $u['gender']==female){die("Why are you try to kick a girl while she's down! You are ruthless!");} //end ifs run attack// print"You see {$u['username']} and decide they have lived long enough! it is time to get that ass! for your level with your primary weapon you have an attack strength of $mpstr , with your secondary weapon you have an attack strength of $msstr , and for your level your defense is $mdef"; if($wait>0){ if($mypdamage>0){ mysql_query("UPDATE `users` SET `hp`=hp-$ulife WHERE userid=$get"); print"You caused $mypdamage damage, using your primary weapon, to {$u['username']}with that hit and taking <font color='green'>$ulife</font> away from their health!"; mysql_query("UPDATE `users` SET `hp`=hp-$mylife WHERE userid=$userid"); print"{$u['username']} took a shot at you and hit you with $urpdamage using their primary weapon you lost <font color='red'>$mylife</font> with that hit!"; if($myhp>10 && $uhp<10){ if($u['money']>10){$umoney=rand(1,$u['money']/4);}else{$umoney=0;} mysql_query("UPDATE `users` SET `hospital`='20', hospreason='Beat down by {$me['username']}',hp=0, money=money-$umoney WHERE userid=$get"); mysql_query("UPDATE `users` SET `exp`=exp+$exp, money=money+$umoney WHERE userid=$userid"); event_add($u['userid'],"{$me['username']}, just whooped you and put you in the hospital!", $c); die("You destroyed {$u['username']} and sent them to the hospital! You gained $exp exp and stole $ $umoney!"); } elseif($myhp<10 && $uhp>10){ if($u['money']>10){$mymoney=rand(1,$me['money']/4);}else{$mymoney=0;} mysql_query("UPDATE `users` SET `hospital`='20',`money`=`money`+$mymoney, `exp`=exp-$lexp, hospreason='Lost to {$u['username']}'in a fight!',hp=0, exp=exp-$lexp WHERE userid=$userid"); mysql_query("UPDATE `users` SET money=money+$mymoney, exp=exp+$lexp WHERE userid=$get"); event_add($get,"{$me['username']} tried to beat you up but sadly got whooped You took $ $mymoney and gained $lexp exp!", $c); die("{$u['username']} destroyed you and you lost $lexp and $ $mymoney because you started the fight and sadly lost! }elseif($myhp<10 && $uhp<10){ event_add($get,"{$me['username']} tried to beat you up, you both sustained fatal injuries in the battle!", $c); event_add($userid,"You tried to beat up {$u['username']}, you both sustained fatal injuries in the battle!!", $c); mysql_query("UPDATE `users` SET `hospital`='20', hospreason='{$me['username']} and {$u['username']} died while {$me['username']} started the fight',hp=0 WHERE userid=$get"); mysql_query("UPDATE `users` SET `hospital`='20', hospreason='{$me['username']} and {$u['username']} died while {$me['username']} started the fight',hp=0 WHERE userid=$userid"); } if($myhp>10 && $uhp>10){ mysql_query("UPDATE `users` SET `hp`=hp-$ulife WHERE userid=$get"); print"You caused $mysdamage damage, using your secondary weapon, to {$u['username']}with that hit and taking <font color='green'>$uslife</font> away from their health!"; mysql_query("UPDATE `users` SET `hp`=hp-$mylife WHERE userid=$userid"); if($myhp>10 && $uhp<10){ if($u['money']>10){$umoney=rand(1,$u['money']/4);}else{$umoney=0;} mysql_query("UPDATE `users` SET `hospital`='20', hospreason='Beat down by {$me['username']}',hp=0, money=money-$umoney WHERE userid=$get"); mysql_query("UPDATE `users` SET `exp`=exp+$exp, money=money+$umoney WHERE userid=$userid"); event_add($u['userid'],"{$me['username']}, just whooped you and put you in the hospital!", $c); die("You destroyed {$u['username']} and sent them to the hospital! You gained $exp exp and stole $ $umoney!"); } elseif($myhp<10 && $uhp>10){ if($u['money']>10){$mymoney=rand(1,$me['money']/4);}else{$mymoney=0;} mysql_query("UPDATE `users` SET `hospital`='20',`money`=`money`+$mymoney, `exp`=exp-$lexp, hospreason='Lost to {$u['username']}'in a fight!',hp=0, exp=exp-$lexp WHERE userid=$userid"); mysql_query("UPDATE `users` SET money=money+$mymoney, exp=exp+$lexp WHERE userid=$get"); event_add($get,"{$me['username']} tried to beat you up but sadly got whooped You took $ $mymoney and gained $lexp exp!", $c); die("{$u['username']} destroyed you and you lost $lexp and $ $mymoney because you started the fight and sadly lost! }elseif($myhp<10 && $uhp<10){ event_add($get,"{$me['username']} tried to beat you up, you both sustained fatal injuries in the battle!", $c); event_add($userid,"You tried to beat up {$u['username']}, you both sustained fatal injuries in the battle!!", $c); mysql_query("UPDATE `users` SET `hospital`='20', hospreason='{$me['username']} and {$u['username']} died while {$me['username']} started the fight',hp=0 WHERE userid=$get"); mysql_query("UPDATE `users` SET `hospital`='20', hospreason='{$me['username']} and {$u['username']} died while {$me['username']} started the fight',hp=0 WHERE userid=$userid"); } print"{$u['username']} took a shot at you and hit you with $ursdamage using their secondary weapon, you lost <font color='red'>$myslife</font> with that hit!"; } } }
-
Re: Setting up games Wow that was some pretty good investigative reporting there! So all those people that say mccodes was never registered there for they do not own a copyright I guess they are now proven wrong! and all those mods up there that GodHand is selling, are in fact illegal for him to sell and the owners of the mods could go after him for money if they choose too!
-
[Mccodes v2]In battle!, new attack system[mccodes v2]
plintu replied to Kaien's topic in Requests & In Production
Re: [Mccodes v2]In battle!, new attack system[mccodes v2] i am giving you a -1 for non-compliance :D -
Re: 2147483647-troubles! Man I been so busy I forgot to come back here!!! The (int) was the bug I want to thank all of you guys so much I was ripping my hair out over here!!! I always used abs((int)) but I never researched it much I just figured it was absolute integer! did think about the int connection to the database! thank you soo much!
-
Re: 2147483647-troubles! <?php include "globals.php"; print "<h3>Bank</h3>"; if($ir['frozen'] >0) { die("Your bank account has been frozen. Check back in {$ir['frozen']} minutes."); } if($ir['bankmoney']>-1) { switch($_GET['action']) { case "deposit": deposit(); break; case "withdraw": withdraw(); break; default: index(); break; } } else { if(isset($_GET['buy'])) { if($ir['money']>20000) { print "Congratulations, you bought a bank account for \$20,000! [url='bank.php']Start using my account[/url]"; $db->query("UPDATE users SET money=money-20000,bankmoney=0 WHERE userid=$userid"); } else { print "You do not have enough money to open an account. [url='explore.php']Back to town...[/url]"; } } else { print "Open a bank account today, just \$50,000! [url='bank.php?buy']> Yes, sign me up![/url]"; } } function index() { global $db, $ir,$c,$userid,$h; print "\n[b]You currently have \${$ir['bankmoney']} in the bank.[/b] At the end of each day, your bank balance will go up by 2%. <table width='65%' cellspacing=1 class='table'> <tr> <td width='50%'>[b]Deposit Money[/b] It will cost you 15% of the money you deposit, rounded up. The maximum fee is \$3,000.<form action='bank.php?action=deposit' method='post'> Amount: <input type='text' name='deposit' value='{$ir['money']}' /> <input type='submit' value='Deposit' /></form></td> <td> [b]Withdraw Money[/b] There is no fee on withdrawals.<form action='bank.php?action=withdraw' method='post'> Amount: <input type='text' name='withdraw' value='{$ir['bankmoney']}' /> <input type='submit' value='Withdraw' /></form></td> </tr> </table>"; } function deposit() { global $db,$ir,$c,$userid,$h; $_POST['deposit']=abs((int) $_POST['deposit']); if($_POST['deposit'] > $ir['money']) { print "You do not have enough money to deposit this amount."; } else { $fee=ceil($_POST['deposit']*15/100); if($fee > 3000) { $fee=3000; } $gain=$_POST['deposit']-$fee; $ir['bankmoney']+=$gain; $db->query("UPDATE users SET bankmoney=bankmoney+$gain, money=money-{$_POST['deposit']} where userid=$userid"); print "You hand over \${$_POST['deposit']} to be deposited, after the fee is taken (\$$fee), \$$gain is added to your account. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } function withdraw() { global $db,$ir,$c,$userid,$h; $_POST['withdraw']=abs((int) $_POST['withdraw']); if($_POST['withdraw'] > $ir['bankmoney']) { print "You do not have enough banked money to withdraw this amount."; } else { $gain=$_POST['withdraw']; $ir['bankmoney']-=$gain; $db->query("UPDATE users SET bankmoney=bankmoney-$gain, money=money+$gain where userid=$userid"); print "You ask to withdraw $gain, the banking lady grudgingly hands it over. [b]You now have \${$ir['bankmoney']} in the bank.[/b] [url='bank.php']> Back[/url]"; } } $h->endpage(); ?>
-
Ok I already know about big int and int! when my users try to bank money it always prevents them from banking more than 2147483647! I already converted money, bankmoney, and banktransferlogs to bigint(20) and still same problem, I have a basic banking script and it calls for only bankmoney and money! What do you guys think could be the problem? this is driving me nuts! here is the script incase someone wants to look at that:
-
Flash Slot Machine [$50] Designed to fit your game!
plintu replied to plintu's topic in Paid Modifications
Re: Flash Slot Machine [$50] Designed to fit your game! I actually dropped the price down to $35 if you notice my earlier post! I only charge so much because I will have to do a lot of work to create each flash file and php file to fit each game individually, I have sold some and maybe someone that I sold them to can explain that I will work to get everything exactly how you want it to fit your game!!!! I give 110% support, If you want me to install it for you I would even do that! there is even a few people here who I have helped in the past and maybe they can let you know as well that I can be trusted to log on and setup whatever is needed! Or if you would prefer to do it all through msn I am willing to walk you through installation, I only say that because in some games they might not like as high of payouts or want things different and such and alot of things in the php files will need to be changed to put it exactly how you would want it! -
Re: Game Station mod to make the flash games send a a high score you would need to disassemble the swf file with something like "sothink disassembler" then edit the fla file to give it a button(add actionscript) at the end of the game to POST the score to a php file then have the php file record to the database.