Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public MenuHandler_Box(Handle:menu, MenuAction:action, param1, param2)
- {
- switch(action)
- {
- case MenuAction_Select:
- {
- if(!HasAccess(param1))
- {
- PrintToChat(param1, "\x04[Box]\x01 This command is available for \x05admins \x01and \x05alive prison guards\x01.");
- return 0;
- }
- new String:info[8];
- GetMenuItem(menu, param2, info, 8);
- new bool:enabled = StrEqual(info, "on");
- enabled? Enable():Disable();
- PrintToChatAll("\x04[Box]\x01 Jailbreak Box has been \x05%sabled\x01.", enabled? "en":"dis");
- case MenuAction_End:
- {
- CloseHandle(menu);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement