This code works. The problem is, just like when it's used and changed in a .cfg file, a mapchange is required for the changes to take effect.
Is there a way to code a plugin to force the teams, as done with these cvars, while using an "sv_restart 1" command instead of a mapchange? I would like to be able to use this code in 2 separate plugins, with the teams reversed, along with this
Multimod plugin.
PHP Code:
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plugin"
#define AUTHOR "Unknown"
#define VERSION "1.0"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public plugin_cfg() {
set_cvar_string( "humans_join_team", "t" )
set_cvar_string( "bot_join_team", "ct" )
}
__________________