Jump to content
MakeWebGames

Recommended Posts

Posted

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

Posted
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 :/

Posted

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

Posted

@ 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. :)

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...