17.06.2016, 03:09
Hey guys, I used to build both Server timers or player timers, but I need you to tell me what do you think is better
While scripting my jail CMD I thought what's better, PlayerTimer which will be called when the time ends
Example:
time = minutes in prison
time * 60000 = minutes in milliseconds
SetTimerEx("PrisonTimer", time * 60000, 0, "i", playerb);
or shall I use server timer:
OnGameModeInit:
SetTimer("PrisonTimer, 1000, 1);
Which will be called every second
or shall I use server timer per minute, not per second:
SetTimer("PrisonTimer, 60000, 1);
What's the best way ?
While scripting my jail CMD I thought what's better, PlayerTimer which will be called when the time ends
Example:
time = minutes in prison
time * 60000 = minutes in milliseconds
SetTimerEx("PrisonTimer", time * 60000, 0, "i", playerb);
or shall I use server timer:
OnGameModeInit:
SetTimer("PrisonTimer, 1000, 1);
Which will be called every second
or shall I use server timer per minute, not per second:
SetTimer("PrisonTimer, 60000, 1);
What's the best way ?