Raised This Month: $ Target: $400
 0% 

Connect music wont play


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
HowToRuski
Senior Member
Join Date: Feb 2019
Location: Hungary
Old 08-29-2020 , 12:39   Connect music wont play
Reply With Quote #1

Hello, i cant figure out how to make a mp3 song play when i connect a server.
When im connecting game console says
HTML Code:
Bad command: "mp3 play sound/biohazard/song1.mp3
- thats exactly what it says without a quote in the end.
Any help?

PHP Code:
public client_connect(id) { 
    new 
size file_size(configfile,1)
    new 
rsong random_num(0,size-1)
    new 
cursong[64], a
    read_file
(configfile,rsong,cursong,63,a)
    
client_cmd(id"mp3 play sound/biohazard/%s"cursong)
    return 
PLUGIN_CONTINUE 

Or anyone whos interested you can take a look in the plugin -
Attached Files
File Type: sma Get Plugin or Get Source (loading_music2.sma - 88 views - 974 Bytes)

Last edited by HowToRuski; 08-29-2020 at 12:59.
HowToRuski is offline
 



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 13:45.


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