1

Topic: How to deal with the time loop?

Hi guys,
Do you know how to display a message several times at intervals of e.g. 1 second? I tried to use if(Server () -> Tick ()% 50 == 0), but when another person comes to the server, the message doubles.

2

Re: How to deal with the time loop?

looks like your code is evaluated for every player. try to put it somewhere independent of the amount of players.
the class CPlayer for example is instantiated for every player on the server and thus ticked for each.