NarutoPRG.com Posted August 10, 2010 Posted August 10, 2010 Hello, I got asked by a mate to make a little update were the users have to wait 2 minutes to do another crime if they successfully do that crime. Adding this in PHPMYADMIN: [mysql]ALTER TABLE `users` ADD `crimeWAIT` int(11) not null default '0';[/mysql] Replace your criminal.php with this: if you want You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Open docrime.php and add these in: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Finally open your cron_minute.php and add this: You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Well that's all. Enjoy Regards, Rasheed Saeed Quote
MrAnthony Posted August 11, 2010 Posted August 11, 2010 Nice update, I wouldn't use it though >.< Reason being: Members might get bored of waiting and lose there motive to stay and play the game. ( thats what i think anyway >.< ) Quote
NarutoPRG.com Posted August 11, 2010 Author Posted August 11, 2010 I think it what everyone thinks. Lol. Even me. :P Quote
Aurora078 Posted August 11, 2010 Posted August 11, 2010 Nice update, I wouldn't use it though >.< Reason being: Members might get bored of waiting and lose there motive to stay and play the game. ( thats what i think anyway >.< ) I agree. I mean, theres already a good 5 minutes before your brave/w/e in the game to do crimes replenishes, but now we would have to wait im between crimes? Not good :/ Quote
CJ - Twitch Posted August 11, 2010 Posted August 11, 2010 Can't you use sessions to do this? (I dunno) Quote
Jordan Palmer Posted August 11, 2010 Posted August 11, 2010 Suggestions Don't do it after every single crime, This will most probably lose any game members, If you're gunna use it, Calculate the crimes they've passed and then after so many make them Waite Have different times for different brave, Like if brave is 150, maybe make them waite 3min if below that make them waite 30seconds or so, This'll make things, Or something like that Use time-stamping instead off crons, Much more accurate and efficient@CJ; Yes you most probably could use sessions to do this and it'd probably be a better way Quote
Djkanna Posted August 11, 2010 Posted August 11, 2010 It's still a nice enough update even though it may not be suitable for a game. Quote
NarutoPRG.com Posted August 12, 2010 Author Posted August 12, 2010 @ CJ: I don't know what SESSION really does. Sorry.. @ Jordan: I totally Agree with you mate. But as it's what my mate requested(after every single succeeded crime), they have to wait 2 minutes. I wouldn't mind re-coding they way you said. It sounds a lot better and makes more seance. Plus I think some people might actually use it. I'll talk to you on MSN about time-stamp. :) Quote
rulerofzu Posted August 12, 2010 Posted August 12, 2010 After say every 100 crimes reset the captcha. So they have to enter the code to carry on doing crimes. Quote
sniko Posted August 13, 2010 Posted August 13, 2010 Looking good, but don't do it with all crimes, maybe add in staff panel the waiting time for each crime, so its different. Also, with whiles i prefer doing You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. as it is easier to debug and read and you can clearly see its ending the while Quote
Djkanna Posted August 13, 2010 Posted August 13, 2010 Sniko please tell me you only use that when declaring HTML outside of PHP? IE You're unable to view this code. Viewing code within this forum requires registration, you can register here for free. Quote
NarutoPRG.com Posted August 13, 2010 Author Posted August 13, 2010 Ty for posting. Right now I'm thinking of more updates to the crime system. I haven't actually seem an update on this, so It may be something for me to work on. :) 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.