SA-MP Forums Archive
Console chat... - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Console chat... (/showthread.php?tid=165487)



Console chat... - mastasquizy - 05.08.2010

You know the black server box (console)? how do you have the server recognize what you type in that box in order for everyone in the server to see it?


Re: Console chat... - Tyler_Idy - 05.08.2010

try using /say [message]


Re: Console chat... - John_F - 05.08.2010

Use the Remote RCON not the console. The console is just for output.


Re: Console chat... - Dudits - 05.08.2010

Just "say [message]" and it should appear.


Re: Console chat... - Tyler_Idy - 05.08.2010

oh Yeah sorry, there shouldnt be a /, listen to Dudits


Re: Console chat... - mastasquizy - 05.08.2010

But could you add something to that, like other commands or something?


Re: Console chat... - (.Aztec); - 05.08.2010

Quote:
Originally Posted by mastasquizy
Посмотреть сообщение
But could you add something to that, like other commands or something?
Sure thing.

pawn Код:
COMMAND:say(playerid, params[])
{
new string[128], message[128];
if(!sscanf(params, "s", message))
{
if(IsPlayerAdmin(playerid))
{
format(string, sizeof(string), "say %s", message);
SendRconCommand(string);
}
else return SendClientMessage(playerid, red, "[ERROR] You are not an Admin!");
}
else return SendClientMessage(playerid, grey, "[USAGE] /Say [Message]");
}
Or:

pawn Код:
COMMAND:kick(playerid, params[])
{
    new UserID, Reason[128], string[128];
    if(!sscanf(params, "us", UserID, Reason))
    {
        if(File[playerid][Administrator] >= 1)
        {
            format(string, sizeof(string), "[INFO] Account \"%s\" has been kicked from the server, Reason: %s.", ReturnPlayerName(UserID), Reason);
            SendClientMessage(playerid, yellow, string);
            SendClientMessage(UserID, yellow, "[SYSTEM] Your account has been kicked from the server.");
            format(string, sizeof(string), "[INFO] Administrator %s has kicked your account for the following reason:", ReturnPlayerName(playerid));
            SendClientMessage(UserID, white, string);
            format(string, sizeof(string), "  %s", Reason);
            SendClientMessage(UserID, white, string);
            Kick(UserID);
            format(string, sizeof(string), "say %s has been kicked from the server, Reason: %s", ReturnPlayerName(UserID), Reason);
            SendRconCommand(string);
        }
        else return notauth;
    }
    else return SendClientMessage(playerid, grey, "[USAGE] /Kick [Player ID] [Reason]");
    return 1;
}



Re: Console chat... - Daren_Jacobson - 09.08.2010

Quote:
Originally Posted by John_F
Посмотреть сообщение
Use the Remote RCON not the console. The console is just for output.
it is? I never ever ever use the RCON (and by the way saying Remote RCON is like saying ATM Machine)

and also, rcmd

https://sampforum.blast.hk/showthread.php?tid=67526


Re: Console chat... - mastasquizy - 09.08.2010

Quote:
Originally Posted by Daren_Jacobson
Посмотреть сообщение
it is? I never ever ever use the RCON (and by the way saying Remote RCON is like saying ATM Machine)

and also, rcmd

https://sampforum.blast.hk/showthread.php?tid=67526
Like OMG thank you very much!!!!!! I Love You <3


Re: Console chat... - John_F - 09.08.2010

Quote:
Originally Posted by Daren_Jacobson
Посмотреть сообщение
it is? I never ever ever use the RCON (and by the way saying Remote RCON is like saying ATM Machine)

and also, rcmd

https://sampforum.blast.hk/showthread.php?tid=67526
Yeah, oops, I meant use the RCON :P