Kod:
/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <csx>
#include <engine>
#define PLUGIN "Blind at damage"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_damage(attacker,victim,damage,wpnindex,hitplace,TA)
{
if(damage < 10)
return PLUGIN_CONTINUE
message_begin(MSG_ONE,get_user_msgid("ScreenFade"),{0,0,0},victim)
write_short(1<<12) // duration
write_short(1<<12) // hold time
write_short(0x0000) // flags
write_byte(255) // red
write_byte(0) // green
write_byte(0) // blue
write_byte(150) // alpha
message_end()
return PLUGIN_CONTINUE
}
tutaj masz krótszy fade