AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Force Download Files (https://forums.alliedmods.net/showthread.php?t=159036)

Diegorkable 06-12-2011 06:48

Force Download Files
 
Hey guys
I made a script that plays music.
The problem is that according to the CODE i made I load it to the right place in the FTP and when people get in the server it doesn't make them download the music files, therefore they can't hear it.

How can I make people download the music files I load into the FTP?

drekes 06-12-2011 06:49

Re: Force Download Files
 
precache the sounds in your plugin.

Diegorkable 06-12-2011 07:02

Re: Force Download Files
 
and how do i do that?
can you script me the code and leave X as the song's name?
I'd edit it later.

ConnorMcLeod 06-12-2011 07:23

Re: Force Download Files
 
Use speech.ini is another option :)

Default :
Code:

; Menu configuration file
; File location: $moddir/addons/amxmodx/configs/speech.ini
; To use with Commands Menu plugin

; NOTE: By default in all settings the access level is set to "u".
;      However you can change that, to limit the access to some settings.

; Commands Menu: ; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on all clients
; "d" - back to menu when executed

"Hello!"                        "spk \'vox/hello\'"                        "cd"        "u"
"Don't think so"                "spk \'barney/dontguess\'"                "cd"        "u"
"Don't ask me"                        "spk \'barney/dontaskme\'"                "cd"        "u"
"Hey! Stop that!"                "spk \'barney/donthurtem\'"                "cd"        "u"
"Yup"                                "spk \'barney/yup\'"                        "cd"        "u"
"Nope"                                "spk \'barney/nope\'"                        "cd"        "u"
"Maybe"                                "spk \'barney/maybe\'"                        "cd"        "u"
"Seeya"                                "spk \'barney/seeya\'"                        "cd"        "u"
"Man that sounded bad"                "spk \'barney/soundsbad\'"                "cd"        "u"
"Hello and die"                        "spk \'vox/hello and die\'"                "cd"        "u"
"Move!"                                "spk \'hgrunt/move! _comma yessir!\'"        "cd"        "u"
"You will definitely pay!"        "spk \'hgrunt/c2a2_hg_chat5a\'"                "cd"        "u"
"Laughter"                        "spk \'hgrunt/c2a3_hg_laugh\'"                "cd"        "u"
"Silence!"                        "spk \'hgrunt/silence!\'"                "cd"        "u"
"You talk too much"                "spk \'barney/youtalkmuch\'"                "cd"        "u"
"You thinkin?"                        "spk \'barney/thinking\'"                "cd"        "u"
"Open fire Gordon!"                "spk \'barney/openfire\'"                "cd"        "u"
"Couldnt make a bigger mess"        "spk \'barney/bigmess\'"                "cd"        "u"
"I have a Bad feeling"                "spk \'barney/badfeeling\'"                "cd"        "u"
"Yes sir!"                        "spk \'hgrunt/yessir!\'"                "cd"        "u"
"No sir"                        "spk \'barney/nosir\'"                        "cd"        "u"


-> added cstrike/sound/mp3/my_first_mp3.mp3 :
Code:

; Menu configuration file
; File location: $moddir/addons/amxmodx/configs/speech.ini
; To use with Commands Menu plugin

; NOTE: By default in all settings the access level is set to "u".
;      However you can change that, to limit the access to some settings.

; Commands Menu: ; < description > < command > < flags > < access level >
; "a" - execute from server console
; "b" - execute from admin console
; "c" - execute on all clients
; "d" - back to menu when executed

"My First MP3"                        "mp3 play sound/mp3/my_first_mp3"        "cd"        "u"
"Hello!"                        "spk \'vox/hello\'"                        "cd"        "u"
"Don't think so"                "spk \'barney/dontguess\'"                "cd"        "u"
"Don't ask me"                        "spk \'barney/dontaskme\'"                "cd"        "u"
"Hey! Stop that!"                "spk \'barney/donthurtem\'"                "cd"        "u"
"Yup"                                "spk \'barney/yup\'"                        "cd"        "u"
"Nope"                                "spk \'barney/nope\'"                        "cd"        "u"
"Maybe"                                "spk \'barney/maybe\'"                        "cd"        "u"
"Seeya"                                "spk \'barney/seeya\'"                        "cd"        "u"
"Man that sounded bad"                "spk \'barney/soundsbad\'"                "cd"        "u"
"Hello and die"                        "spk \'vox/hello and die\'"                "cd"        "u"
"Move!"                                "spk \'hgrunt/move! _comma yessir!\'"        "cd"        "u"
"You will definitely pay!"        "spk \'hgrunt/c2a2_hg_chat5a\'"                "cd"        "u"
"Laughter"                        "spk \'hgrunt/c2a3_hg_laugh\'"                "cd"        "u"
"Silence!"                        "spk \'hgrunt/silence!\'"                "cd"        "u"
"You talk too much"                "spk \'barney/youtalkmuch\'"                "cd"        "u"
"You thinkin?"                        "spk \'barney/thinking\'"                "cd"        "u"
"Open fire Gordon!"                "spk \'barney/openfire\'"                "cd"        "u"
"Couldnt make a bigger mess"        "spk \'barney/bigmess\'"                "cd"        "u"
"I have a Bad feeling"                "spk \'barney/badfeeling\'"                "cd"        "u"
"Yes sir!"                        "spk \'hgrunt/yessir!\'"                "cd"        "u"
"No sir"                        "spk \'barney/nosir\'"                        "cd"        "u"


Diegorkable 06-12-2011 07:25

Re: Force Download Files
 
k tyvm


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

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