谁给个详细的说明,谢谢!
是不是这个服务器?
202.104.147.168:27015 CRaZy CS 1.6!!!!!!!!!!!!!!!
哥哥们这个问题到底要好久才能解决?!》说的不对
听歌很简单,只用把你的MP3绑定键位就可以了!我自己都做了二十多首歌了! MP3 v1.0Beta - Steam onlyPlay MP3's on your clients.
Usage:
amx_playmp3 <mp3file> - Plays a MP3 file on the client
amx_repeatmp3 <mp3file> - Repeats a MP3 file on the client
amx_stopmp3 - Stop all MP3's
File options:
- Play one of the 27 buildin MP3's
- Offer a package with optional MP3's on your clansite
(Server will not undertake action when not present)
- Precache them*
This is my first plugin, based on a few others. It isn't amazing but it could add a nice ambience to a game.
- Buildin MP3's list
* IMPORTANT: You will need to remove the three lines above "public plugin_precache()" and the "*/" under } to enable Precaching of MP3 files.
This has NOT been tested.
/*____ ___ ____ _ ___
*|\/| _ \__ / __ _/ | /\| |__
*| |\/| |_/|_ \ \ V / || () | '_ \
*|_||_|_| |___/\_/|_(_)__/|_.__/
*
* MP3 v1.0Beta - Steam
* This file is provided as is (no warranties).
*
* Play MP3's on your clients.
* Usage:
* amx_playmp3 <mp3file> - Plays a MP3 file on the client
* amx_repeatmp3 <mp3file> - Repeats a MP3 file on the client
* amx_stopmp3 - Stop all MP3's
*
* The MP3 player will look for it's files in ModDir\valve\
*
* IMPORTANT: You will need to remove the three lines above "public plugin_precache()"
* and the line under under } in that block to enable Precaching of MP3 files.
* (Not tested yet)
*
* There allready a few MP3's in your HL, which will be listed in the thread also.
* (No precache required at all)
*/
#include <amxmod>
#include <amxmisc>
public admin_playmp3(id,level,cid) {
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new mp3var
read_argv(1,mp3var,1023)
client_cmd(0,"echo ^"Playing MP3.. Type mp3 stop to stop it.^";mp3 play ^"%s^"",mp3var)
return PLUGIN_HANDLED
}
public admin_loopmp3(id,level,cid) {
if (!cmd_access(id,level,cid,2))
return PLUGIN_HANDLED
new mp3loopvar
read_argv(1,mp3loopvar,1023)
client_cmd(0,"echo ^"Playing MP3 with Repeat on.. Type mp3 stop to stop it.^";mp3 loop ^"%s^"",mp3loopvar)
return PLUGIN_HANDLED
}
public admin_stopmp3(id,level,cid) {
client_cmd(0,"echo ^"MP3 disabled..^";mp3 stop")
return PLUGIN_HANDLED
}
/*
*Precache - Just replace the filenames but keep in mind
*the mp3 player only has access to ModDir/valve/
public plugin_precache()
{
precache_model("valve/media/Britney.mp3")
precache_model("valve/media/Shakira.mp3")
}
*/
public plugin_init(){
register_plugin("MP3","1.0b","DutchTiger")
register_concmd("amx_mp3","admin_playmp3",ADMIN_LEVEL_A,"mp3 - Play a MP3 on their computer")
register_concmd("amx_repeatmp3","admin_loopmp3",ADMIN_LEVEL_A,"mp3 - Repeat a MP3 on their computer")
register_concmd("amx_stopmp3","admin_stopmp3",ADMIN_LEVEL_A,"Stops ALL MP3 files playing.")
return PLUGIN_CONTINUE 我查了下AMX的论坛,不知是不是上面那个,因为我英文不是很好大家看下是不是? 不错的娱乐方法。
我顶顶顶!!!!! ding 再顶一下