Uridium Posted March 10, 2009 Posted March 10, 2009 This will stop your users from Refreshing pages or Opening new pages when they are in a fight... add this near the bottom of your attack.php before the $h->endpage(); You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. If a page is Refreshed they will be back straight into the fight with their opponent. Quote
Dominator Posted March 10, 2009 Posted March 10, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight nice mod +1 :-) Quote
redsnake420 Posted March 10, 2009 Posted March 10, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight thanks illusions but when i added this exactly how you said to the refresh part works but i can still leave the fight by clicking on a link to a different page Quote
Uridium Posted March 10, 2009 Author Posted March 10, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight Im assuming your game from the attack.php shows the header and mainmenu You can defeat this by opening globals.php change header.php to header2.php also change the file globals to globals2.php in your attack.php change include "globals.php"; to include "globals2.php"; open header.php and remove any parts that will display mainmenu or the players stats links and rename file header2.php goto viewuser.php and rename attack.php to attack2.php Your users dont have any links to click on now. Quote
Dominator Posted March 11, 2009 Posted March 11, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight or if u cba doing that lol add the mod that makes users lose all there exp when they walk away from a fight that should teach em lol Quote
redsnake420 Posted March 11, 2009 Posted March 11, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight its alright i already have my menu go away when attacking i still gave you a +1 cause it is a great addon for games Quote
03laceys Posted March 24, 2009 Posted March 24, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight Tried going about this adding it to events with no joy, anyone wish to put some input to help me on my way? Quote
Vali Posted March 25, 2009 Posted March 25, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight You should redirect (302) the user after each form post. That way, the post does the "attack", then it redirects to the results page. If the user refreshes, they will just refresh the results page (so they can refresh all they want) Quote
Eruondo Posted April 3, 2009 Posted April 3, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight I'm sorry, but this does not work for me. The message just pops up under the rest of the attack screen. Any ideas? Quote
AlabamaHit Posted April 3, 2009 Posted April 3, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight what happends if they are over level 100? Quote
DELETE ME NOW! Posted April 3, 2009 Posted April 3, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight Yeah i just looked at that lol here lol, $r['userid'] < 100 Quote
Wickidnezz Posted May 25, 2009 Posted May 25, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight eh anyway of making it so users dont see "Do Not Try Refreshing Pages" Quote
Uridium Posted May 25, 2009 Author Posted May 25, 2009 Re: [MCCODES V2] Stop Users Refreshing attack pages / Leaving Fight die ("Continue Fight"); 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.