HerrMagiic / CSS-CreateCustomCommands

The Custom Commands Plugin allows you to create and customize commands for your server. These commands can display messages, perform server-side actions, and more.
https://github.com/HerrMagiic/CSS-CreateCustomCommands/tree/main/Examples
MIT License
44 stars 1 forks source link

Toggle Commands #14

Closed HerrMagiic closed 8 months ago

HerrMagiic commented 9 months ago
If sv_cheats 0 toggle it to 1

"Title": "Toggle Headshot Mode",
    "Command": "hs",
    "Message": [
      "Headshot Mode:",
      "{RED}{VALUE}"
    ],
    "PrintTo": 3,
    "Description": "Command to toggle headshot mode",
    "ServerCommands": [
      "toggle mp_damage_headshot_only"
    ],
    "Permission": {
      "RequiresAllPermissions": false,
      "PermissionList": [
        "@custom/permission",
        "#css/admin"
      ]
    }
  },```