[HELP] How to Reset a next game mode like in the Mini Missions Server?
#1

Hello, My problem is How to Reset a next game mode like in the Mini Missions Server..
Reply
#2

joining the question
Reply
#3

Quote:
Originally Posted by Geekzor
joining the question
What you mean?
Reply
#4

Quote:
Originally Posted by [WsR
RyDeR ]
Quote:
Originally Posted by Geekzor
joining the question
What you mean?
He means he wants to know as well.
Reply
#5

http://forum.sa-mp.com/index.php?top...6472#msg696472
Reply
#6

Quote:
Originally Posted by еddy
Thank you but how to use it with random game modes? Example: There are 4 gamemodes I want they come random how do that?
Reply
#7

pawn Код:
#include <a_samp>

new GameModeNames[][10] =
{
{"GameMode1"},
{"GameMode2"}
};

public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/changemode", true) == 0)
  {
    new randommode = random(sizeof(GameModeNames));
    new string[128];
    format(string, sizeof(string), "changemode %s", GameModeNames[randommode]);
    SendRconCommand(string);
    return 1;
  }
  return 0;
}
Reply
#8

Quote:
Originally Posted by еddy
pawn Код:
#include <a_samp>

new GameModeNames[][10] =
{
{"GameMode1"},
{"GameMode2"}
};

public OnPlayerCommandText(playerid, cmdtext[])
{
  if(strcmp(cmdtext, "/changemode", true) == 0)
  {
    new randommode = random(sizeof(GameModeNames));
    new string[128];
    format(string, sizeof(string), "changemode %s", GameModeNames[randommode]);
    SendRconCommand(string);
    return 1;
  }
  return 0;
}
Thank you this really helped
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)