Цитата(ssx @ 9.6.2014, 18:43)

Вообщем получилось что только своим (живым и мёртвым) выводит.
Код:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>
#include <csx>
#if AMXX_VERSION_NUM < 183
#include <colorchat>
#else
#define DontChange print_team_default
#define Blue print_team_blue
#define Red print_team_red
#define Grey print_team_grey
#endif
public plugin_init()
{
register_plugin("name", "1.0", "thx_sAtr")
}
public bomb_planting(planter)
{
new szPlayers[32], Count
get_players(szPlayers, Count, "che", "TERRORIST")
if(!is_user_alive(planter))
return PLUGIN_HANDLED
new szName1[32]
get_user_name(planter,szName1, charsmax(szName1))
for(new i; i < Count; ++i) {
client_print_color(szPlayers[i], DontChange, "^1Игрок ^4%s ^1ставить бомбу!", szName1)
}
}
с разминированием так же только вместо TERRORIST писать CT
Код:
if(!is_user_alive(planter))
return PLUGIN_HANDLED
вот это не нужно
если не надо, чтобы просматривало еще и мертвых, то просто в get_players, где "che", добавить еще флаг a, т.е. так
get_players(szPlayers, Count, "ache", TERRORIST)