21.07.2013, 11:48
You can't really use it there, because it requires playerid parameter.
Which is found in callbacks like OnPlayerConnect, OnPlayerRequestClass, OnPlayerSpawn and others.
Edit: If you have a loop then yes, you can do it under OnGameModeInit
Which is found in callbacks like OnPlayerConnect, OnPlayerRequestClass, OnPlayerSpawn and others.
Edit: If you have a loop then yes, you can do it under OnGameModeInit