tso1605577
|
分享:
▼
x0
|
[插件] Not finished 100% Original , Hud 辅入类型的sma
图 1.
图 2.
各位不好意思,我害你们大家都不明白, 我附上图 给大家清楚一点吧 1. 各位会看到Hud 是会同步我曾经我打的字 , 以作显示介面 2.当我打ask 的时候, Message 会打出 luciffer 字 , (曾记录的字句) 3.当 大家留意到我曾经的写法 , 我是要求把所有链盘的按都修改了 , 即是 假如你希望使用时! 请你们必须写一个脚本 先记录玩家先前的链盘设定 ,后才强制修改字句。 4.所有的字由P_(要打的字) 为一个指令 , 例如 P_a , Hud 显示 a 5.特殊功能 : 例如 "回车" 是 P_back , 绑定字句 是 bind_me 显示 hud , 是 say show 隐藏 hud 是 say hide 先前我指可以把登入系统连系的意思, 只要你把 "第二重点" 的Message 护取 , 后作记录, 即可以 使用 复制程式
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "Anson"
new iMessages[33][25];
new column[25]
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("P_a","password_a")
register_clcmd("P_b","password_b")
register_clcmd("P_c","password_c")
register_clcmd("P_d","password_d")
register_clcmd("P_e","password_e")
register_clcmd("P_f","password_f")
register_clcmd("P_g","password_g")
register_clcmd("P_h","password_h")
register_clcmd("P_i","password_i")
register_clcmd("P_j","password_j")
register_clcmd("P_l","password_l")
register_clcmd("P_m","password_m")
register_clcmd("P_n","password_n")
register_clcmd("P_o","password_o")
register_clcmd("P_p","password_p")
register_clcmd("P_q","password_q")
register_clcmd("P_r","password_r")
register_clcmd("P_s","password_s")
register_clcmd("P_t","password_t")
register_clcmd("P_u","password_u")
register_clcmd("P_v","password_v")
register_clcmd("P_w","password_w")
register_clcmd("P_x","password_x")
register_clcmd("P_y","password_y")
register_clcmd("P_z","password_z")
register_clcmd("P_0","password_0")
register_clcmd("P_1","password_1")
register_clcmd("P_2","password_2")
register_clcmd("P_3","password_3")
register_clcmd("P_4","password_4")
register_clcmd("P_5","password_5")
register_clcmd("P_6","password_6")
register_clcmd("P_7","password_7")
register_clcmd("P_8","password_8")
register_clcmd("P_9","password_9")
register_clcmd("say show","show")
register_clcmd("say hide","hide")
register_clcmd("say ask","ask_iMessages")
register_clcmd("P_back","password_backspace")
register_clcmd("bind_me","bind")
}
public show_hud(taskid)
{
new id = taskid-100
set_hudmessage(255, 255, 255, 0.5, 0.5, 0, 3.0, 1.0 ,0.0 ,0.0, 1);
show_hudmessage(id, "登入帐号 [%i] :^x03 %s^x03 ", column[id] , iMessages[id])
}
public ask_iMessages(id)
{
client_print(0, print_chat, "^x04[CPS]^x03 登入帐号是 %s ^x03 ", iMessages[id])
}
public show(id)
{
set_task(0.1, "show_hud", id+100, _, _, "b");
}
public hide(id)
{
remove_task(id+100)
}
public password_backspace(id)
{
if(column[id] < 24 && column[id] > 0 )
{
column[id] --
iMessages[id][column[id]] = ' '
iMessages[id][24] = 0
return
}
}
public password_a(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'a'
iMessages[id][24] = 0
column[id] ++
}
}
public password_b(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'b'
iMessages[id][24] = 0
column[id] ++
}
}
public password_c(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'c'
iMessages[id][24] = 0
column[id] ++
}
}
public password_d(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'd'
iMessages[id][24] = 0
column[id] ++
}
}
public password_e(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'e'
iMessages[id][24] = 0
column[id] ++
}
}
public password_f(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'f'
iMessages[id][24] = 0
column[id] ++
}
}
public password_g(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'g'
iMessages[id][24] = 0
column[id] ++
}
}
public password_h(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'h'
iMessages[id][24] = 0
column[id] ++
}
}
public password_i(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'i'
iMessages[id][24] = 0
column[id] ++
}
}
public password_j(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'j'
iMessages[id][24] = 0
column[id] ++
}
}
public password_k(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'k'
iMessages[id][24] = 0
column[id] ++
}
}
public password_l(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'l'
iMessages[id][24] = 0
column[id] ++
}
}
public password_m(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'm'
iMessages[id][24] = 0
column[id] ++
}
}
public password_n(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'n'
iMessages[id][24] = 0
column[id] ++
}
}
public password_o(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'o'
iMessages[id][24] = 0
column[id] ++
}
}
public password_p(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'p'
iMessages[id][24] = 0
column[id] ++
}
}
public password_q(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'q'
iMessages[id][24] = 0
column[id] ++
}
}
public password_r(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'r'
iMessages[id][24] = 0
column[id] ++
}
}
public password_s(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 's'
iMessages[id][24] = 0
column[id] ++
}
}
public password_t(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 't'
iMessages[id][24] = 0
column[id] ++
}
}
public password_u(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'u'
iMessages[id][24] = 0
column[id] ++
}
}
public password_v(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'v'
iMessages[id][24] = 0
column[id] ++
}
}
public password_w(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'w'
iMessages[id][24] = 0
column[id] ++
}
}
public password_x(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'x'
iMessages[id][24] = 0
column[id] ++
}
}
public password_y(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'y'
iMessages[id][24] = 0
column[id] ++
}
}
public password_z(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = 'z'
iMessages[id][24] = 0
column[id] ++
}
}
public password_0(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '0'
iMessages[id][24] = 0
column[id] ++
}
}
public password_1(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '1'
iMessages[id][24] = 0
column[id] ++
}
}
public password_2(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '2'
iMessages[id][24] = 0
column[id] ++
}
}
public password_3(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '3'
iMessages[id][24] = 0
column[id] ++
}
}
public password_4(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '4'
iMessages[id][24] = 0
column[id] ++
}
}
public password_5(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '5'
iMessages[id][24] = 0
column[id] ++
}
}
public password_6(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '6'
iMessages[id][24] = 0
column[id] ++
}
}
public password_7(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '7'
iMessages[id][24] = 0
column[id] ++
}
}
public password_8(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '8'
iMessages[id][24] = 0
column[id] ++
}
}
public password_9(id)
{
if(column[id] < 23)
{
iMessages[id][column[id]] = '9'
iMessages[id][24] = 0
column[id] ++
}
}
public bind(id)
{
client_cmd(id, "bind a P_a")
client_cmd(id, "bind b P_b")
client_cmd(id, "bind c P_c")
client_cmd(id, "bind d P_d")
client_cmd(id, "bind e P_e")
client_cmd(id, "bind f P_f")
client_cmd(id, "bind g P_g")
client_cmd(id, "bind h P_h")
client_cmd(id, "bind i P_i")
client_cmd(id, "bind j P_j")
client_cmd(id, "bind k P_k")
client_cmd(id, "bind l P_l")
client_cmd(id, "bind m P_m")
client_cmd(id, "bind n P_n")
client_cmd(id, "bind o P_o")
client_cmd(id, "bind p P_p")
client_cmd(id, "bind q P_q")
client_cmd(id, "bind r P_r")
client_cmd(id, "bind s P_s")
client_cmd(id, "bind t P_t")
client_cmd(id, "bind u P_u")
client_cmd(id, "bind v P_v")
client_cmd(id, "bind w P_w")
client_cmd(id, "bind x P_x")
client_cmd(id, "bind y P_y")
client_cmd(id, "bind z P_z")
client_cmd(id, "bind 0 P_0")
client_cmd(id, "bind 1 P_1")
client_cmd(id, "bind 2 P_2")
client_cmd(id, "bind 3 P_3")
client_cmd(id, "bind 4 P_4")
client_cmd(id, "bind 5 P_5")
client_cmd(id, "bind 6 P_6")
client_cmd(id, "bind 7 P_7")
client_cmd(id, "bind 8 P_8")
client_cmd(id, "bind 9 P_9")
client_cmd(id, "bind backspace P_back")
}
[ 此文章被tso1605577在2013-10-01 18:36重新编辑 ]
|
|
x1
[楼 主]
From:IANA保留地址 | Posted:2013-09-26 16:32 |
|
|
|