/* AMX Mod X script. Invisible Model Fix plugin by Lev. Info: This plugin fix bug in HL engine that allow players to set different non player models. Installation: put invisible_model_fix.amxx to plugins folder; add invisible_model_fix.amxx to config\plugins.ini file; Thanks to: Crock for explanations of exploit. Freejam for beta testing. Change Log: v1.0 [2010.04.29] Initial release. */ #pragma semicolon 1 #pragma ctrlchar '\' #include #define AUTHOR "Lev" #define PLUGIN "InvisibleModelFix" #define VERSION "1.0" #define VERSION_CVAR "imf_vesion" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_cvar(VERSION_CVAR, VERSION, FCVAR_SPONLY | FCVAR_SERVER | FCVAR_UNLOGGED); } public client_infochanged(id) { new model[33]; get_user_info(id, "model", model, charsmax(model)); if (contain(model, "/") == -1) return PLUGIN_CONTINUE; replace_all(model, charsmax(model), "../", ""); replace_all(model, charsmax(model), "/", ""); client_cmd(id, "echo \"Xaker? xD\""); client_cmd(id, "model %s", model); set_user_info(id, "model", model); return PLUGIN_CONTINUE; }