05.06.2011, 22:12
I need some advices. For example: I have a minigame in my server. When player joins it, variable stores his info, let's call it InMinigame. So, I want to know, whitch way is better:
1) Have timer, whitch were started on gamemode starts, has loop throught all players, checks is player in minigame and doe's some code.
2) Use SetTimerEx, and do some code for that player, while he is in minigame.
I am a little confused about it, because if I'll use first methot, I'll have timer whitch runs everytime and checks all connected players, and if I'll use second - there will be as much timers started as players joined in minigame ( fail english
).
1) Have timer, whitch were started on gamemode starts, has loop throught all players, checks is player in minigame and doe's some code.
2) Use SetTimerEx, and do some code for that player, while he is in minigame.
I am a little confused about it, because if I'll use first methot, I'll have timer whitch runs everytime and checks all connected players, and if I'll use second - there will be as much timers started as players joined in minigame ( fail english
