How do I make a random rcon command..
#1

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!
Reply
#2

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

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

Can Anyone help me?
Reply
#5

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.
Reply
#6

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

Bump, can anyone explain better please?
Reply
#8

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..
Reply
#9

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?
Reply
#10

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!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)