Raised This Month: $ Target: $400
 0% 

does_function_exist(is_file_precached()) == 0


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
genesis
Senior Member
Join Date: Oct 2004
Location: CALIFORNIA, USA
Old 02-24-2005 , 03:56   does_function_exist(is_file_precached()) == 0
Reply With Quote #1

my server happens to precache many files, and I want to cut back the number of precaches per connect:

you have to precache a model before you use it but is there any way to do something like this:

1st Scenario

Code:
on error resume next entity_set_model(victim, "models/predator.mdl") next

or can I do something like this
I hear file_exists only checks the server is this true?
2nd Scenario
Code:
if file_exists("models/predator.mdl") {               entity_set_model(victim, "models/predator.mdl") }

3rd Scenario

Code:
is_file_precached("models/predator.mdl")         entity_set_model(victim, "models/predator.mdl")

^^ I doubt there is even a function for scenario 3, but that is a great function to have, I think we should get that function if it doesnt exist.
__________________
CS 1.6 cali.radclan.net:27015
I have a feeling we're not in cs anymore.
I take pride that all my AMXX plugins were writen in notepad.
genesis 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 13:58.


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