// https://github.com/CS-NextClient/NextClientServerApi
#tryinclude <next_client_api>
#define MsgId_Health 70
public plugin_init()
{
register_message(MsgId_Health, "Message_Health");
}
public Message_Health(iMsgId, iMsgDest, iReceiver)
{
// if(pev_valid(iReceiver) && pev(iReceiver, pev_health) > 255) {
if(is_user_alive(iReceiver) && pev(iReceiver, pev_health) > 255) {
// fix для некст клиента, требуется обновить delta.lst (пункт со здоровьем, можно подглядеть в архиве обновы RegameDll)
#if defined _next_client_api_included
if (!ncl_is_using_nextclient(iReceiver)) {
set_msg_arg_int(1, get_msg_argtype(1), 255);
}
#else
set_msg_arg_int(1, get_msg_argtype(1), 255);
#endif
}
}