Raised This Month: $ Target: $400
 0% 

different Knives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Pur3Biatch
Junior Member
Join Date: Jun 2011
Location: Czech Republic
Old 08-10-2011 , 12:33   Re: different Knives
Reply With Quote #1

Copy/Paste, but do new variables (new bool:HasKrall[33] = false) and...
PHP Code:
new const p_Krall[] = "models/p_.mdll"  // way to p_model 
new const v_Krall[] = "models/v_.mdl" // way to v_model
//...
public cur_weapon(id

    if(
read_data(2) == CSW_KNIFE
    { 
        if(
HasBerseker[id]) 
        { 
            
set_pev(idpev_viewmodel2v_Model
            
set_pev(idpev_weaponmodel2p_Model
        }
        if(
HasKrall[id]) 
        { 
            
set_pev(idpev_viewmodel2v_Krall
            
set_pev(idpev_weaponmodel2p_Krall
        } 
    } 
    return 
PLUGIN_CONTINUE 

..and..
PHP Code:
public Krall(id)    
{   
  
//...
  
HasKrall[id] = true;
  
//...


Last edited by Pur3Biatch; 08-10-2011 at 12:41. Reason: wrong variable
Pur3Biatch is offline
Send a message via Skype™ to Pur3Biatch
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 03:21.


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