When using the cs_set_user_model native it makes the pod bots spam the change name command and causes overflow
Also, the error output is not saved in the log files, it can be seen only via console
Didn't have the chance to test it with players as well, since my test server is hosted on my pc, but if i remember well, i once switched to the dev build on the public server and used the cstrike native for setting models, and i remember one time we were all getting overflowed
PHP Code:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "test"
new const pl_mdl[] = "leet"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn_Post", 1)
// Add your code here...
}
public plugin_precache()
{
new model_path[128]
formatex(model_path, charsmax(model_path), "models/player/%s/%s.mdl", pl_mdl, pl_mdl)
precache_model(model_path)
}
public fw_PlayerSpawn_Post(id)
{
cs_set_user_model(id, pl_mdl)
}
Code:
L 08/09/2016 - 22:25:29: [CSTRIKE] Invalid player 13
L 08/09/2016 - 22:25:29: [AMXX] Displaying debug trace (plugin "testsc.amxx", version "1.0")
L 08/09/2016 - 22:25:29: [AMXX] Run time error 10: native error (native "cs_set_user_model")
L 08/09/2016 - 22:25:29: [AMXX] [0] testsc.sma::fw_PlayerSpawn_Post (line 32)
__________________