[HELP] How to Reset a next game mode like in the Mini Missions Server? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] How to Reset a next game mode like in the Mini Missions Server? (
/showthread.php?tid=87867)
[HELP] How to Reset a next game mode like in the Mini Missions Server? -
RyDeR` - 22.07.2009
Hello, My problem is How to Reset a next game mode like in the Mini Missions Server..
Re: How to Reset a next game mode like in the Mini Missions Server? -
Geekzor - 22.07.2009
joining the question
Re: How to Reset a next game mode like in the Mini Missions Server? -
RyDeR` - 22.07.2009
Quote:
Originally Posted by Geekzor
joining the question 
|
What you mean?
Re: How to Reset a next game mode like in the Mini Missions Server? -
Lewwy - 22.07.2009
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.
Re: [HELP] How to Reset a next game mode like in the Mini Missions Server? -
refshal - 22.07.2009
http://forum.sa-mp.com/index.php?top...6472#msg696472
Re: [HELP] How to Reset a next game mode like in the Mini Missions Server? -
RyDeR` - 22.07.2009
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?
Re: [HELP] How to Reset a next game mode like in the Mini Missions Server? -
refshal - 22.07.2009
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;
}
Re: [HELP] How to Reset a next game mode like in the Mini Missions Server? -
RyDeR` - 22.07.2009
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