|
Senior Member
|
01-11-2010
, 18:23
Re: Change the MonsterMod models
|
#3
|
Okay................... how?
Can this run?
Quote:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <Vexd_Utilities>
#define INTERVAL 0.3
public plugin_init()
{
register_plugin("AMX Monster","0.3","KRoTaL")
register_concmd("amx_monstermodel","monstermo del", ADMIN_SLAY, "<model>")
return PLUGIN_CONTINUE
}
public monstermodel(id,level,cid)
{
if (!cmd_access(id,level,cid,2))
{
return PLUGIN_HANDLED
}
new arg1[64]
read_argv(1, arg1, 63)
format(arg1, 63, "models/%s", arg1)
new monster = find_ent_by_class(-1, "func_wall")
while(monster > 0)
{
if(entity_get_int(monster, EV_INT_movetype) == 4)
{
entity_set_model(monster, arg1)
}
monster = find_ent_by_class(monster, "func_wall")
}
console_print(id, "You changed the models of all the monsters.")
return PLUGIN_HANDLED
}
|
Last edited by fireattack; 01-11-2010 at 18:32.
|
|
|
|