Raised This Month: $ Target: $400
 0% 

Knife Model Script Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
oreo824
Junior Member
Join Date: Jul 2006
Location: California
Old 07-25-2007 , 14:18   Re: Knife Model Script Help
Reply With Quote #5

It wont load correctly, it loads as "unknown" and when i restart the server the server doesent come up anymore unless i take it off.

Heres what i got:

Code:
#include <amxmodx>
#include <fakemeta>

public plugin_init()
{   
    register_plugin( "eGKnife" ,"1.0", "incRo")
    
    register_event("CurWeapon","event_curweapon","b","1=1","2=29") //CSW_KNIFE = 29
}

public plugin_precache()
{    
    precache_model("models/custom/v_knife.mdl")
}

public event_curweapon(id)
{
    set_pev(id, pev_viewmodel, engfunc(EngFunc_AllocString, "models/custom/v_knife.mdl"))
}
__________________
Yeah that plugin..
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