is this possible?
#1

hey!
ive just been into some mini mission servers and i saw they change into a random GM each time they have a restart , is this possible? or do they just write all of that in one GM?
thanks@!
Reply
#2

possible...

newrand gm

and put like 12gm's in 1 rather than all of the different ones in a line at server.cfg
Reply
#3

new gm = random(1,5)
SendRconCommand("gamemode %d",gm);

Should get you the idea of were to start, im pretty sure that dosn't work, but nvm ull get the idea!
Reply
#4

pawn Код:
new GMs[][32] = {
  {"lvdm"},
  {"grandlarc"},
  {"rivershell"}
};

stock LoadRandomGm()
{
  new string[43];
  format(string, sizeof string, "changemode %s", GMs[random(sizeof GMs)]);
  SendRconCommand(string);
}
Might get some errors at the format(string, bla) crap, but something like that should do the trick.

Place all your GMs in a variable and random them.
Reply
#5

ill try that^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)