Counter-Strike 1.6
VIP
Cs-PlovdiV.com - Aim Attack
93.123.16.4:27022
aim_map2
Играчи: 4/16
aim_map2
Counter-Strike 1.6
VIP
93.123.16.4:27022 Cs-PlovdiV.com - Aim Attack aim_map2 4/16

grenade kill bonus

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
SmirnoffBG
Извън линия
Потребител
Потребител
Мнения: 269
Регистриран на: 27 Ное 2016, 19:43
Местоположение: nz
Се отблагодари: 77 пъти
Получена благодарност: 39 пъти
Обратна връзка:

grenade kill bonus

Мнение от SmirnoffBG » 23 Юли 2020, 02:50

Dhud cleanup + update
If u want the position changed u have to show me where to put it

Код за потвърждение: Избери целия код

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#if AMXX_VERSION_NUM < 183
	#include <dhudmessage>
#endif

#define PLUGIN  "Add HP on Gren Kill"
#define VERSION "1.0"
#define AUTHOR  "SmirnoffBG"

new iGrenKills[33]

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

	RegisterHam(Ham_Killed, "player", "Grumnal", 1, true)
}

public Grumnal(victim, killer, shouldgib)
{
	if(!is_user_alive(killer)) // cuz this includes suicides too 
		return HAM_IGNORED

	if(!shouldgib) // this is a non-bullet kill
	{
		if(++iGrenKills[killer] > 1)
		{
			set_pev(killer, pev_health, 200.0 )
			set_dhudmessage(255, 0, 0, 0.0,  0.35, 0, 1.0,3.0, 0.1, 0.2)
			show_dhudmessage(killer, "You Got 200 HP!")
		}
		if(!task_exists(killer))
			set_task(0.1, "ClearKills", killer)
	}
	return HAM_IGNORED
}

public ClearKills(killer)
{
	iGrenKills[killer] = 0
}
El-Super Respawn = 87.121.54.85:27016
BG Trewa Respawn = 91.92.137.205:27015

Аватар
USA_CA
Извън линия
Foreigner
Foreigner
Мнения: 106
Регистриран на: 19 Юли 2020, 18:02

grenade kill bonus

Мнение от USA_CA » 23 Юли 2020, 09:12

SmirnoffBG написа: 23 Юли 2020, 02:50 Dhud cleanup + update
If u want the position changed u have to show me where to put it

Код за потвърждение: Избери целия код

/* Sublime AMXX Editor v2.2 */

#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

#if AMXX_VERSION_NUM < 183
	#include <dhudmessage>
#endif

#define PLUGIN  "Add HP on Gren Kill"
#define VERSION "1.0"
#define AUTHOR  "SmirnoffBG"

new iGrenKills[33]

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

	RegisterHam(Ham_Killed, "player", "Grumnal", 1, true)
}

public Grumnal(victim, killer, shouldgib)
{
	if(!is_user_alive(killer)) // cuz this includes suicides too 
		return HAM_IGNORED

	if(!shouldgib) // this is a non-bullet kill
	{
		if(++iGrenKills[killer] > 1)
		{
			set_pev(killer, pev_health, 200.0 )
			set_dhudmessage(255, 0, 0, 0.0,  0.35, 0, 1.0,3.0, 0.1, 0.2)
			show_dhudmessage(killer, "You Got 200 HP!")
		}
		if(!task_exists(killer))
			set_task(0.1, "ClearKills", killer)
	}
	return HAM_IGNORED
}

public ClearKills(killer)
{
	iGrenKills[killer] = 0
}
this is not required either, since without inlud also works, thank you

Публикувай отговор
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: Google [Bot] и 5 госта