25.04.2013, 16:44
#define CHANGE_INTERVAL 15*60000 //change this to the amount of minutes to trigger the map change, change the first number (time in minutes)
This is not 15 minutes, timers are bugged read here.
https://sampforum.blast.hk/showthread.php?tid=289675
Do it like this....
Also really bad idea to dump all your map code into that function it's messy and will cause the function to potentially extend for thousands of lines depending on how many maps there is I would make includes then call the map functions inside of them which is a lot easier to organize for example.
Easier to read, easier to edit, easier to keep organized don't you think?
This is not 15 minutes, timers are bugged read here.
https://sampforum.blast.hk/showthread.php?tid=289675
pawn Code:
if(fase == 0)
{
}
if(fase == 1)
{
}
pawn Code:
switch(fase)
{
case 0: { }
case 1: { }
}
pawn Code:
#include <maps\mymap1>
#include <maps\mymap2>
case 0: { LoadMyMap1(); }
case 1: { LoadMyMap2(); }