SA-MP Forums Archive
Easy answer (rcon help) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Easy answer (rcon help) (/showthread.php?tid=463392)



Easy answer (rcon help) - Aleksabre - 11.09.2013

how do I change a colour and the name of /rcon say, I mean if you type /rcon say blablabla it'll say:
Admin: blablabla

how do I change the name so it'll say like:

Server Administrator with the different colour, where do I change it?


Re: Easy answer (rcon help) - PT - 11.09.2013

pawn Код:
public OnRconCommand(cmd[])
{
    if(strcmp(cmd, "say2", true))
    {
        //edite how you like
    }
    return 1;
}



Re: Easy answer (rcon help) - Aleksabre - 13.09.2013

Hey,
{
if(strcmp(cmd, "say2", true))
{
//edite how you like
}
return 1;
}

"//edite how you like" what should I type here? please help me


Re: Easy answer (rcon help) - Aleksabre - 13.09.2013

Help me please thanks


Re: Easy answer (rcon help) - Aleksabre - 16.09.2013

Please, someone?


Re: Easy answer (rcon help) - Snake0 - 16.09.2013

Like 'Administrator says:.... or Owners say, something like that.


Re: Easy answer (rcon help) - xganyx - 17.09.2013

like this

pawn Код:
#include <a_samp>
#include <sscanf2>

public OnRconCommand(cmd[])
{
    if(strcmp(cmd,"yourcommand") == 0) //-> /rcon yourcommand
    {
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            new text[50],string[200],pname[24];
            if(sscanf(cmd,"s[50]",text)) return SendClientMessage(i,-1,"USAGE: /rcon yourcommand [text]");
            GetPlayerName(i,pname,sizeof(pname));
            format(string,sizeof(string),"Rcon admin %s say: %s",pname,text);
            SendClientMessageToAll(-1,string);
        }
    }
    return 1;
}