Raised This Month: $32 Target: $400
 8% 

Change the MonsterMod models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
fireattack
Senior Member
Join Date: Jul 2008
Old 01-11-2010 , 17:56   Change the MonsterMod models
Reply With Quote #1

Is it possible to change the models of the monsters (MonsterMod v3)?
fireattack is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-11-2010 , 18:20   Re: Change the MonsterMod models
Reply With Quote #2

Yes.
__________________
Arkshine is offline
fireattack
Senior Member
Join Date: Jul 2008
Old 01-11-2010 , 18:23   Re: Change the MonsterMod models
Reply With Quote #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.
fireattack is offline
Old 01-11-2010, 18:34
fireattack
This message has been deleted by fireattack. Reason: doublepost
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode