dvbbs
English
手机APP
Help帮助
dvbbs

>> AMXX插件提供,AMXX插件分享
搜一搜更多此类问题 
索沛CS1.6论坛 CS反作弊 CS1.6下载 amxx sma插件 cs对战平台CS资源技术专区AMXX插件脚本

您是本帖的第 1115 个阅读者
树形 打印
标题:
[求助]谁有key_bind.amxx??????????【急求!】
G36A1_M203
头衔:MNUDFT
等级:老板
索币:53
文章:1605
RMB:0¥
战队:love.Mas
注册:2011年1月8日
楼主
 

发贴心情
[求助]谁有key_bind.amxx??????????【急求!】
RT

图片点击可在新窗口打开查看
==============================
ip地址已设置保密
2011-03-27 19:18:00
★赠送VIP帐号【无需发20贴以及等待2天】
libin_5200
等级:乞丐
索币:62
文章:7
RMB:0¥
战队:逃兵
注册:2013年8月27日
2
 

发贴心情

QQ群2737123 来找群主 给你!

ip地址已设置保密
2013-08-28 22:41:00
★索币冲值方式【充值卡/Q币/游戏卡】
CS0123456789
头衔:危机
等级:副经理
索币:50
文章:811
RMB:0¥
战队:逃兵
注册:2010年7月4日
3
 

发贴心情

/*
 * AMX MOD X
 *
 * auth:nwb13
 * last edit:2004.11.9
 *
 */


#include <amxmodx>
#include <amxmisc>


#define MAX_BINDS 10  //

new bind_key[MAX_BINDS][16]
new bind_cmd[MAX_BINDS][32]
new bind_usage[MAX_BINDS][128]
new g_kNum

public plugin_init() {
 register_plugin( "client key bind", "0.31", "nwb13" )
 register_clcmd("say /keyhelp","client_help",0,"- displays server help")  

 new configsDir[64]
 get_configsdir(configsDir, 63)
 format(configsDir, 63, "%s/key_bind.ini", configsDir)
 loadSettings(configsDir)
}

loadSettings(szFilename[]) {
 if (!file_exists(szFilename))
  return 0
 new temp[256]
 new a, pos = 0

 while ( g_kNum < MAX_BINDS && read_file(szFilename,pos++,temp,255,a) ) {        
 if ( temp[0] == ';' )
  continue
 if (parse(temp, bind_key[ g_kNum ] ,15, bind_cmd[ g_kNum ], 31, bind_usage[ g_kNum ],127 )<2)
  continue
 server_print("key: %s ;cmd: %s",bind_key[g_kNum],bind_cmd[g_kNum] )
 ++g_kNum
 }
 server_print("[AMXX] Load %d key to bind for client.",g_kNum )
 return 1
}

public client_putinserver(id){
    new ids[2]
    ids[0]=id
    set_task(5.0,"bind_keys",id,ids,2)
 set_task(20.0,"help_note",id,ids,2)
}

public bind_keys(ids[]){
 new id = ids[0]
 for (new i=0; i<g_kNum; ++i){
      client_cmd(id,"bind ^"%s^" ^"%s^"",bind_key[i],bind_cmd[i])
      //client_print(id,print_chat,"bind ^"%s^" ^"%s^"",bind_key[i],bind_cmd[i])
    }
}

public help_note(ids[]){
 new id =ids[0]
 client_print(id,print_chat,"*  /keyhelp ")  

}

public client_help(id) {   new pos = 0 ,temp[512]
   pos = format(temp,511,"<html><head><style type=^"text/css^">pre{color:#FFB000;}body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><pre><body>")
 pos += format(temp[pos],511-pos,"欢迎来到该服务器, 朋友!^n服务器为了使你玩的方便, 绑定了一些有用的键位, 功能如下:^n")
 for (new i=0; i<g_kNum; ++i)
    pos += format(temp[pos],511-pos,"按键 %s 为 %s ^n",bind_key[i],bind_usage[i])
 pos += format(temp[pos],511-pos,"好了! 祝你在游戏里玩得愉快!^n")
   format(temp[pos],511-pos,"</pre></body></html>")
 show_motd(id,temp,"z")
}


没什么想说的
ip地址已设置保密
2013-09-03 5:18:00
★【没时间发帖也可以获得上万索币】

 3   3   1/1页      1    
  快速回复:
[求助]谁有key_bind.amxx??????????【急求!】
发贴表情
字体颜色 字体背景颜色 粗体 斜体 下划线 超级连接 引用 清理代码 上传图片 表情库
内容限制: 字节.
©2007 sorpack.Com
Powered By Dvbbs Version 7.1.0 Sp1
页面执行时间 0.14063 秒, 4 次数据查询