22.07.2009, 18:40
Hello, My problem is How to Reset a next game mode like in the Mini Missions Server..
Originally Posted by Geekzor
joining the question
|
Originally Posted by [WsR
RyDeR ]
Quote:
|
Originally Posted by еddy
|
#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;
}
Originally Posted by еddy
pawn Код:
|