12.12.2013, 15:24
(
Последний раз редактировалось HoboGamings; 12.12.2013 в 16:08.
)
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)
(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; }