OnRconCommand
#1

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

What is you are trying to make work?
Reply
#3

Call rcon commands in samp-server.exe console. Works perfect as included as FS, so no need to show code.
Reply
#4

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
Reply
#5

It works for me using inside gamemode.
Reply
#6

Are you all retarded or can't you read? It's about OnRconCommand in gamemode, not SendRconCommand!
Reply
#7

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;
Reply
#8

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

Because there's a bug.
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)