31.01.2012, 17:11
OK, i got one example for you, dont know will it work nor do you like it!
Create something like this:
Also, you will need random map looping!
Then create a timer!
Lets create map loading!
OR:
This aint tested, but should work on this kind of concept!
Create something like this:
pawn Код:
new MyMaps[][] =
{
{"YourMap1"},
{"YourMap2"}
};
pawn Код:
new randmap = random(sizeof(MyMaps));
pawn Код:
forward LoadMap();
SetTimer("LoadMap",600000,true);
pawn Код:
public LoadMap()
{
new mapstring[50];
format(mapstring,sizeof(mapstring),"loadfs %s",randmap); //not sure if its even correct, 40% to work good, use the example bellow
SendRconCommand(mapstring);
return 1;
}
pawn Код:
public LoadMap()
{
new mapstring[50];
format(mapstring,sizeof(mapstring),"loadfs %s",MyMaps[randmap][]); //more better and efficient way, works 100%
SendRconCommand(mapstring);
return 1;
}