Raised This Month: $ Target: $400
 0% 

How Do You Replace Models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Passion's Killing Floor
Junior Member
Join Date: Jul 2007
Old 07-16-2007 , 17:33   How Do You Replace Models
Reply With Quote #1

I want People to be able use my custom models so
a Script Or Something Would Be Nice
Passion's Killing Floor is offline
Vet
Veteran Member
Join Date: Jul 2006
Location: I|O wa
Old 07-17-2007 , 00:28   Re: How Do You Replace Models
Reply With Quote #2

What kind of models are you talking about? Player models, weapon models, map models or what?
__________________
=====================================
- My Plugins -
=====================================
Vet is offline
Send a message via MSN to Vet
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 07-17-2007 , 01:33   Re: How Do You Replace Models
Reply With Quote #3

and which mod?
__________________
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
Passion's Killing Floor
Junior Member
Join Date: Jul 2007
Old 07-17-2007 , 10:17   Re: How Do You Replace Models
Reply With Quote #4

Weapons On Counterstrike 1.6
Passion's Killing Floor is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-17-2007 , 13:05   Re: How Do You Replace Models
Reply With Quote #5

Code:
set_pev(player, pev_weaponmodel, engfunc(EngFunc_AllocString, "MyModel.mdl"));
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Passion's Killing Floor
Junior Member
Join Date: Jul 2007
Old 07-17-2007 , 15:17   Re: How Do You Replace Models
Reply With Quote #6

does that precache it?
__________________
Your Pretty Face Is Goin To Hell.
Why Would You Hurt A Poor Emo Boy Like Me?
Passion's Killing Floor is offline
P34nut
AMX Mod X Beta Tester
Join Date: Feb 2006
Location: Netherlands
Old 07-17-2007 , 15:24   Re: How Do You Replace Models
Reply With Quote #7

no
__________________
All you need to change the world is one good lie and a river of blood
P34nut is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-17-2007 , 15:50   Re: How Do You Replace Models
Reply With Quote #8

Code:
public plugin_precache() {     precache_model("models/folder/MyModel.mdl"); }   //...   set_model_function(id) {     set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/folder/MyModel.mdl")); }

OR

Code:
public plugin_precache() {     engfunc(EngFunc_PrecacheModel, "models/folder/MyModel.mdl"); } //... set_model_function(id) {     set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/folder/MyModel.mdl")); }

where "folder" is optional...
__________________
DO NOT PM me about avp mod.

Last edited by Rolnaaba; 07-17-2007 at 15:55. Reason: typo
Rolnaaba is offline
Passion's Killing Floor
Junior Member
Join Date: Jul 2007
Old 07-18-2007 , 15:02   Re: How Do You Replace Models
Reply With Quote #9

it didnt work
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(1) : error 001: expected token: ")", but found "("
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(1) : error 010: invalid function or declaration
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(3) : error 017: undefined symbol "precache_model"
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(11) : warning 203: symbol is never used: "set_model_function"
/home/groups/amxmodx/tmp3/phpSVeuCq.sma(11) : warning 203: symbol is never used: "set_pev"
__________________
Your Pretty Face Is Goin To Hell.
Why Would You Hurt A Poor Emo Boy Like Me?
Passion's Killing Floor is offline
Passion's Killing Floor
Junior Member
Join Date: Jul 2007
Old 07-18-2007 , 15:17   Re: How Do You Replace Models
Reply With Quote #10

Can You JUst Completely Do It I want My Model models\v_p90.mdl
too run on my server Plz Write the script
__________________
Your Pretty Face Is Goin To Hell.
Why Would You Hurt A Poor Emo Boy Like Me?
Passion's Killing Floor is offline
Reply


Thread Tools
Display Modes

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 21:27.


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