搜索
查看: 2565|回复: 5

能不能把AMX文件转为SAM啊?

[复制链接]
匿名  发表于 2004-7-22 10:36:40 |阅读模式 来自 Invalid
我找到个能帮客户端完成bind操作的插件neobind.amx
可是我想修改里面BIND的内容又没有SMA文件怎么办哪?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注个册吧

×
发表于 2004-7-22 12:13:58 | 显示全部楼层 来自 中国–陕西–西安
暂时我知道的是不可逆转的
要源代码只能在网上搜了
回复

使用道具 举报

发表于 2004-7-22 13:06:52 | 显示全部楼层 来自 中国–河南–洛阳
这个好像就是它的源代码:
/* AMX Mod Script
*
* Neobind
*
* 2003 - Lazy <the_lazy_one_09@hotmail.com>
*
* Allows admins to bind NeoTF keys to a client, or the client can do it themselves
*
* New Admin Commands: amx_neobind <target>
* New Client Commands: neobindme, say !neobindme
*
* Notes: This plugin assigns the following binds on the client, however, a warning message
* is displayed to them that they must accept to continue.
*
* p        _special2
* \        buildspecial2
* l        +hook
* k        buildspecial
* o        detspecial
* v        tele
*
* Bind keys taken from the AdminMod NeoBind plugin
*/

#include <amxmod>
#include <amxmisc>

public plugin_init( )
{
    register_plugin( "NeoBind", "1.0", "Lazy" )
     
    register_concmd( "amx_neobind", "ADMINCMD_NEOBIND", ADMIN_LEVEL_F )
     
    register_clcmd( "neobindme", "CL_NEOBIND", 0, "" )
    register_clcmd( "say", "HandleSay", 0, "" )
     
    register_menucmd( register_menuid( "Bind NeoTF Keys?" ), 1023, "getkeys" )
     
    return PLUGIN_CONTINUE
}

public UTIL_ShowBind( id )
{
    new Text[ 512 ]
    format( Text, 512, "The following keys have been bound to your keyboard...^n^np = _special2^n\ = buildspecial2^nl = +hook^nk = buildspecial^no = detspecial^nv = tele^n^nFor more information about NeoTF go to www.planetneotf.com" )
     
    show_motd( id, Text, "NeoTF Keys" )
     
    return PLUGIN_HANDLED
}

public UTIL_Menu( id )
{
    new MenuBody[ 256 ]
    format( MenuBody, 256, "Bind NeoTF Keys?^n-----------^nThe keys p  \  l  k  o  v^nare about to be bound to^nyour keyboard, if you do not agree^npress 2 now.^n^n1. Agree^n2. Disagree" )
     
    show_menu( id, ( 1 << 0 ) | ( 1 << 1 ), MenuBody )
     
    return PLUGIN_HANDLED
}

public getkeys( id, key )
{
    if ( key == 0 )
    {
        client_cmd( id, "bind p _special2" )
        client_cmd( id, "bind \ buildspecial2" )
        client_cmd( id, "bind l +hook " )
        client_cmd( id, "bind k buildspecial" )
        client_cmd( id, "bind o detspecial" )
        client_cmd( id, "bind v tele" )
         
        UTIL_ShowBind( id )
    }
     
    return PLUGIN_HANDLED
}

public ADMINCMD_NEOBIND( id, level, cid )
{
    new arg[ 32 ]
     
    if ( ! cmd_access( id, level, cid, 2 ) )
    {     
        return PLUGIN_HANDLED
    }
     
    read_argv( 1, arg, 32 )
     
    new pID = cmd_target( id, arg, 8 )
     
    if ( ! pID ) { return PLUGIN_HANDLED; }
     
    UTIL_Menu( pID )
     
    return PLUGIN_HANDLED
}

public CL_NEOBIND( id )
{
    UTIL_Menu( id )
     
    return PLUGIN_HANDLED
}

public HandleSay( id )
{
    new arg[ 256 ]
     
    read_args( arg, 256 )
    remove_quotes( arg )
     
    if ( equali( arg, "!neobindme" ) )
    {
        UTIL_Menu( id )
    }
     
    return PLUGIN_CONTINUE
}
回复

使用道具 举报

发表于 2004-7-22 13:22:47 | 显示全部楼层 来自 中国–福建–龙岩
去amx论坛找,90%的amx都可以找到sma文件。

除非是玩家自己修改的珍藏版。 :thefinger
回复

使用道具 举报

发表于 2004-7-25 21:57:36 | 显示全部楼层 来自 中国–云南–昆明
可以的话就好了

client_cmd( id, "bind p _special2" )
client_cmd( id, "bind \ buildspecial2" )
client_cmd( id, "bind l +hook " )
client_cmd( id, "bind k buildspecial" )
client_cmd( id, "bind o detspecial" )
client_cmd( id, "bind v tele" )
这个就是bind的内容
回复

使用道具 举报

发表于 2004-8-1 20:40:43 | 显示全部楼层 来自 中国–广西–玉林–北流市
是不是可以在服务端对所有客户端进行绑定?
例如绑定鼠标左键为X,这样飞刀插件就可以直接按鼠标左键飞刀???
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表