Raised This Month: $ Target: $400
 0% 

model precaching


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
allenwr
Veteran Member
Join Date: Jan 2006
Location: The place where the karm
Old 09-06-2008 , 05:39   model precaching
Reply With Quote #1

Well, i have messed up again.

My plugin is not precaching the models. The bool is working, another part of the plugin has shown me that already.

The game is dod and the models' directories are correct, even uploaded to the right places. But the models are not being downloaded from the fastdownload site or the game server site.

PHP Code:
public plugin_precache() {
    if(
forest) {
        
precache_model("models/player/axis/axis.mdl")
        
precache_model("models/player/axis/axisT.mdl")
        
precache_model("models/player/allies/allies.mdl")
        
precache_model("models/player/allies/alliesT.mdl")
    }
}

public 
hudmodelset(id) {
    new 
team get_user_team(id)
    
    if(
forest) {
        switch(
team) {
            case 
1dod_set_model(id"allies")
            case 
2dod_set_model(id"axis")
        }
    }

__________________
Don't ever place an order with Vee Servers. This is why.
allenwr is offline
Send a message via ICQ to allenwr Send a message via Yahoo to allenwr
 



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:09.


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