OnRconCommand - 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)
+--- Thread: OnRconCommand (
/showthread.php?tid=309418)
OnRconCommand -
MR,Mr - 07.01.2012
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
Re: OnRconCommand -
BlackWolf120 - 07.01.2012
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?
Re: OnRconCommand -
MR,Mr - 07.01.2012
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?
Re: OnRconCommand -
BlackWolf120 - 07.01.2012
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.
Re: OnRconCommand -
MR,Mr - 07.01.2012
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