Raised This Month: $ Target: $400
 0% 

Force Download Files


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 06-12-2011 , 06:48   Force Download Files
Reply With Quote #1

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?
Diegorkable is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-12-2011 , 06:49   Re: Force Download Files
Reply With Quote #2

precache the sounds in your plugin.
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 06-12-2011 , 07:02   Re: Force Download Files
Reply With Quote #3

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.
Diegorkable is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 06-12-2011 , 07:23   Re: Force Download Files
Reply With Quote #4

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"
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Diegorkable
Veteran Member
Join Date: Jun 2011
Old 06-12-2011 , 07:25   Re: Force Download Files
Reply With Quote #5

k tyvm
Diegorkable is offline
Reply


Thread Tools
Display Modes

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 23:31.


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