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

https://sampwiki.blast.hk/wiki/OnRconLoginAttempt

You got all you need there.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)