Raised This Month: $12 Target: $400
 3% 

plugin_precache(id) possible?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
n-o-l-o
Member
Join Date: Sep 2004
Location: Germany
Old 05-05-2005 , 06:40   plugin_precache(id) possible?
Reply With Quote #1

what player infos can you get in plugin_precache ?

can you get the id or the name ??
n-o-l-o is offline
nightscreem
Veteran Member
Join Date: Jul 2004
Location: Belgium
Old 05-05-2005 , 07:42  
Reply With Quote #2

isn't that to download sounds and models
__________________
- Bye bye!
nightscreem is offline
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 05-05-2005 , 08:06  
Reply With Quote #3

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
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
n-o-l-o
Member
Join Date: Sep 2004
Location: Germany
Old 05-05-2005 , 08:37   hmm
Reply With Quote #4

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 ?
n-o-l-o is offline
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 05-05-2005 , 10:24  
Reply With Quote #5

plugin_precache is called when the server first starts, not when clients come in.
__________________
twistedeuphoria is offline
n-o-l-o
Member
Join Date: Sep 2004
Location: Germany
Old 05-05-2005 , 10:50  
Reply With Quote #6

sure ?

in plugin_precache you define witch files clients download. so i thought it is possible to identify them...
n-o-l-o is offline
KyleD
Member
Join Date: Mar 2005
Location: Anchorage, AK
Old 05-05-2005 , 11:18  
Reply With Quote #7

No, only models and sounds.

EDIT - Yes, sprites too. Whoops.
__________________
KyleD is offline
Send a message via MSN to KyleD
NiGHTFiRE
Senior Member
Join Date: Dec 2004
Location: Sweden
Old 05-05-2005 , 11:22  
Reply With Quote #8

Can't it do sprites too? if not what is the ''command'' for it?
NiGHTFiRE is offline
Send a message via AIM to NiGHTFiRE Send a message via MSN to NiGHTFiRE
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 05-05-2005 , 12:14  
Reply With Quote #9

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
__________________
twistedeuphoria is offline
Reply



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 12:26.


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