rcon say
#10

Why so difficult?
pawn Код:
public OnRconCommand(cmd[])
{
    if(!strcmp(cmd, "asay", true, 5))//Make sure you have to limit the length or it will also compare parameters
    {
        new string[128];
        format(string,sizeof(string),"*grandTheftOtto from Console: %s",cmd[5]);
        SendClientMessageToAll(COLOR_LIGHTNEUTRALBLUE,string);
        return 1;
    }
    return 0;
}
You say you type your chat in the console, and I guess there is only 1 rcon admin.
Directly putting the name there is okay.
BTW, I think you can't replace the original "say" command because those built-in commands are processed first.
I found this when I try to record rcon commands.
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)