Пример:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "[no money] No money"
#define VERSION "1.0"
#define AUTHOR "Avalanche & Admin"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say nomoney","hide_money")
}
public hide_money(id){
// hide money
message_begin(MSG_ONE,94,_,id);
write_byte(1<<5);
message_end();
// hide crosshair that appears from hiding money
message_begin(MSG_ONE,110,_,id);
write_byte(0);
message_end();
}
Вот так денег не будет постоянно:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "[no money] No money"
#define VERSION "1.0"
#define AUTHOR "Avalanche & Admin"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD","event_resethud","be");
}
public event_resethud(id){
if(is_user_connected(id))
set_task(0.1,"hide_money",id)
}
public hide_money(id){
if(is_user_connected(id)){
// hide money
message_begin(MSG_ONE,94,_,id)
write_byte(1<<5)
message_end()
// hide crosshair that appears from hiding money
message_begin(MSG_ONE,110,_,id)
write_byte(0)
message_end()
}
}