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