Open kikaragyozov opened 4 years ago
I don't understand what you're asking, or what you're trying to do.
with which files to edit at which specific lines ,it'd make this process very easy, and not require extensive sourcePawn language knowledge.
I can't provide general guidance on programming, sorry.
@splewis Basically, allow people to add custom entries in the .setup menu (like Team Size
, Veto type
which are already there), which custom entries when enabled, execute a given command, and when disabled, execute another given command.
For example:
Imagine I want to have an entry called SpawnWithGrenades
.
If that's enabled, the plugin executes the command we've written for when the option is enabled, and if it's disabled, it executes the command we've written for when it's disabled.
A concrete example would be EnableAllTalk
sv_alltalk 1 for when the option is enabled, sv_alltalk 0 for when the option is disabled.
This basically allows every user of your plugin, to have some custom configuration file, which easily adds these custom configurations, with customly predefined actions/commands, for when they are enabled/disabled.
I tried doing it, but the files are too much and the more I look, the more confused I get.
If you could post a general guide on how one would implement such things in the .setup menu, with which files to edit at which specific lines ,it'd make this process very easy, and not require extensive sourcePawn language knowledge.