06.04.2012, 21:21
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.
Regards.
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;
}