Jump to content
MakeWebGames

topmorpg

Members
  • Posts

    265
  • Joined

  • Last visited

Everything posted by topmorpg

  1. Re: [v2]Attack Ban[v2] thanks for this.   im trying to mod in things that people have already done with v2..   Then I will be producing some as well for others.
  2. Re: How many lines of code do you have? yea scandir is for php5 http://www.php.net/manual/en/function.scandir.php
  3. Re: How many lines of code do you have? is this only for mc codes as scandir was not a valid function in my server for a different type of site i was testing it on.
  4. Re: [v2] Family's [$30] paid waiting for download link
  5. Re: Customisable Merit System ($15+) Paid waiting for download link..
  6. Re: Customisable Merit System ($15+) will purchase please send me a PM with details. TJ
  7. Re: Customisable Merit System ($15+)   my post...
  8. Re: Get your site free traffic! Parse error: syntax error, unexpected '=' in /home/bornmob/public_html/stumble.php on line 35   running v2
  9. Re: [v2] Family's [$30] ill buy a copy.. send me details killah
  10. Re: Customisable Merit System ($15+) removed for time being....
  11. Re: [v2]Assassin.php[v2]   read my above message in my recode. Its to far screwed up. I will need a day just to recode it alone. better just to do it from scratch.
  12. Re: [v2]Assassin.php[v2] Where to start. there is many holes in this post its unbelievable. I just spent the good part of the last 20 minutes working on it. and I think im better off to code it out myself and post it.   I've made a lot of headway on it however will not work entirely till its fully worked out and tested. Here it is.   <?php $menuhide=1;//added $atkpage=1;//added require "globals.php"; //this entire top part was copied in twice $_GET['ID'] == (int) $_GET['ID']; //added to get id if($_GET['ID'] && $_GET['PAID']) { $cost=$ir['level']*2500; if($_GET['ID']==$userid) { die("What Is The Point OF Assasinating Yourself?"); } if($_GET['PAID']!=$cost) { die("Bug Abusers Are Desperate"); } if($_GET['PAID']>$ir['money']) { die("Sorry, But You Cannot Afford An Assassin Right Now [url='index.php']Back[/url]"); } if($ir['brave']<5) { die("You don't have enough brave to do this."); } $chance=(int)(rand(86,100)); $hospital=(int)(rand(125,300)); if($chance<41) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Got Assassinated' WHERE userid={$_GET['ID']}",$c); event_add($ir['userid'],"You were assassinated and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Successfully Assassinated {$ir['username']}"; //added a ] bracket to fix and } } if($chance>40 && $chance<66) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Assassinated by {$ir['username']}.' WHERE userid={$_GET['ID']}",$c); event_add($ir['userid'],"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your target has been successfully hit, but he blabbed out your name to the target, smack him and fir him. Oh and, you better watch your back"; //had an extra " at the begining. } if($chance>65 && $chance<86) { $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5,hospital=$hospital,hospreason='Failed Assassination.' WHERE userid=$userid",$c); die("Your Assassin Gets Into The Base The Cops Find Him Your Assassin Was Re-Hired By {$ir['username']} and He Copps You On The Head"); //had to add } to statement and ( ) for die statement } if($chance>85) { $newhosp=$hospital-150; $fun=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE fedjail=0 ORDER BY RAND() LIMIT 1", $c); while($f=mysql_fetch_array($fun)) { $id=$f['userid']; $db->query("UPDATE users SET hospital=$newhosp,hospreason='Assassinated by {$ir['username']}.' WHERE userid=$id",$c); event_add($id,"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Is A Bit Blind Instead of hitting {$ir['username']}, they hit {$f['username']} But They Still Demand Pay"; } } } else if($_GET['ID']) { if($ir['brave']<5) { die("You don't have enough brave to do this yet.");//remvoed put in twice. } $cost=$ir['level']*2500; print "<center>You Call Up Assassins R Us and Tell Them You Want To Assassinate [b]{$ir['username']} They Agree But It Will Cost You $$cost To Assassinate Them Assassinations Aren't Always 100% Successful <form action='assassin.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Assassinate {$ir['username']}?'/></form>"; } //need to open back up a php argument. removed ? > $chance=(int)(rand(86,100)); $hospital=(int)(rand(125,300)); if($chance<41) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Got Assassinated' WHERE userid={$_GET['ID']}",$c); event_add($ir['userid'],"You were assassinated and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Successfully Assassinated {$ir['username']}"; //had to add ] closing bracket and } } if($chance>40 && $chance<66) { $db->query("UPDATE users SET hospital=$hospital,hospreason='Assassinated by {$ir['username']}.' WHERE userid={$_GET['ID']}",$c); event_add($ir['userid'],"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your target has been successfully hit {$ir['username']}, but he blabbed out that {$ir['username']} paid him to assasinate him, smack him and fire him. Oh and, you better watch your back"; } if($chance>65 && $chance<86) { $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5,hospital=$hospital,hospreason='Failed Assassination.' WHERE userid=$userid",$c); print"Your Assassin Gets Into The Base The Cops Find Him Your Assassin Was Re-Hired By {$ir['username']} and He Copps You On The Head"; //in line added } for the r username statement } if($chance>85) { $newhosp=$hospital-150; $fun=$db->query("SELECT u.*,g.* FROM users u LEFT JOIN gangs g ON g.gangID=u.gang WHERE fedjail=0 ORDER BY RAND() LIMIT 1", $c); while($f=mysql_fetch_array($fun)) { $id=$f['userid']; $db->query("UPDATE users SET hospital=$newhosp,hospreason='Assassinated by {$ir['username']}.' WHERE userid=$id",$c); event_add($id,"You were assassinated by {$ir['username']} and put into the hospital for $hospital minutes.",$c,'general'); $db->query("UPDATE users SET money=money-{$_GET['PAID']},brave=brave-5 WHERE userid=$userid",$c); print "Your Assassin Is A Bit Blind Instead of hitting {$ir['username']}, they hit {$f['username']} But They Still Demand Pay"; } } //} //remvoed else if($_GET['ID']) { if($ir['brave']<5) { die("You don't have enough brave to do this yet."); } $cost=$ir['level']*2500; print "<center>You Call Up Assassins R Us and Tell Them You Want To Assassinate [b]{$ir['username']} They Agree But It Will Cost You $$cost To Assassinate Them Assassinations Aren't Always 100% Successful <form action='assassin.php' method='get'> <input type='hidden' name='ID' value='{$_GET['ID']}' /> <input type='hidden' name='PAID' value='$cost' /> <input type='submit' value='Assassinate {$ir['username']}?'/></form>"; } ?>
  13. Re: $10 Discount for CE Members   the stolen buggy shit that I can name a few people are putting out there. yes.. Mine is debugged, built up more features, and comes with lifetime updates as they are released.
  14. http://forums.digitalpoint.com/showthread.php?p=7191657   I bought to verify as I have both mccodes versions and in fact he is sellign mccodes. TJ
  15. More then 30 pages and 8000 words later. We have setup an essential ebook that will help with this game script of ours. as well as more then 20 pages of ways to get back links, exposer, advertising and much more at $0.00 cost to you. This book sells for 10.00 Free with any mafia game script purchase.   This book for its information on back links, exposer and advertising for $0.00 could easily sell for more then 100.00 with all its valuable information it has.   Questions feel free to ask. Note: no where will you find all this information at this price all together in 1 place. We searched high and low and took into account our years of experience and put it into this book for you. TJ
  16. Re: $10 Discount for CE Members   Update wont be done for a little while. But when its complete it will be able to over write existing files and structure. I will keep everyone posted. TJ
  17. Re: $10 Discount for CE Members   The updated version im going to make most the settings that are manually done right now on setup eabled in the script to set in the admin panel.   TJ
  18. Re: $10 Discount for CE Members Should be able to find your item under products in the website. Any problems feel free to ask. v1.2 should be available soon with some fixes and updates as well.   and as always free of charge to previous buyers.   TJ
  19. Re: Multi accounts, less proxys. Learn to stop it here If you look above this dont ban based on if they are on proxy.   proxys are used by legit members as well as those looking to play more then 1 account. What your doing here is catching those trying more then 1 account. and able to ban them accounts as it logs a cookie and reports it to you
  20. Re: $10 Discount for CE Members   I have a quad processor server able to setup 8 vps units on it and have un mettered bandwith with it. I come recommended by Rapid VPS www.rapidvps.com for online game hosting. So i have a bunch (as many as needed) servers at my reach. Both capped band servers with 100/100 up/down band boxs. and unmettered 10/100   I can host just abotu anything within reason to anything that needs to be done. Largest server we have available is huge. I think it would run my space. lmao. Its about 1.2 mil /mo. then again thats the largest. we have many smaller packages shared, VPS, and Dedicated boxes and services available. TJ
  21. Re: $10 Discount for CE Members All should be responded to now. And damn that server cost.. Hell I would have gave you unlimited bandwidth on a server I have that Im barely using..
  22. Re: Decimals in Banks Example of floor() function <?php echo(floor(0.60) . " "); echo(floor(0.40) . " "); echo(floor(5) . " "); echo(floor(5.1) . " "); echo(floor(-5.1) . " "); echo(floor(-5.9)) ?>   Output 0 0 5 5 -6 -6   Also what type of data storage type are you using? decimal, bigint, text, etc...
  23. Re: Decimals in Banks     Round is good till the numbers get to high. Then they start not rounding dollars but rounding thousands and even hundred of thousands. Use something like floor($data) before inserting to your database. There are many methods for this. Just depends the use and outcome you want.
  24. Re: $10 Discount for CE Members   To answer some above.. Get in contact with me I will setup a login for you to view the admin panel as well. Promo code will not expire.   BTW: this is TJ
  25. This mod will have to be altered to your script. However shows the general elements to get what needs to be done, done! First I will say that in no way will you ever be able to fully stop multis, or proxys being ran on your site. Examples of some blocking proxys and banning them immediately is a bad idea. What about those that actually connect on proxy from air cards, business networks, aol, and yes a small 5% of net users still use dial up service. Port 80 and 8080 proxys will result in a nature that look like a personal connection rather then a proxy so cant be stopped. There are others but this serves as a example. Without further BS here is how you can stop multis in your site. In your login system before it forwards them to the next page to play have it set a cookie. Example: <?php if(($username) && ($password)){ $user = mysql_fetch_array(mysql_query("SELECT id,status,username FROM $tab[user] WHERE username='$username' AND password='$password';")); if($run-over-your-check-settings-here){}//then proceed to login below. elseif($user) { setcookie("name-of-cookie",strtolower(trim($user[2]))); //SET LOGGING COOKIE BY DEDICATED GAMING NETWORK.COM THEODORE GAUSHAS if(!$name-of-cookie){ setcookie("name-of-cookie",strtolower(trim($user[2]))); } //Here you can insert code to ban account that was tried to be logged into based on $username or the cookie that has previous username as well. } //send them to the next page after logging in now if successful. header("Location: page-after-login.php"); } ?>   This can be perfected on. However will help you against them un-wanted multi accounts. Also this can be tied to a logging system that if the cookie exists and someone try's to log in. You can have it log to a logging system and then you can manually take care of the accounts if you like. Soon I will be posting a ban ip from site that works from a database. as well as a logging system to log all actions in your site based on where you install it to log what they do, use, etc.. TJ
×
×
  • Create New...