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=489271)
OnRconCommand -
Riddick94 - 21.01.2014
https://sampwiki.blast.hk/wiki/OnRconCommand
Possible to make it work in GameModes as well? Or is there a fix for it (instead of including FS)
Re: OnRconCommand -
Smally - 21.01.2014
What is you are trying to make work?
Re: OnRconCommand -
Riddick94 - 21.01.2014
Call rcon commands in samp-server.exe console. Works perfect as included as FS, so no need to show code.
Re: OnRconCommand -
Patrik356b - 22.01.2014
Use this:
Код:
SendRconCommand("gmx");
// This is a scripted version of typing "/rcon gmx" in-game.
// GMX restarts the game mode
https://sampwiki.blast.hk/wiki/SendRconCommand
Re: OnRconCommand -
iZN - 22.01.2014
It works for me using inside gamemode.
Re: OnRconCommand -
IllidanS4 - 22.01.2014
Are you all retarded or can't you read? It's about OnRconCommand in gamemode, not SendRconCommand!
Re: OnRconCommand -
MP2 - 22.01.2014
Not sure if you're aware, but if you use the callback in a FS it then works in a GM. I have a fs called 'rconcmd' and always load it, and it allows me to use OnRconCommand in my GM.
This is the entire script:
pawn Код:
#include <a_samp>
public OnRconCommand(cmd[]) return 0;
Re: OnRconCommand -
Riddick94 - 22.01.2014
Quote:
Originally Posted by MP2
Not sure if you're aware, but if you use the callback in a FS it then works in a GM. I have a fs called 'rconcmd' and always load it, and it allows me to use OnRconCommand in my GM.
This is the entire script:
pawn Код:
#include <a_samp> public OnRconCommand(cmd[]) return 0;
|
Quote:
|
Originally Posted by Riddick94
[...]Or is there a fix for it (instead of including FS)
|
I wasn't aware of doing that.. but still, why do we have to do it?
Re: OnRconCommand -
MP2 - 22.01.2014
Because there's a bug.
Re: OnRconCommand -
Patrik356b - 24.01.2014
Quote:
Originally Posted by sprtik
Are you all retarded or can't you read? It's about OnRconCommand in gamemode, not SendRconCommand!
|
You shouldn't go insult people on the instant.
I thought the OP was using OnRconCommand in the gamemode to call the callback somewhere in his gamemode.