Raised This Month: $ Target: $400
 0% 

Precache and Warnings


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leonard19941
Veteran Member
Join Date: Jun 2011
Old 11-29-2011 , 14:05   Re: Precache and Warnings
Reply With Quote #5

PHP Code:
new garras[] = "models/garras.mdl" 
PHP Code:
public plugin_init()
    
register_event("CurWeapon""CurWeapon""be","1=1"
PHP Code:
public plugin_precache()
    
precache_model("models/garras.mdl"
PHP Code:
public CurWeapon(id){
    new 
weaponID read_data(2
    if(
weaponID != CSW_KNIFE)
        return 
PLUGIN_CONTINUE
    
if(cs_get_user_team(id) == CS_TEAM_T && is_user_alive(id)){
        
set_pev(idpev_viewmodel2"models/garras.mdl")
    }
    return 
PLUGIN_CONTINUE 

Thanks, it works but I get 1 warning.
Attached Thumbnails
Click image for larger version

Name:	Dibujo (600 x 250).jpg
Views:	142
Size:	19.2 KB
ID:	96043  

Last edited by leonard19941; 01-27-2012 at 16:49.
leonard19941 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 08:26.


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