17.02.2014, 12:28
On a timer or OnPlayerUpdate, depends what you want the check for.
Timer gets called every time you call it and you control the time, OnPlayerUpdate on the other hand gets called around 25 times per second to every player.
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/OnPlayerUpdate
Timer gets called every time you call it and you control the time, OnPlayerUpdate on the other hand gets called around 25 times per second to every player.
https://sampwiki.blast.hk/wiki/SetTimerEx
https://sampwiki.blast.hk/wiki/SetTimer
https://sampwiki.blast.hk/wiki/OnPlayerUpdate