I am gonna cry...:P
#2

OK, i got one example for you, dont know will it work nor do you like it!

Create something like this:
pawn Код:
new MyMaps[][] =
{
     {"YourMap1"},
     {"YourMap2"}
};
Also, you will need random map looping!
pawn Код:
new randmap = random(sizeof(MyMaps));
Then create a timer!
pawn Код:
forward LoadMap();
SetTimer("LoadMap",600000,true);
Lets create map loading!
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;
}
OR:
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;
}
This aint tested, but should work on this kind of concept!
Reply


Messages In This Thread
I am gonna cry...:P - by vassilis - 31.01.2012, 17:02
Re: I am gonna cry...:P - by fiki574 - 31.01.2012, 17:11
Re: I am gonna cry...:P - by vassilis - 31.01.2012, 17:13
Re: I am gonna cry...:P - by fiki574 - 31.01.2012, 17:16
Re: I am gonna cry...:P - by jamesbond007 - 31.01.2012, 17:16
Re: I am gonna cry...:P - by fiki574 - 31.01.2012, 17:18
Re: I am gonna cry...:P - by SpiderWalk - 31.01.2012, 17:19
Re: I am gonna cry...:P - by vassilis - 31.01.2012, 17:20
Re: I am gonna cry...:P - by SpiderWalk - 31.01.2012, 17:21
Re: I am gonna cry...:P - by fiki574 - 31.01.2012, 17:23

Forum Jump:


Users browsing this thread: 4 Guest(s)