12.06.2011, 19:16
Did you even read the topic?
Ontopic: You can try setting the timer once a player gets in a vehicle (OnPlayerEnterVehicle or OnPlayerStateChange) and then starting the timer, But I am not sure if that will work. Doesn't require a loop either
Also, I'm not sure a loop works in OnGameModeInit, as there are probably no players at OnGameModeInit, you should try it the way above or putting the code under OnPlayerConnect.
Ontopic: You can try setting the timer once a player gets in a vehicle (OnPlayerEnterVehicle or OnPlayerStateChange) and then starting the timer, But I am not sure if that will work. Doesn't require a loop either
Also, I'm not sure a loop works in OnGameModeInit, as there are probably no players at OnGameModeInit, you should try it the way above or putting the code under OnPlayerConnect.