AlliedModders

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

superfly19092 06-21-2006 02:28

adding weapon models to server
 
can someone please write me the script for a daul elite model
the model is form http://www.fpsbanana.com/skins/8830 if you need to know the site.
also if you could please explaine how you made it so i can do it on my own with other modles.

if you could do that, that would be so cool
please help.

thanks :D :D :D :D

Cheap_Suit 06-21-2006 07:56

This should go to suggestions. Anyhow, here it is, pretty simple.

Code:
#include <amxmodx> #include <engine> new PLUGIN_NAME[]   = "Custom Dualies" new PLUGIN_AUTHOR[]     = "Cheap_Suit" new PLUGIN_VERSION[]    = "1.0" new VIEW_MODEL[]    = "models/v_<model>.mdl" //new PLAYER_MODEL[]    = "models/p_<model>.mdl" public plugin_init() {     register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)     register_event("CurWeapon", "Event_CurWeapon", "be","1=1") } public plugin_precache() {     precache_model(VIEW_MODEL)     //precache_model(PLAYER_MODEL) } public Event_CurWeapon(id) {     new Weapon_ID = read_data(2)         // if weapon is not elite then skip     if(Weapon_ID != CSW_ELITE) {         return PLUGIN_CONTINUE     }         // sets player's v model     entity_set_string(id, EV_SZ_viewmodel, VIEW_MODEL)         // sets player's p model     //entity_set_string(id, EV_SZ_weaponmodel, PLAYER_MODEL)         return PLUGIN_CONTINUE }

Rolnaaba 07-03-2006 22:09

Re: adding weapon models to server
 
first of all put ur code in between code tags also I noticed u said:
Code:
 if(Weapon_ID != HIW_M4A1) { return PLUGIN_CONTINUE }
if u are running a Counter-strike server it should be:
Code:
if(Weapon_ID != CSW_M4A1) { return PLUGIN_CONTINUE }
that could be wats causing it

Rolnaaba 07-03-2006 22:39

Re: adding weapon models to server
 
putting code between code tags makes it MUCH easier to read
type [code] at the begining of what u want to be in code

Rolnaaba 07-03-2006 22:39

Re: adding weapon models to server
 
and then type [/code] at the end of what u want to be in code
U MUST HAVE THE [] OR IT WONT WORK


All times are GMT -4. The time now is 08:09.

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