More random than this
#1

How to make this random GMX code....more random?

Код:
switch(random(2))
   {
        case 0: SendRconCommand("changemode HotRoom");
        case 1: SendRconCommand("changemode TheWarehouse");
   }
Reply
#2

Elaborate please, what do you mean by more random?

You want to include more gamemodes or what precisely?
Reply
#3

I just wanna randomize more the code, like by random restarting for the first letter of the game name. Like (first we restart Test Game then Super Test Game)
Reply
#4

You mean this?


PHP код:
// Changemode
  
forward Changemode();
  public 
Changemode()
 {
  new var = 
random(2);
  switch (var)
  {
   case 
0SendRconCommand("editthis");
   case 
1SendRconCommand("editthis!");
 }


And this under public OnGameModeInit()

PHP код:
{
    new 
string[42];
    
SetTimer("Changemode",1000,2); 
Rep me if i helped you.
Reply
#5

Oh...


PHP код:
// Changemode
  
forward Changemode();
  public 
Changemode()
 {
  new var = 
random(3);
  switch (var)
  {
   case 
0SendRconCommand("editthis");
   case 
1SendRconCommand("editthis!");
   case 
2:SendRconCommand("editthis!");
 }

And this under public OnGameModeInit()

PHP код:
{
    new 
string[42];
    
SetTimer("Changemode",1000,2); 
Rep me if i helped you
Reply
#6

If you want to add more mods then edit this

new var = random(Number);

and

case number:SendRconCommand("editthis!");
Reply
#7

Quote:
Originally Posted by Face9000
Посмотреть сообщение
I just wanna randomize more the code, like by random restarting for the first letter of the game name. Like (first we restart Test Game then Super Test Game)
I still dont get anything, except that XBrianX's multiposts make absolutely no sense.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)