廣告廣告
  加入我的最愛 設為首頁 風格修改
首頁 首尾
 手機版   訂閱   地圖  簡體 
您是第 1788 個閱讀者
 
發表文章 發表投票 回覆文章
  可列印版   加為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.102174 second(s),query:16 Gzip disabled
本站由 瀛睿律師事務所 擔任常年法律顧問 | 免責聲明 | 本網站已依台灣網站內容分級規定處理 | 連絡我們 | 訪客留言