Resxt b0b66dcfbc chat_commands 1.3.0
This update adds an optional permission system that commands can use to determine what the minimum permission level is to be able to access that specific command

This update forces changes on the other commands scripts. If you download this version make sure to download the updated version of your individual chat command(s) script as well

Added cc_debug dvar
Added cc_permission_enabled
Added cc_commands_mode dvar
Added cc_permission_mode dvar
Added cc_permission_default dvar
Added cc_permission_max dvar
Added cc_permission_0, cc_permission_1, cc_permission_2, cc_permission_3 & cc_permission_4 dvars

Added InsufficientPermissionError error
Added InvalidPermissionLevelError error
Added GetPlayerPermissionLevelFromDvar util function
Added GetPlayerPermissionLevel util function
Added SetPlayerPermissionLevel util function
Added PlayerHasSufficientPermissions util function
Added SetDvarIfNotInitialized util function
Added IsBot util function
Added DebugIsOn util function
Added PermissionIsEnabled util function

[Refactor]
Replaced player.chat_commands with player.pers["chat_commands"]
This is to make sure the variables are kept between rounds

Replaced level scoped variables with a single level scoped array variable <level.chat_commands> holding all properties (prefix, ports etc.)
2023-03-18 01:27:20 +01:00
2023-03-18 01:27:20 +01:00
2023-02-15 22:36:04 +01:00
2023-02-01 16:21:01 +01:00
2023-02-16 03:24:32 +01:00
2022-09-16 18:50:14 +02:00
2023-01-27 22:27:00 +01:00

Plutonium-IW5-Scripts

image

What is this?

This is a collection of Plutonium IW5/MW3 scripts I created, written in GSC.
Some scripts (mostly older ones) have specific use cases and some others were made to be as generic as possible so you might find something useful.

Some scripts were made when I was still fairly new to GSC so some scripts might not be perfectly optimized or done the proper way but they do their job and should at least give you an idea of how to do certain things or work well enough for you to use them.

Huge thanks to everyone who helped me learn GSC: Birchy, DoktorSAS, FutureRave and other people on Discord.

How do I download a script?

  • Download this repository
  • Open the downloaded ZIP file
  • Drag and drop the script(s) you want in the folder they need to be placed in.
    If no instructions are provided for the script you want then simply follow the instructions given in How do I use a script?

Just keep in mind that this downloads a copy of this repository at the moment you download it.
If a script is updated after you downloaded this repository and you want the new version then you will need to download this repository again.

How do I use a script?

Follow the instructions in the documentation

Simply drop a .gsc file inside %localappdata%\Plutonium\storage\iw5\scripts.

Note that you can use map_restart in the console to quickly restart your current game and reload scripts.

Languages
GSC 100%