Hello!
Advice please, please write to all players?
PHP Code:
#include <amxmodx>
#define PLUGIN "Switch Fire Hud"
#define VERSION "1.0"
#define AUTHOR "BeasT"
new max_clients
public plugin_init()
{
register_plugin ( PLUGIN, VERSION, AUTHOR )
register_message(get_user_msgid("TextMsg"), "msgTextMsg")
max_clients = get_maxplayers()
}
public msgTextMsg()
{
for(new i = 1; i <= max_clients; i++)
{
static textmsg[22]
get_msg_arg_string(2, textmsg, charsmax(textmsg))
if(equal(textmsg, "#Switch_To_FullAuto"))
{
set_hudmessage (0, 255, 0, -1.0, 0.35, 0, 6.0, 1.5, 0.1, 0.2, 4 )
show_hudmessage(i, "Режим автомата")
}
else
if(equal(textmsg, "#Switch_To_BurstFire"))
{
set_hudmessage (0, 255, 0, -1.0, 0.35, 0, 6.0, 1.5, 0.1, 0.2, 4 )
show_hudmessage(i, "Режим тройного выстрела")
}
else
if(equal(textmsg, "#Switch_To_SemiAuto"))
{
set_hudmessage (0, 255, 0, -1.0, 0.35, 0, 6.0, 1.5, 0.1, 0.2, 4 )
show_hudmessage(i, "Режим автомата")
}
}
return PLUGIN_HANDLED
}