Raised This Month: $ Target: $400
 0% 

Help with a custom mod


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bad_Bud
Senior Member
Join Date: Oct 2006
Location: The internet
Old 01-10-2007 , 16:29   Re: Help with a custom mod
Reply With Quote #5

It would be much better if you used a "timestamp" instead of a set_task for counting down the time.

Assign a variable (I'll use X in this example) X to get_systime()+(However many seconds you want the room to be rented for), and whenever someone tries to rent/use a rented room, it checks to see if the rent time is up. If the rent time is up, it won't let the previous renter use the room, or it will let another user rent the room from that point on. It's better to compare seconds than to use a set_task.
Bad_Bud is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:26.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode