nwb13 快请进...........
client_connect(id){clent_cmd(id,"mp3 loop media/half-life??.mp3")
这两行要写在那里才对?麻烦说清楚一点!!!谢谢... 不明白你的意思,你要干什么? 那怎样才能使客户端连接的时候让客户端运行mp3 play media/Half-
Life??.mp3命令呢?
client_connect(id){
clent_cmd(id,"mp3 loop media/half-life??.mp3")
}
我不知道怎么加这两行!应该加到那里才对? 做一个插件(EntryPlaySound)。
#include <amxmod>
#define Maxsounds 8
// sounds localized in gcf cache (valve/media)
// you can add more song if you want.
new soundlist[] = {"Half-Life01","Half-Life02","Half-Life03","Half-Life08","Half-Life11","Half-Life12","Half-Life13","Half-Life17"}
public client_connect(id) {
new i
i = random_num(0,Maxsounds-1)
client_cmd(id,"mp3 loop media/%s",soundlist)
return PLUGIN_CONTINUE
}
public plugin_init() {
register_plugin("EntryPlaySound","0.9","wzl")
return PLUGIN_CONTINUE
}
此插件只能适用于正版用户。但只要修改一下就能for No Steam版的,如:half-life??.mp3放在sound\misc目录下时,就把插件中“media”改为“sound/misc”即可。 我用的是 Advanced_MP3_Player.max , mp3是放在media下,插件默认播放的有half-life01.08.10.11.12.13.14.15.16.17 太多了! 能不能把插件修改成只播放一首mp3的?这样也就不会让客户端下载太多的mp3了!
页:
[1]