Posts: 1,767
Threads: 124
Joined: Mar 2010
21.01.2014, 17:04
(
Последний раз редактировалось Riddick94; 21.01.2014 в 17:53.
)
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)
Posts: 400
Threads: 11
Joined: Jul 2011
Reputation:
0
What is you are trying to make work?
Posts: 1,767
Threads: 124
Joined: Mar 2010
Call rcon commands in samp-server.exe console. Works perfect as included as FS, so no need to show code.
Posts: 2,368
Threads: 27
Joined: Jun 2010
Reputation:
0
It works for me using inside gamemode.
Posts: 200
Threads: 39
Joined: Feb 2013
Reputation:
0
Are you all retarded or can't you read? It's about OnRconCommand in gamemode, not SendRconCommand!
Posts: 1,767
Threads: 124
Joined: Mar 2010
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?