Raised This Month: $ Target: $400
 0% 

Need some help with knife plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Shiina.Mashiro
Senior Member
Join Date: Sep 2014
Location: Vietnam
Old 06-03-2015 , 22:40   Re: Need some help with knife plugin
Reply With Quote #6

Here's some optimization I guess:
1.
PHP Code:
register_event("CurWeapon""event_curw""be""1=1")
public 
event_curw(id)
{
    new 
wID read_data(2)
    if(
wID != CSW_KNIFE)
        return 
PLUGIN_CONTINUE

====>
PHP Code:
register_event("CurWeapon""event_curw""be""2=29"
2. If the model doesn't change immidiately, try to add this:
PHP Code:
engclient_cmd(id"weapon_knife"
__________________
Shiina.Mashiro 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 20:01.


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