Quote:
Originally Posted by JJB562
Try using this:
Under OnGameModeInIt
pawn Код:
SetTimer("Weather", 5000, true);
This will create a timer, so the weather you want will be set every 5 seconds.
Anywhere In Your Script:
pawn Код:
forward Weather(); public Weather() { for(new i = 0; i < MAX_PLAYERS; i++) { SetPlayerWeather(i, 8); } return 1; }
This will make it so every player will get the same weather, every time the timer is called.
|
Why do you have to loop? Just do SetWeather and it's fine