Advertisement
Guest User

Untitled

a guest
Jul 28th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. public MenuHandler_Box(Handle:menu, MenuAction:action, param1, param2)
  2. {
  3. switch(action)
  4. {
  5. case MenuAction_Select:
  6. {
  7. if(!HasAccess(param1))
  8. {
  9. PrintToChat(param1, "\x04[Box]\x01 This command is available for \x05admins \x01and \x05alive prison guards\x01.");
  10.  
  11. return 0;
  12. }
  13.  
  14. new String:info[8];
  15. GetMenuItem(menu, param2, info, 8);
  16.  
  17. new bool:enabled = StrEqual(info, "on");
  18.  
  19. enabled? Enable():Disable();
  20.  
  21. PrintToChatAll("\x04[Box]\x01 Jailbreak Box has been \x05%sabled\x01.", enabled? "en":"dis");
  22.  
  23. case MenuAction_End:
  24. {
  25. CloseHandle(menu);
  26. }
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement