rcon say
#7

Quote:
Originally Posted by [WF]Demon
Посмотреть сообщение
I do not think its possible since there is no playerid in OnRconCommand
No wonder I kept getting Undefined symbol: playerid ...

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;
}
Reply


Messages In This Thread
rcon say - by grand.Theft.Otto - 02.03.2011, 22:24
Re: rcon say - by Lorrden - 02.03.2011, 22:31
Re: rcon say - by grand.Theft.Otto - 02.03.2011, 22:37
Re: rcon say - by Lorrden - 02.03.2011, 22:40
Re: rcon say - by [WF]Demon - 02.03.2011, 22:50
Re: rcon say - by Cameltoe - 02.03.2011, 22:54
Re: rcon say - by grand.Theft.Otto - 02.03.2011, 22:56
Re: rcon say - by Lorrden - 02.03.2011, 23:01
Re: rcon say - by grand.Theft.Otto - 02.03.2011, 23:06
Re: rcon say - by leong124 - 03.03.2011, 02:02

Forum Jump:


Users browsing this thread: 1 Guest(s)