Jump to content
MakeWebGames

BreakingLight

Members
  • Posts

    193
  • Joined

  • Last visited

Everything posted by BreakingLight

  1. I know alot of you have Many exploits in your attack.php like attack while in the hosp jail ect ect.Well here is how to fix it. In attack.php finf //get player data $youdata=$ir; $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}",$c); $odata=mysql_fetch_array($q); if($odata['hp'] == 1) { print "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; }   Under it add else if ($ir['jail'] > 0) { mysql_query("UPDATE users SET attacking=0 where userid=$userid", $c); print "You are in Jail, You cannot attack. [url='index.php']> Back [/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; } This makes it so a user can not attack from jail   else if ($ir['hospital'] > 0) { mysql_query("UPDATE users SET attacking=0 where userid=$userid", $c); print "You are in the Hospital, You cannot attack. [url='index.php']> Back [/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; } Users can not attack from hospital   else if(!$ir['hospital'] and $odata['hospital']) { mysql_query("UPDATE users SET attacking=0 where userid=$userid", $c); print "This player is in the Hospital. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; } No attacking people in hospital   else if(!$ir['fedjail'] and $odata['fedjail']) { mysql_query("UPDATE users SET attacking=0 where userid=$userid", $c); print "This player is in Federal Jail. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; No attacking people in fed jail   else if(!$ir['jail'] and $odata['jail']) { mysql_query("UPDATE users SET attacking=0 where userid=$userid", $c); print "This player is in Jail. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; } No attacking people in jail   if($_GET['nextstep'] > 101) { print"Stalemate! [url='index.php']> Back[/url]"; $h->endpage(); exit; } Stalemate at 100 round Just add them in your attack.php file under what i posted at the top any questions feel free to ask. :-)
  2. Re: Stop Attack Refreshing Im gonna post some more blockers in another thread i just got to working on my attack.php today so move to the other thread.:P
  3. Re: Stop Attack Refreshing lol yeah thanks man
  4. Re: Stop Attack Refreshing +1 for helping out.:P
  5. Re: Stop Attack Refreshing hmm thats true i didnt think of that.But then again i just did it like 10 min ago.Thanks
  6. Re: Stop Attack Refreshing well however you feel you can just edit it.Just putting it out there for some use.
  7. Its easy o do but for those who are still learning here it is. Fint This In Attack.php //get player data $youdata=$ir; $q=mysql_query("SELECT u.*,us.* FROM users u LEFT JOIN userstats us ON u.userid=us.userid WHERE u.userid={$_GET['ID']}",$c); $odata=mysql_fetch_array($q); if($odata['hp'] == 1) { print "This player is unconscious. [url='index.php']> Back[/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; }   Underneath it Add if($ir['hp'] == 0) { mysql_query("UPDATE users SET hospital=300,hospreason='Tried to run from {$odata['username']}' where userid=$userid", $c); print "No Refreshing [url='index.php']> Back [/url]"; $h->endpage(); $_SESSION['attacking']=0; exit; }   Then save it and your done.That way when a user has 0 hp it gives off that message.And as a punishment it sets the user in the hospital for 300 minutes for the reason tried to run from user name.Pretty simple hope this helps out some
  8. Re: voting.php Pimped Out (Free) i dont dance on the street corner anymore.They said i had to stop.So now i dance around elementary schools
  9. Re: voting.php Pimped Out (Free)   oh the pain. :cry:
  10. Re: voting.php Pimped Out (Free)   Seany i thought i was your love :(
  11. Re: HEP QUICK ITS EASY (FoR YOU) your correct go to your database and under phpmyadmin you will see 5 little boxes click the one in the middle has "SQL" written on it a small window will pop open put those in there and click go and it is edited.Easy as that
  12. Re: jail/hosp shoutbox   In that i dont think i ever asked got you to do it now did i? :wink: :-P
  13. Re: Crime success exp help Well i dont have a MC Code 2 game but im just thinking of the top of my head.Couldent you Base the % chance of them busting out of jail on sumin else like Agility,or make the % Insane.I unno its 7:30 am im not fully functional yet.
  14. Re: jail/hosp shoutbox yeah it works good but i am not gonna stay with it.Nothing against Seanybob.But whats to stop people from psting adverts to other games.Unless there is something i have overlooked.I dont see an admin function to clear this.If i was to post www.somegamename.com right after the day cron passes it would be there till next day if i didnty change the cron.got any ideas on how to prevent this?Cause i do like the feature
  15. Re: Question about a IPN system UCC seems to be pretty good at IPN systems may ask him.
  16. Re: Question about a IPN system ah i see how it works now thank you.Now i need to get one.:P
  17. Re: Question about a IPN system Hmm so the system just goes to paypal and when the money has been donated it credits it to the User ID that it logs in paypal?
  18. Re: Question about a IPN system No UCC was right,but i really wanna know how it works.And thanks for the responce
  19. Ok in my game i do a Buy One Get One Free every so often.But my question is does a IPN system allow you to do that.Im sorry i havent used one befour nor do i know how.I know it has to do sumin with paypal corrisponding to the game itself.But how does this work could someone explain.Thanks
  20. Re: Creating cities in ver 2 hmm V2 is sounding more and more less interesting
  21. Free Jail Features V1.00000000 Relesed! lol nah ill take forever.i gotta go to work in a little bit.
  22. Free Jail Features V1.00000000 Relesed! Its looking great man.I have edited mine a little bit but if i can get all of the stuff working ill post it up here.
  23. Free Jail Features V1.00000000 Relesed! Ok well things i noticed while useing it.It works awsome man,but if you were to type yourgamename.com/bust?ID=3 even if that user isnt in jail it will attempt to bust it out.lol.Same thing with Bail.But like i said good mod man
  24. Free Jail Features V1.00000000 Relesed! Well i wanted to change this so for some people that dont know how this is to change the brave used to bust some one out with.(Real Simple) $qq=mysql_query("SELECT * FROM users WHERE userid={$_GET['ID']}",$c); $r=mysql_fetch_array($qq); $bravecost=$r['level']*1   The Last line there (Line 22) All you have to do is replace $r['level']*1 with something like this   $bravecost=30;   Like i said really easy but really helpful[/code]
  25. Free Jail Features V1.00000000 Relesed! lol i cant believe i missed that
×
×
  • Create New...