Game time?
#1

How can I Make it so that lets say the 24/7 store is closed from a certain game time to a certain game time?


So lets say 6 - 12?


Reply
#2

And then...?
Reply
#3

Quote:
Originally Posted by SAWC™
And then...?
So basically, I'm trying to make it so a store will be open from a certain time to a certain time. And closed from a certain time to a certain time.
Reply
#4

Quote:
Originally Posted by MWF2
Quote:
Originally Posted by SAWC™
And then...?
So basically, I'm trying to make it so a store will be open from a certain time to a certain time. And closed from a certain time to a certain time.
Use a timer to disableinteriorexits (somethinglikethat)
Reply
#5

Quote:
Originally Posted by luigifan9
Quote:
Originally Posted by MWF2
Quote:
Originally Posted by SAWC™
And then...?
So basically, I'm trying to make it so a store will be open from a certain time to a certain time. And closed from a certain time to a certain time.
Use a timer to disableinteriorexits (somethinglikethat)
I'm sorry, I should be more clear lol.


I'm trying to make my bank open from say 3:00 to 6:00 and closed if not in between those times. The checkpoint should display "the bank is closed right now come back later" If i disabled interior exits, it would disable every stores enter/exit.
Reply
#6

Quote:
Originally Posted by Seif_
Use a timer or, if you're using game time, use gettime. Though I would just recommend a timer to save the hassle.
So basically create a fresh global variable that's set to 1 by default, which means the bank is open. Then when it's closed, set it to 0 and set a timer that will set it back to 1 in 3 hours or whatever you want.
Lol, when you say it like that i feels like it's impossible LOL


I'm trying to use the game time clock at the top right. So how would i check to see what time it is on the clock?
Reply
#7

Well that clock doesn't work by default. You would have to have a script somewhere powering it that would have the time of it.
Reply
#8

Quote:
Originally Posted by Baked-Banana
Well that clock doesn't work by default. You would have to have a script somewhere powering it that would have the time of it.
It does work by default doesn't it?

TogglePlayerClock(playerid, 1); is what i have in my script. Only thing related to the clock.


Can someone show me How i may check the time, I can do the closed and open part.
Reply
#9

Oh. TogglePlayerClock makes the clock show up and work but the time is not synced up for players. https://sampwiki.blast.hk/wiki/TogglePlayerClock I thought it didn't work by default because I had always used a script to set the time.
Reply
#10

Quote:
Originally Posted by Baked-Banana
Oh. TogglePlayerClock makes the clock show up and work but the time is not synced up for players. https://sampwiki.blast.hk/wiki/TogglePlayerClock I thought it didn't work by default because I had always used a script to set the time.
Can you supply a link to me for the time? So i can fix it lol..

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)