Locking server with NON-RCON COMMAND
#5

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
I'm not sure if you can use password via SendRconCommand. Anyways:
pawn Код:
CMD:lockserver(playerid, params[])
{
    if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
    if(isnull(params)) return SendClientMessage(playerid, COLOR_WHITE, "[Usage]: /lockerserver [password]");
    new string[128];
    format(string, sizeof(string), "password %s", params);
    SendRconCommand(string);
    format(string, sizeof(string), "AdmCmd : %s %s has Locked The Server (PASSWORD: %s) ", RPALN(playerid), RPN(playerid), params);
    SendAdminMessage(COLOR_RED, 1, string);
    format(string, sizeof(string), "AdmCmd: %s has locked the server.", RPN(playerid));
    SendClientMessageToAll(COLOR_LIGHTRED, string);
    return 1;
}
Yes! this one worked thanks.
Reply


Messages In This Thread
Locking server with NON-RCON COMMAND - by maximthepain - 30.11.2013, 19:55
Re: Locking server with NON-RCON COMMAND - by Patrick - 30.11.2013, 19:58
Re: Locking server with NON-RCON COMMAND - by Konstantinos - 30.11.2013, 20:01
Re: Locking server with NON-RCON COMMAND - by maximthepain - 30.11.2013, 20:06
Re: Locking server with NON-RCON COMMAND - by maximthepain - 30.11.2013, 20:10

Forum Jump:


Users browsing this thread: 1 Guest(s)