Editing Server RCON?
#8

@ Topic poster:

This is the best way without using zcmd or other shit.

pawn Код:
public OnRconCommand(cmd[])
{
    if(!strcmp(cmd,"Hello",true))
    {
        SendClientMessageToAll(0xFFFFFFAA,"SERVER: Hello Players!");
        print("You said 'Hello players'.");
        return 1;
    }
    return 0;
}
NOTE: /Rcon is not need to be used in the cmd string because the cmd is used by adding first /RCON [cmd name] in game e.g. if you want to make a rcon cmd, just under public OnRconCommand(cmd[]), add
pawn Код:
if(!strcmp(cmd,"MY COMMAND NAME HERE",true))
{
    // code here.
    return 1;
}
& when you test in in-game, login as RCON admin then type /rcon [[cmd which you made name here]]

then the cmd will work.

for more help, please view: https://sampwiki.blast.hk/wiki/OnRconCommand

================================================== ======
Reply


Messages In This Thread
Editing Server RCON? - by geohareas - 13.02.2013, 18:14
Re: Editing Server RCON? - by Patrick - 13.02.2013, 18:15
Re: Editing Server RCON? - by [MG]Dimi - 13.02.2013, 18:16
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:18
Re: Editing Server RCON? - by Patrick - 13.02.2013, 18:24
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:29
Re: Editing Server RCON? - by geohareas - 13.02.2013, 18:38
Re: Editing Server RCON? - by ZayanImran - 13.02.2013, 18:44
Re: Editing Server RCON? - by Smikkeltoetje - 13.02.2013, 18:45

Forum Jump:


Users browsing this thread: 2 Guest(s)