AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How do you change models? [moved from Support/Help] (https://forums.alliedmods.net/showthread.php?t=57244)

mr.noob. 07-01-2007 08:07

How do you change models? [moved from Support/Help]
 
I tried changing the default models on the server with the code given from other threads.
Code:

#include <amxmodx>
#include <cstrike>

public plugin_precache()
{
        precache_model("models/player/new/mytmodel.mdl")
        precache_model("models/player/new/myctmodel.mdl")
       
}

But it did nothing. and it has the same models as usual.
Any suggestions?

mateo10 07-01-2007 12:20

Re: How do you change models?
 
This post belongs in scripting help.

(Moved. -- mod)

mr.noob. 07-02-2007 15:00

Re: How do you change models? [moved from Support/Help]
 
Thanks for moving

mateo10 07-02-2007 15:18

Re: How do you change models? [moved from Support/Help]
 
You change a model with either
Code:
cs_set_user_model(index, model[]);
or
Code:
engfunc(EngFunc_SetModel, index, model[]);

For the first way, you have to include the cstrike module. For the second one, you have to include the fakemeta module.

mr.noob. 07-08-2007 21:39

Re: How do you change models? [moved from Support/Help]
 
If I were to change every T model, how would it look?
Sorry im kinda bad at this


All times are GMT -4. The time now is 21:35.

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