OnRconCommand
#1

Trying to use OnRconCommand, which only works in a filterscript to change map (So I don't need to be in game every time I want to change map. My mapchange function is in my game mode and *needs* to stay there.

How can I make an rcon command to carry out the map change function which is in the game mode?

Regards,
MR,Mr
Reply
#2

what do u mean with name change command?

pawn Код:
SendRconCommand("mapname YOUR_MAP_NAME");
This will change the map name appearing in the client.

Is that what you have requested?
Reply
#3

Nope, sorry I didn't make it clear, I mean switch map as in complete map change, not a map name change. I have a public function, running on my gamemode on a timer with a /nextmap command, I wanted to make this command accessible from rcon console without joining the server, that make sense?
Reply
#4

pawn Код:
CallRemoteFunction(/*...*/);
For all public and loaded FS's.
But i cant tell you if its possible to call it from the remote rcon console, sorry.
Reply
#5

Quote:
Originally Posted by BlackWolf120
Посмотреть сообщение
pawn Код:
CallRemoteFunction(/*...*/);
For all public and loaded FS's.
But i cant tell you if its possible to call it from the remote rcon console, sorry.
Awesome, this worked a treat! Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)