Timer advice
#1

Hey there

Question one:
How should i handle the player timers? Now i have one main Sec-timer, and i use foreach to loop through connected players and call the 'PlayerTimer' function. Should i use per player timers instead?

Question two:
I'm trying to implement some of the main singleplayer features.
The first example is the clothing store. Example video
You can see the animation and the menu showing timing in accordance with the moving door object so i think i need a really fast repeating timer.
How should i create that? Should i create one main timer and use that for move the door object and handle the animation or should i create per player timers?

Thanks for your advice
Reply
#2

Hello,

1.) I'll refer to a great tutorial from ****** at this point, check it out: https://sampforum.blast.hk/showthread.php?tid=643553

2.) In theory, you could get a custom door object to move the way it does in SP. It's really impractical in reality, though. Have you tried just applying the animation and having the player walk through a door to see if the player actually collides with the door during the animation? In that case, you would not have to bother about the door's movement. It's really up to you to play around with this and see what might work and what not.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)