02.03.2011, 22:56
Quote:
I do not think its possible since there is no playerid in OnRconCommand
|
But I don't want to get the admin/player's ID, I'm talking about it showing up in-game from typing it from the Remote Console, not from in-game by doing /rcon say [words]
I don't want the ID to show up, I just want the name to show.
I have this at the moment:
pawn Код:
public OnRconCommand(cmd[])
{
if(strcmp(cmd, "say", true) == 0)
{
new string[256], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"***ADMIN %s From Console: %s",pName,string);
SendClientMessageToAll(COLOR_LIGHTNEUTRALBLUE,string);
return false;
}
return 1;
}