I am gonna cry...:P
#7

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
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);
     SendRconCommand(mapstring);
     return 1;
}
OR:
pawn Код:
public LoadMap()
{
     new mapstring[50];
     format(mapstring,sizeof(mapstring),"loadfs %s",MyMaps[randmap][]);
     SendRconCommand(mapstring);
     return 1;
}
This aint tested, but should work on this kind of concept!
Inside public you forgot GMX...And to unload the last FS becouse inside of FS it will need to add pos for Spawn and What ever he will do..
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: 1 Guest(s)