Raised This Month: $ Target: $400
 0% 

adding weapon models to server


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
superfly19092
Member
Join Date: Jun 2006
Old 06-21-2006 , 02:28   adding weapon models to server
Reply With Quote #1

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
superfly19092 is offline
Cheap_Suit
Veteran Member
Join Date: May 2004
Old 06-21-2006 , 07:56  
Reply With Quote #2

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 }
__________________
HDD fried, failed to backup files. Sorry folks, just don't have free time anymore. This is goodbye.
Cheap_Suit is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-03-2006 , 22:09   Re: adding weapon models to server
Reply With Quote #3

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
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-03-2006 , 22:39   Re: adding weapon models to server
Reply With Quote #4

putting code between code tags makes it MUCH easier to read
type [code] at the begining of what u want to be in code
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
Rolnaaba
Veteran Member
Join Date: May 2006
Old 07-03-2006 , 22:39   Re: adding weapon models to server
Reply With Quote #5

and then type [/code] at the end of what u want to be in code
U MUST HAVE THE [] OR IT WONT WORK
__________________
DO NOT PM me about avp mod.
Rolnaaba is offline
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 08:09.


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