[HELP] How to Reset a next game mode like in the Mini Missions Server?
#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


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)