广告广告
  加入我的最爱 设为首页 风格修改
首页 首尾
 手机版   订阅   地图  繁体 
您是第 1767 个阅读者
 
发表文章 发表投票 回覆文章
  可列印版   加为IE收藏   收藏主题   上一主题 | 下一主题   
SkY★NeT
数位造型
个人文章 个人相簿 个人日记 个人地图
路人甲
级别: 帐号封锁 该用户目前不上站
推文 x66 鲜花 x280
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片
推文 x0
[1.6][插件] 在插件中bind键(已解决)  (向下沉.....)
想问要加在那里,以及那句应该是什么??

我现在是要bind F11 /votekick,根据猪聪所教...是....这种...client_cmd什么什么的...请问应该是怎的??  (FORGET)

另外,我不知要在那个位置...表情

请帮我加在这里.....

#include <amxmodx>
#include <amxmisc>


#define Keyschooseplayer (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
#define Keysreason (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<7)
#define Keysyousure (1<<0)|(1<<1)
#define Keysallvote (1<<0)|(1<<1)|(1<<3)|(1<<5)

#define VaultKey "VoteKick_%s"
#define VaultKeyTime "VoteKickTime_%s"

new MenuPoschooseplayer[33]
new MenuPlayerschooseplayer[32]

new votes[2]
new bool:canvote
new votekicking[33]
new votekickids[2][32]
new votekickreason[28]
new voteendid
new cvaravk, cvarab, cvar_ratekick, cvar_ratekicked

public plugin_init() {
       register_plugin("强制退场插件","1.0","原作者:NL)Ramon(NL")
       register_clcmd("say /votekick","Showchooseplayer")
       register_menucmd(register_menuid("allvote"), Keysallvote, "Pressedallvote")
       register_menucmd(register_menuid("reason"), Keysreason, "Pressedreason")
       register_menucmd(register_menuid("yousure"), Keysyousure, "Pressedyousure")
       register_menucmd(register_menuid("chooseplayer"), Keyschooseplayer, "Pressedchooseplayer")
       register_concmd("amx_blockvotekick","blockvotekick", ADMIN_BAN,"")
       register_concmd("amx_allowvotekick","allowvotekick", ADMIN_BAN,"")
       register_concmd("amx_blockvotekickid","blockvotekickid", ADMIN_BAN,"SteamID")
       register_concmd("amx_allowvotekickid","allowvotekickid", ADMIN_BAN,"SteamID")
       register_concmd("amx_cancelvotekick","cancelvote", ADMIN_BAN,"SteamID")
       cvaravk = register_cvar("amx_adminvotekick","0")
       cvarab = register_cvar("amx_votekickamxmbans","10")
       cvar_ratekicked = register_cvar("amx_votekick_failrate", "1")
       cvar_ratekick = register_cvar("amx_votekick_rate", "50")
       register_clcmd("vote_kick_reason","reasonenter")
}
public cancelvote(id,level,cid) {
       if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
       if(voteendid) {
              remove_task(voteendid)
              client_print(id,print_console,"")
              client_print(0,print_chat,"")
       }
       else
       {
              client_print(id,print_console,"")
       }
       return PLUGIN_CONTINUE
}


后面还有.....不过我想不用了........


[ 此文章被a97444039在2010-12-22 23:09重新编辑 ]



献花 x0 回到顶端 [楼 主] From:香港网上行 | Posted:2010-12-22 20:34 |
i-c0112
个人头像
个人文章 个人相簿 个人日记 个人地图
小有名气
级别: 小有名气 该用户目前不上站
推文 x6 鲜花 x194
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

你要的是应该像这样的吧
复制程式
client_cmd(id, "bind F11 ^"say /votekick^"")


献花 x1 回到顶端 [1 楼] From:台湾中华电信 | Posted:2010-12-22 20:46 |
SkY★NeT
数位造型
个人文章 个人相簿 个人日记 个人地图
路人甲
级别: 帐号封锁 该用户目前不上站
推文 x66 鲜花 x280
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

下面是引用 i-c0112 于 2010-12-22 20:46 发表的 : 到引言文
你要的是应该像这样的吧
复制程式
client_cmd(id, "bind F11 ^"say /votekick^"")


试试帮我加在这里吧,不知为何....放了就有Error- -

#include <amxmodx>
#include <amxmisc>


#define Keyschooseplayer (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<5)|(1<<6)|(1<<7)|(1<<8)|(1<<9)
#define Keysreason (1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<7)
#define Keysyousure (1<<0)|(1<<1)
#define Keysallvote (1<<0)|(1<<1)|(1<<3)|(1<<5)

#define VaultKey "VoteKick_%s"
#define VaultKeyTime "VoteKickTime_%s"

new MenuPoschooseplayer[33]
new MenuPlayerschooseplayer[32]

new votes[2]
new bool:canvote
new votekicking[33]
new votekickids[2][32]
new votekickreason[28]
new voteendid
new cvaravk, cvarab, cvar_ratekick, cvar_ratekicked

public plugin_init() {
       register_plugin("强制退场插件","1.0","原作者:NL)Ramon(NL")
       register_clcmd("say /votekick","Showchooseplayer")
       register_menucmd(register_menuid("allvote"), Keysallvote, "Pressedallvote")
       register_menucmd(register_menuid("reason"), Keysreason, "Pressedreason")
       register_menucmd(register_menuid("yousure"), Keysyousure, "Pressedyousure")
       register_menucmd(register_menuid("chooseplayer"), Keyschooseplayer, "Pressedchooseplayer")
       register_concmd("amx_blockvotekick","blockvotekick", ADMIN_BAN,"")
       register_concmd("amx_allowvotekick","allowvotekick", ADMIN_BAN,"")
       register_concmd("amx_blockvotekickid","blockvotekickid", ADMIN_BAN,"SteamID")
       register_concmd("amx_allowvotekickid","allowvotekickid", ADMIN_BAN,"SteamID")
       register_concmd("amx_cancelvotekick","cancelvote", ADMIN_BAN,"SteamID")
       cvaravk = register_cvar("amx_adminvotekick","0")
       cvarab = register_cvar("amx_votekickamxmbans","10")
       cvar_ratekicked = register_cvar("amx_votekick_failrate", "1")
       cvar_ratekick = register_cvar("amx_votekick_rate", "50")
       register_clcmd("vote_kick_reason","reasonenter")
}
public cancelvote(id,level,cid) {
       if (!cmd_access(id,level,cid,1)) return PLUGIN_HANDLED
       if(voteendid) {
              remove_task(voteendid)
              client_print(id,print_console,"")
              client_print(0,print_chat,"")
       }
       else
       {
              client_print(id,print_console,"")
       }
       return PLUGIN_CONTINUE
}


献花 x0 回到顶端 [2 楼] From:香港网上行 | Posted:2010-12-22 21:29 |
史来姆
个人文章 个人相簿 个人日记 个人地图
特殊贡献奖
小有名气
级别: 小有名气 该用户目前不上站
推文 x371 鲜花 x529
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

public plugin_precache()
{
      server_cmd("bind f11 say /votekick")
}
fake
你不懂在msn问我就好了.....更可况是这些小问题


[ 此文章被史来姆在2010-12-22 23:06重新编辑 ]


献花 x1 回到顶端 [3 楼] From:香港网上行 | Posted:2010-12-22 21:41 |
SkY★NeT
数位造型
个人文章 个人相簿 个人日记 个人地图
路人甲
级别: 帐号封锁 该用户目前不上站
推文 x66 鲜花 x280
分享: 转寄此文章 Facebook Plurk Twitter 复制连结到剪贴簿 转换为繁体 转换为简体 载入图片

下面是引用 史来姆 于 2010-12-22 21:41 发表的 : 到引言文
public plugin_precache()
{
      server_cmd("bind f11 say /votekick")
}
fake
你不懂在msn问我就好了.....更可况是这些小问题


你错了一些表情

应该是

public plugin_precache()
{
      server_cmd("bind F11 ^"say /votekick^"")
}

呵呵表情


献花 x1 回到顶端 [4 楼] From:香港网上行 | Posted:2010-12-22 23:09 |

首页  发表文章 发表投票 回覆文章
Powered by PHPWind v1.3.6
Copyright © 2003-04 PHPWind
Processed in 0.128049 second(s),query:16 Gzip disabled
本站由 瀛睿律师事务所 担任常年法律顾问 | 免责声明 | 本网站已依台湾网站内容分级规定处理 | 连络我们 | 访客留言