help wid... half-life original sounds
wich one of these is called first?
plugin_precache() or client_connect() it sounds like it should be client_connect() but im not sure... |
plugin_precache is called long before client_connect. precache is called right about the time the plugin is initializing, in other words, at the start of a map. connect is called when a player connects to the server, in other words, after the map has started.
|
okey... this is the code...
Code:
Code:
and there another way to make the plugin play the sounds when the user is dling stuff... so if i do like this... Code:
|
plugin_precache is called when the plugin has to load everything. It is different than the client's precaching, which I believe is what you are trying to catch. Try it on client_authorized.
|
okaaaay
i guess like this: Code:
when exactly is that called... it says "when a player has authenticated with Steam" but i dont know what that is ;P |
Are you trying to have players hear music when they're connecting to your server? If so, why are you reinventing the wheel? This has already been done.
|
Quote:
and where has this been done? [offtopic] is it ur daughter on the pic? :)[/offtopic] |
It looks to me that this will not work for one major reason.
variable i is assigned to the function random_num() so every time ' i ' is called so is the function, which means that there is a 50% chance that it could play a song that is not precached. |
aha... that was 1 of my questions b4 if the i has the same value as b4... well how should i fix this? :)
|
Just precache both of them, then play a random song.
|
| All times are GMT -4. The time now is 23:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.