SA-MP Forums Archive
[Q] Custom Rcon command? - 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: [Q] Custom Rcon command? (/showthread.php?tid=370179)



[Q] Custom Rcon command? - scott1 - 19.08.2012

Hi all,

I think there is one way to send custom rcon command,

in game use /rcon CUSTOMCMD

but, what about out of game? Like in console? Or with an php script ( Api script )

is it possible to send custom cmd?

I test:

put into my gamemode

Код:
public OnRconCommand(cmd[])
{
    printf("You typed %s!",cmd);
	return 1;
}
but when i type something in to the console, i don't get anything.

I would like to make an exclusive system with my website, and i need a way to contact my server by my website.

I don't want use SQL-timer system, because it will use lot of ressource.

Thank you !

Max


Re: [Q] Custom Rcon command? - Killer#Mummy - 19.08.2012

As far as I know, custom rcon commands are working, if you put OnRconCommand in filterscript. It won't work in gamemode.


Re : [Q] Custom Rcon command? - scott1 - 19.08.2012

Damm,

thank you,

i forgot the "note" on the wiki ^^

Max