i am working on a online game there u can try to rob a bank... but right now you can do it all the time and i wont to have an wait time for etch time u try to rob an bank like if i do it now then i got to wait like 2 min to do it again and if i trying to do it againt it dosent happend enything before the wait time is over is this posibule??
sorry my bad english...
When they start the game, you could plant a cookie with the time they started. Check for the cookie and the value each time someone tries to start a new game.yes but that can peopla change... is it another way
I suppose you could put it in a session variable instead.
hmm i not so damn gooood in this so if you can axplane it a bit better?
When they start:
if(Session["IEndedMyLastGameAt"]!=null){if(DateTime.Now>Convert.ToDateTime(Session["IEndedMyLastGameAt"]).AddMinutes(2)) gameOn();else holdOn();}else{ holdOn();}private void holdOn(){ Response.Write("Hold your horses!");} When it's game over:
Session["IEndedMyLastGameAt"] = DateTime.Now;
oki tnx all but i found a sulution i just label1.text = int(rnd * 10) and if label1.text = 8 then ok
oki tnx all but i found a sulution i just label1.text = int(rnd * 10) and if label1.text = 8 then ok elese wait
0 comments:
Post a Comment