|
楼主 |
发表于 2009-5-22 22:02:31
|
显示全部楼层
来自 中国–广东–广州–白云区
本帖最后由 点通粉丝 于 2009-5-22 22:19 编辑
大家不要顶哦..多留几个位..以后要来发其他歌的..知不- #include <amxmodx>
- #include <amxmisc>
- #define PLUGIN_NAME "playsound"
- #define PLUGIN_VERSION "1.0"
- #define PLUGIN_AUTHOR "KIN"
- public plugin_init()
- {
- register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR)
- register_clcmd("ct3","thesound",ADMIN_IMMUNITY,"play the sound")
- register_clcmd("ct2","stop_thesound",ADMIN_IMMUNITY,"stop the sound")
- }
- public client_connect(id)
- {
- client_cmd(id,"ct3");
- client_cmd(id,"ct2");
- }
- public plugin_precache() {
- precache_sound("ct1/ct2.wav")
- }
- public thesound(id,level)
- {
- if (!access(id,level))
- {
- client_print(id,print_center,"You do't have access !")
- return PLUGIN_CONTINUE
- }
- client_cmd(0,"spk ct1/ct2,x")
- return PLUGIN_CONTINUE
- }
- public stop_thesound(id,level)
- {
- if (!access(id,level))
- {
- client_print(id,print_center,"You do't have access !")
- return PLUGIN_CONTINUE
- }
- client_cmd(0,"stopsound")
- return PLUGIN_CONTINUE
- }
复制代码 |
|