Raised This Month: $ Target: $400
 0% 

precaching arrays


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-26-2022 , 23:57   Re: precaching arrays
Reply With Quote #4

PHP Code:
enum Knifes

    
NoKnifeSet = -1,
    
Chucky,
    
DarthMaul,
    
Riddick,
    
Wolv,
    
Grim


enum ModelInfo
{
    
ModelName64 ],
    
ModelData64 ],
    
ModelPData64 ]
}

new const 
g_ModelData[Knifes][ ModelInfo ] = 
{
    { 
"Chucky" "models/shmod/chuckyy_VIP_knife.mdl" "models/p_knife.mdl" },
    { 
"DarthMaul" "models/shmod/darthmaul_VIP_knife.mdl" "models/shmod/darthmaul_p_knife.mdl" },
    { 
"Riddick" "models/shmod/riddick_VIP_knife.mdl" "models/p_knife.mdl" },
    { 
"Wolv" "models/shmod/wolv_VIP_knife.mdl" "models/p_knife.mdl" },
    { 
"Grim" "models/shmod/grimreaper_VIP_knife.mdl" "models/shmod/grimreaperV_p_knife.mdl" }
};

public 
plugin_precache()
{
    for ( new 
Knifes:kModelIndex Chucky kModelIndex Knifes kModelIndex++ )
    {
        
precache_modelg_ModelDatakModelIndex ][ ModelData ] );
        
precache_modelg_ModelDatakModelIndex ][ ModelPData ] );
    }

__________________
Bugsy 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:22.


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