Rcon help.
#1

Hello.

I am having a problem as usually. What I want is when someone uses the rcon command (/rcon login) it would board cast publicly on the server. So I tried coding it like this, but it doesn't work. So I need some assistance please.

pawn Код:
public OnRconCommand(cmd[])
{
    new pname[MAX_PLAYER_NAME], string[256], playerid;
    GetPlayerName(playerid, pname, sizeof(pname));
    format(string, sizeof(string), "ADMIN COMMAND: [%i] %s have just used RCON command.", playerid, pname);
    SendClientMessageToAll(COLOR_RED, string);
    Logs("Logs/Rcon.txt",string);
    return 1;
}
Regards.
Reply


Messages In This Thread
Rcon help. - by Nicholas. - 06.04.2012, 21:21
Re: Rcon help. - by TzAkS. - 06.04.2012, 21:34

Forum Jump:


Users browsing this thread: 1 Guest(s)