Console chat...
#1

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?
Reply
#2

try using /say [message]
Reply
#3

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

Just "say [message]" and it should appear.
Reply
#5

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

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

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

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
Reply
#9

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
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)