Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Snippet Showroom => Topic started by: MatheuS on October 14, 2013, 04:28:17 am
-
New's
new Wathers[] [] = {
1,2,5,4,5,6,7,8,9,10,11,12,13,14,15
};
Public's / Forward
forward WeatherChange();
public WatherChange()
{
new rand = random(sizeof(Wathers));
SetWaterLevel(Wathers[rand][1]);
return 1;
}
GameModeInit
SetTimer("WatherChange", 5000, 1); // Edit? 5000 to 16000... etc...
-
Timers timers...
-
Timers timers...
???
forward WeatherChange(); ._.
-
Timers timers...
???
forward WeatherChange(); ._.
It's not about forwarding public functions, It's about using timers as people usually do
-
What's the problem with using a timer here? Timers are not all bad. Besides, I don't see any reason to question the use of timer otherwise there won't be any way to 'change the water' other than using a command.
-
but also works well, what is your suggestion?
-
What's the problem with using a timer here? Timers are not all bad. Besides, I don't see any reason to question the use of timer otherwise there won't be any way to 'change the water' other than using a command.
Yes, this is what I wanted to suggest him. Using rcon or ig command would be better than using different timers for different functions/acts. My future server (if I with my lazy ass develop it) will have not more than 1 timer (to save the memory).
-
Using RCON would require manual intervention, and it's just impossible to have an admin sit there and change the water level at regular intervals 24/7. The use of timers here is correct.
See also: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1247.0
-
Using RCON would require manual intervention, and it's just impossible to have an admin sit there and change the water level at regular intervals 24/7. The use of timers here is correct.
See also: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1247.0
Anyway I'd better use command
-
Using RCON would require manual intervention, and it's just impossible to have an admin sit there and change the water level at regular intervals 24/7. The use of timers here is correct.
See also: http://vcmp.liberty-unleashed.co.uk/forum/index.php?topic=1247.0
Hmmm, Okay