Hi i want change name Team anytime I want through play
i thought it would be like this, but did not succeed ! (its work only when i restart server or map changed !)
Код:
#include <amxmodx>
#include <amxmisc>
new teamlist[128]
public plugin_init() {
register_clcmd("say /a", "Funct1")
register_clcmd("say /b", "Funct2")
}
public Funct1()
{
set_cvar_string("mp_teamlist", teamlist)
formatex(teamlist, charsmax(teamlist), "%s;%s", "blue TEST1", "red TEST1")
server_print("%s", teamlist)
}
public Funct2()
{
set_cvar_string("mp_teamlist", teamlist)
formatex(teamlist, charsmax(teamlist), "%s;%s", "blue TEST2", "red TEST2")
server_print("%s", teamlist)
}
can I do that?
what is the correct way to achieve them?