csgo-practice-mode icon indicating copy to clipboard operation
csgo-practice-mode copied to clipboard

Permissions? / Custom Work

Open cwwwipsy opened this issue 5 years ago • 1 comments

thx

cwwwipsy avatar Dec 23 '19 18:12 cwwwipsy

For 1 & 2, you can disable things with sourcemod's permission system like here: https://github.com/splewis/csgo-practice-mode/wiki/Command-access.

You want to use the actual command (sm_savegrenade & sm_savegrenade, in your case) the plugin registers to sourcemod though, (.throw and such are just practicemode-local chat aliases).

To know those actual command names you have to take a look at the source code, which is how I got them: https://github.com/splewis/csgo-practice-mode/blob/175dfacb123ca087c93a230594a2f970752188e2/scripting/practicemode.sp#L465

https://github.com/splewis/csgo-practice-mode/blob/175dfacb123ca087c93a230594a2f970752188e2/scripting/practicemode.sp#L474

For 3: I just added a sm_practicemode_max_placed_bots cvar in 175dfacb123ca087c93a230594a2f970752188e2. You could get the latest plugin build with it from https://ci.splewis.net/job/csgo-practice-mode/, if you want to use it now.

splewis avatar Dec 27 '19 19:12 splewis