RCON Command
#1

I'm using a map loading system in which I load the maps by a RCON command, because the maps are filterscripts. I use the SendRconCommand in my script, however, I'd like the map to be in random order. Is it possible to random the loading of the maps?
Reply
#2

yes, using random
pawn Код:
new rndm = random(2);

switch(rndm)
{
    case 0: //load map
    case 1: //load map 2
}
Or, if you have a stock or something similar
pawn Код:
new rndm = random(2);

LoadMap(rndm);
Reply
#3

Thank you, I'll try to do that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)