Raised This Month: $ Target: $400
 0% 

Knife Model Script Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
oreo824
Junior Member
Join Date: Jul 2006
Location: California
Old 07-24-2007 , 17:55   Knife Model Script Help
Reply With Quote #1

Hey guys, Havent been on these forms in a while! now im back into cs and scripting.

I need help, i want to precache a knife model (v_knife2.mdl) and have every player in the server have that model as their knife. This is a very simple script exept every time i try someones script or edit theirs it just doesent work.

Thanks,

oreo824

Edit:

Code:
#include <amxmodx>
#include <engine>

public plugin_init()    
 {   
 register_plugin( "eGKnife" ,"1.0", "incRo")
 register_event("CurWeapon","event_curweapon","b")
}
 
public plugin_precache()   
 {    
 precache_model("models/custom/egknife.mdl")
}
public event_curweapon(id) 
 { 
 new ammo, clip
 if(get_user_weapon(id,ammo,clip) == CSW_KNIFE)
  { 
  entity_set_string(id,EV_SZ_viewmodel,"models/custom/egknife.mdl")  
 }   

}
can someone verify this? i compiled and checked and everything worked fine except the model didnt show up
__________________
Yeah that plugin..

Last edited by oreo824; 07-24-2007 at 19:00.
oreo824 is offline
 



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:25.


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