SA-MP Forums Archive
How do I make a random rcon command.. - 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: How do I make a random rcon command.. (/showthread.php?tid=147350)



How do I make a random rcon command.. - Apply - 11.05.2010

I wanna make an automated random rcon command every 15 minutes, lets say i have 3 commands of minigames, which can be used only if im logged in to rcon and use these commands, i wanna make it so the server will activate randomly every 15 minutes one of the commands, Thanks!


Re: How do I make a random rcon command.. - Zh3r0 - 11.05.2010

Use a timer, use random(max), and SendRconCommand(" command ");


Re: How do I make a random rcon command.. - Apply - 11.05.2010

Thanks dude, can you give me an example please?
can you explain a little more please?


Re: How do I make a random rcon command.. - Apply - 11.05.2010

Can Anyone help me?


Re: How do I make a random rcon command.. - Zh3r0 - 11.05.2010

Ugh...
On top:
pawn Код:
new RadomMiniGame;
pawn Код:
public OnGameModeInit()
{
SetTimer("Function",15*60*1000,1)
return 1;
}
This
pawn Код:
public Function()
{
SendRconCommand("/CMD");
}
It's just and example, you it's up to you to mod/edit do whatever you want.


Re: How do I make a random rcon command.. - Apply - 11.05.2010

Well, i cant understand much from ur explanation everything turns out with errors..


Re: How do I make a random rcon command.. - Apply - 11.05.2010

Bump, can anyone explain better please?


Re: How do I make a random rcon command.. - Zh3r0 - 11.05.2010

Quote:
Originally Posted by Apply
Well, i cant understand much from ur explanation everything turns out with errors..
I actually gave an example,now it's up ti the scripter to make it well..


Re: How do I make a random rcon command.. - Apply - 11.05.2010

dude im not as good as you, cant you give an example like-
new blabla{
{/mstart 30000},
{/bstart 30000}};
how do i do that, can you give a full example?


Re: How do I make a random rcon command.. - oncedead - 11.05.2010

If you want someone to script it FOR you, go to the script request thread this section is for help not hurr durr I can't understand you giving me all this halp wil u do for me!!!