AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Setting weapon models (https://forums.alliedmods.net/showthread.php?t=10687)

v3x 02-26-2005 18:07

Setting weapon models
 
How would I go by setting the user's weapon model after it's been precached?

Ex: v_scout.mdl

TotalNoobScripter 02-26-2005 18:54

entity_set_string(id,EV_SZ_viewmodel,"models/v_scout.mdl)

v3x 02-26-2005 18:58

Danke :)

Oh, and.. you forgot to add another " in front of ) :).

ledz1 02-26-2005 19:01

u
 
u get the weapon model and u put it in cstrike/models/player/v_scout.mdl
nad yur done have fun!

v3x 02-26-2005 19:09

Re: u
 
Quote:

Originally Posted by ledz1
u get the weapon model and u put it in cstrike/models/player/v_scout.mdl
nad yur done have fun!

You are an idiot :stupid:..

Pain 02-26-2005 19:09

Re: u
 
Quote:

Originally Posted by ledz1
u get the weapon model and u put it in cstrike/models/player/v_scout.mdl
nad yur done have fun!

LOL, I concur v3x.

v3x 02-26-2005 19:21

If I wanted help installing a model, I probably wouldn't be posting in the "Scripting Help" section of the AMXX forums, doh..

:lol:

TotalNoobScripter 02-26-2005 19:58

entity_set_string(id,EV_SZ_model,"models/v_scout.mdl")

then have fun :D :D :D :D :D :D :D :D

*OMFG HES DA HAXORZ*

v3x 02-26-2005 20:36

Wait, on this one server I downloaded a file called v_roscout.mdl ..

Hrm.. It didn't work for meh.. lol

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #define PLUGIN    "Set models" #define AUTHOR    "v3x" #define VERSION    "1.00" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("CurModel", "setModel", "be") } public plugin_precache() { precache_model("models/v_LOCKscout.mdl") } public setModel(id) { entity_set_string(0,EV_SZ_viewmodel,"models/v_LOCKscout.mdl") return PLUGIN_HANDLED }

TotalNoobScripter 02-26-2005 22:06

curmodel? whats that event do?


All times are GMT -4. The time now is 13:57.

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