AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Models (https://forums.alliedmods.net/showthread.php?t=160158)

Diegorkable 06-25-2011 15:22

Models
 
Hey guys!
I have a jailbreak server and we have a ball model, some people cant log in the server with the following error: Can not continue without models/kickball/ball.

How do I force people to download that model when they log in the server so they can see the ball?

I know how to force downloading .mp3 files in speech.ini but not models.

help please

t3hNox 06-25-2011 17:27

Re: Models
 
You have to precache the model.
Code:

public plugin_precache()
{
        precache_model("models/kickball/ball.mdl") // model directory
}


drekes 06-25-2011 19:30

Re: Models
 
If the ball is used by a certain plugin, that one should precache it.
If it's used by a certain map, create a .res file for it.


All times are GMT -4. The time now is 23:26.

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