Поиск Помогите найти плагин

Сообщения
2,288
Реакции
1,739
Помог
31 раз(а)
bodyaz0r,
Код:
////////////////////////////////////
//   Amx_Killer                   //
//   by Xhonor for stefkone       //
//   Skype: xhonor_39             //
////////////////////////////////////

#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <dhudmessage>
#include <fakemeta>
#include <cstrike>

#define PLUGIN "Amx_Killer"
#define VERSION "1.0"
#define AUTHOR "Xhonor"
#pragma tabsize 0

#define ICON_SHOW 1
#define ICON_HIDE 0

new kill_num[33]
new gMsgID
new Float:g_fTimeGlare[33]

public plugin_init()
{
   register_plugin( PLUGIN, VERSION, AUTHOR );

   register_event( "DeathMsg", "hook_death", "a", "1>0" )
   RegisterHam( Ham_TakeDamage,"player","damager",0 )

   RegisterHam(Ham_Killed, "player", "ham_PlayerKilled")
   RegisterHam(Ham_Spawn, "player", "ham_PlayerSpawned_Post", 1);
  
   gMsgID = get_user_msgid("StatusIcon") 
 
   register_event("ScreenFade", "EventScreenFade", "b", "4=255", "5=255", "6=255")
}

public EventScreenFade(id)
    g_fTimeGlare[id] = read_data(1) / 4096.0 + get_gametime()

public ham_PlayerSpawned_Post(id)
{
   if (is_user_alive(id))
   {
      ammo_hud(id, 0)
      kill_num[id] = 0
      ammo_hud(id, 1)
   }
}

public ham_PlayerKilled(victim, attacker)
{
   static selfkill;

   selfkill = (victim == attacker || !is_user_connected(attacker)) ? true : false;

   if(!selfkill)
   {
      ammo_hud(attacker, 0)
      kill_num[attacker] += 1
      ammo_hud(attacker, 1)
   }
}

ammo_hud(id, sw)
{
   if(is_user_bot(id) || !is_user_alive(id))
           return

   new s_sprite[33]
   format(s_sprite, 32, "number_%d", kill_num[id])
   if(sw && is_user_alive(id))
   {
      message_begin( MSG_ONE, gMsgID, {0,0,0}, id )
      write_byte( ICON_SHOW )
      write_string( s_sprite )
      write_byte( 30 )
      write_byte( 144 )
      write_byte( 255 )
      message_end()
   } else {
      message_begin( MSG_ONE, gMsgID, {0,0,0}, id )
      write_byte( ICON_HIDE )
      write_string( s_sprite )
      write_byte( 30 )
      write_byte( 144 )
      write_byte( 255 )
      message_end()
   }

   if(kill_num[id] <= 0 && is_user_alive(id))
   {
      message_begin( MSG_ONE, gMsgID, {0,0,0}, id )
      write_byte( ICON_HIDE )
      write_string( s_sprite )
      write_byte( 30 )
      write_byte( 144 )
      write_byte( 255 )
      message_end()
   }
}
  
public hook_death()
{
    new iKiller = read_data(1)
   new iVictim = read_data(2)
 
   if (g_fTimeGlare[iKiller] > get_gametime()) return;
  
   if(is_user_alive(iKiller))
   {
       message_begin(MSG_ONE, get_user_msgid("ScreenFade"), {0,0,0}, iKiller)
        write_short(1<<10)
        write_short(1<<10)
        write_short(0x0000)
      write_byte( 30 )
      write_byte( 144 )
      write_byte( 255 )
        write_byte(75)
        message_end()
   } 
   new s_sprite[33]
   format(s_sprite, 32, "number_%d", kill_num[iVictim])
  
   message_begin( MSG_ONE, gMsgID, {0,0,0}, iVictim )
   write_byte( ICON_HIDE )
   write_string( s_sprite )
      write_byte( 30 )
      write_byte( 144 )
      write_byte( 255 )
   message_end()   
}

public damager(victim, inflicator, attacker, Float:damage)
{
    if(!is_user_connected(attacker))
        return;
    
    if(victim == attacker || !victim)
        return;

    if(is_user_alive(attacker))
   {
        if(damage > 0)
       {
          if(cs_get_user_team(attacker) == cs_get_user_team(victim))
             return;
        
           set_dhudmessage(30, 144, 255, -0.49, -0.51, 0, 0.01, 0.01)
           show_dhudmessage(attacker, "*")
        }
   }
}
 
Сообщения
460
Реакции
68
Помог
7 раз(а)
У меня дома лежит такой же но с фиксом после того как тебя ослепили и ты убив кого то ефект ослепления пропадает. Приду домой с роботы скину.
 

Пользователи, просматривающие эту тему

Сейчас на форуме нет ни одного пользователя.
Сверху Снизу