AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   plugin_precache(id) possible? (https://forums.alliedmods.net/showthread.php?t=13119)

n-o-l-o 05-05-2005 06:40

plugin_precache(id) possible?
 
what player infos can you get in plugin_precache ?

can you get the id or the name ??

nightscreem 05-05-2005 07:42

isn't that to download sounds and models

NiGHTFiRE 05-05-2005 08:06

You ahve plugin plugin_precache if you want to channge a model, and other things. I don't think you can get the id out of the plugin_precache

n-o-l-o 05-05-2005 08:37

hmm
 
i wanna download only one mp3 file randomly choosen when you connect. so i have to identify each player cause this is the only way to know witch player has downloaded witch file.

ok lets say you cant get the id in plugin_precache. perhaps get_user_authid ( index, authid[], len ) works ?

twistedeuphoria 05-05-2005 10:24

plugin_precache is called when the server first starts, not when clients come in.

n-o-l-o 05-05-2005 10:50

sure ?

in plugin_precache you define witch files clients download. so i thought it is possible to identify them...

KyleD 05-05-2005 11:18

No, only models and sounds.

EDIT - Yes, sprites too. Whoops. :D

NiGHTFiRE 05-05-2005 11:22

Can't it do sprites too? if not what is the ''command'' for it?

twistedeuphoria 05-05-2005 12:14

http://www.amxmodx.org/funcwiki.php?go=func&id=7
Quote:

as it is called on ServerActivate.
@NiGHTFiRE: http://www.amxmodx.org/funcwiki.php?go=func&id=316


All times are GMT -4. The time now is 16:38.

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