Need some Tips about " SendRconCommand("changemode x-x-x"); "
#1

Hello,
I need some tips about SendRconCommand("changemode x-x-x");, I want some tips or want to know is this possible to changemode randomly from gamemodes Folder. Suppose, I have 20+ Gamemodes in gamemodes folder and i don't want to run them in sequence, i want them to change randomly.

is this possible to do it with SendRconCommand("changemode x-x-x"); ? If i add SendRconCommand in every gamemode to change so it will select in sequence. I think you understand what i'm trying to say.
Reply
#2

-REMOVED-

Sorry I confused
Reply
#3

Tell me if you got any idea.
Reply
#4

Create & Use Timer and Remember to set the false to true so it will keep Repeating.

So Send Rcon Command One by One when Timer getting finished.
Reply
#5

Not one by one. I want to select it randomly NOT in sequence.
Reply
#6

If is randomly there is a big chance to load the same gamemode again. I have an idea with MySQL to save last loaded gamemode and this will prevent it from loading it for one time. I think you can understand?
Reply
#7

You could try naming your gamemodes: Game-1, Game-2, Game-3 etc.
Then use the random function to select the new mode.
Reply
#8

yeah. i want to know about the random functions. and @bgedition i am suck with MySQL and it will take much time for me to learn atm.
Reply
#9

Quote:
Originally Posted by NGEN123
Посмотреть сообщение
yeah. i want to know about the random functions. and @bgedition i am suck with MySQL and it will take much time for me to learn atm.
I would suggest stuff with the same name but numbers, then on a timer do this:
PHP код:
new gamemode[50];
format(gamemodesizeof(gamemode), "changemode namehere-%d"random(maxnumhere));
SendRCONCommand(gamemode); 
Something like that.
Reply
#10

not possible with name instead of numbers? cause there are many gamemodes like racing, stealing, bombing gamemodes etc.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)