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 -