[FilterScript] Simple Server Lock System For Admins
#1

The simple script lets you lock your server for reasons you can control, so if you had a bug you may leave this how it is, if you wanted it to updated just copy this and paste it again but change the "CMD:lockserver" to something as simple as "CMD:updatelock" Leave a rep

(My server uses a custom made admin system you may need to change this to your admin system)

(This uses zcmd)

Код:
new bool:ServerLocked;

CMD:lockserver(playerid, params[])

{
	new string[128];
	if(!IsPlayerLoggedIn(playerid)) return SendClientMessage(playerid, COLOR_GREY, "You need to login first before using any command.");
	if(PlayerInfo[playerid][pAdmin] < 4) return SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use this command.");
    if(ServerLocked)
    {
        ServerLocked = false;
        SendRconCommand("password 0");
		SendRconCommand("hostname Ready to Roleplay [Hosted Tab][Refund]");
		format(string, sizeof(string), "{FF0000}[Admin]{FF6347} Owner %s unlocked the server.", NORPN(playerid));
		SendClientMessageToAll(COLOR_WHITE, string);
    }
    else
    {
        ServerLocked = true;
        SendRconCommand("password locked");
    	SendRconCommand("hostname Ready to Roleplay [Maintenance]");
		format(string, sizeof(string), "{FF0000}[Admin]{FF6347} Owner %s locked the server.", NORPN(playerid));
		SendClientMessageToAll(COLOR_WHITE, string);
    }
    return 1;
}
Reply
#2

Nice one
Reply
#3

Quote:
Originally Posted by FahadKing07
Посмотреть сообщение
Nice one
Thanks mate!
Reply
#4

Good script mate
Reply
#5

Niceee
Reply
#6

Nice But i get this
error 017: undefined symbol "NORPN"
Reply
#7

Nice
Reply
#8

Nice... keep it up!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)