05.08.2010, 02:11
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?
But could you add something to that, like other commands or something?
|
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]");
}
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;
}
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 |
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 |