22.07.2009, 19:15
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;
}