chichchick59
Mr & Ms Pac-Man
- 13/7/11
- 111
- 2
em tống file amxx vào rồi vào game không có tác dụng gì hết 
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
em tống file amxx vào rồi vào game không có tác dụng gì hết 


Có file sma kem tống file amxx vào rồi vào game không có tác dụng gì hết
![]()


Hình như là amx_on 1,hoặc là có cvar của plugins để bật tắtCó file sma k
@All: Muốn cho plugin chạy 1 lệnh của console thì làm thế nào nhỉ ?
Có file sma k
@All: Muốn cho plugin chạy 1 lệnh của console thì làm thế nào nhỉ ?
client_cmd(index, const cmd)



#include <amxmodx>
#define PLUGIN "Health"
#define VERSION "1.0"
#define AUTHOR "Bui Duc Duy"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "show_health", "ab")
}
public show_health(id)
{
message_begin(MSG_ALL, get_user_msgid("StatusIcon"), {0,0,0}, id)
write_byte(1) // status: 0: off; 1: on; 2:flash
write_string(HEALTH)
write_byte(255) // do
write_byte(255) // xanh la
write_byte(255) // xanh lam
message_end()
show_hudmessage(id,"%d",get_user_health(id))
set_hudmessage(200,100)
return PLUGIN_CONTINUE
}
#include <amxmodx>
#define PLUGIN "Health"
#define VERSION "1.0"
#define AUTHOR "Bui Duc Duy"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "show_health", "ab")
}
public show_health(id)
{
message_begin(MSG_ALL, get_user_msgid("StatusIcon"), {0,0,0}, id)
write_byte(1) // status: 0: off; 1: on; 2:flash
write_string(HEALTH)// --> chỗ này health ở đâu ra, đã define đâu
write_byte(255) // do
write_byte(255) // xanh la
write_byte(255) // xanh lam
message_end()
show_hudmessage(id,"%d",get_user_health(id))
set_hudmessage(200,100)
return PLUGIN_CONTINUE
}
Mình làm j` đủ trình edit cho bạn 1 mod như vậy. Nếu có thể thì hỏi kfl với bác RED hoặc Dias ý, bảo họ làm chocái này không phải tui xem cái này rồi
cái này nó có cả dao , fb , sg và phải mua nữa
legion dark edit hộ cái plugin giống như tui muốn được không :X
PHP:#include <amxmodx> #define PLUGIN "Health" #define VERSION "1.0" #define AUTHOR "Bui Duc Duy" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "show_health", "ab") } public show_health(id) { message_begin(MSG_ALL, get_user_msgid("StatusIcon"), {0,0,0}, id) write_byte(1) // status: 0: off; 1: on; 2:flash write_string(HEALTH)// --> chỗ này health ở đâu ra, đã define đâu write_byte(255) // do write_byte(255) // xanh la write_byte(255) // xanh lam message_end() show_hudmessage(id,"%d",get_user_health(id)) set_hudmessage(200,100) return PLUGIN_CONTINUE }
Mình làm j` đủ trình edit cho bạn 1 mod như vậy. Nếu có thể thì hỏi kfl với bác RED hoặc Dias ý, bảo họ làm cho

#include <amxmodx>
#define PLUGIN "Health"
#define VERSION "1.0"
#define AUTHOR "Bui Duc Duy"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "show_health", "ab")
}
public show_health(id)
{
message_begin(MSG_ALL, get_user_msgid("StatusIcon"), {0,0,0}, id)
write_byte(1) // status: 0: off; 1: on; 2:flash
write_string("HEALTH")
write_byte(255) // do
write_byte(255) // xanh la
write_byte(255) // xanh lam
message_end()
show_hudmessage(id,"%d",get_user_health(id))
set_hudmessage(200,100)
return PLUGIN_CONTINUE
}

(Chắc tại Còn bé quá nên không biết
)Mr.Dias thì bảo pm kungfulonMình làm j` đủ trình edit cho bạn 1 mod như vậy. Nếu có thể thì hỏi kfl với bác RED hoặc Dias ý, bảo họ làm cho


k define thì new![]()
k biết, nhưng mà nó báo là undefine symbol "HEALTH"
Fixed:
(Compile thì đc nhưng k biết có chạy đc k )PHP:#include <amxmodx> #define PLUGIN "Health" #define VERSION "1.0" #define AUTHOR "Bui Duc Duy" public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("DeathMsg", "show_health", "ab") } public show_health(id) { message_begin(MSG_ALL, get_user_msgid("StatusIcon"), {0,0,0}, id) write_byte(1) // status: 0: off; 1: on; 2:flash write_string("HEALTH") write_byte(255) // do write_byte(255) // xanh la write_byte(255) // xanh lam message_end() show_hudmessage(id,"%d",get_user_health(id)) set_hudmessage(200,100) return PLUGIN_CONTINUE }