Can some one made plugin When zombie blood is reduced, it returns to its first time

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
amine31ze
Извън линия
Foreigner
Foreigner
Мнения: 12
Регистриран на: 30 Мар 2019, 23:02
Се отблагодари: 2 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от amine31ze » 10 Ное 2019, 02:30

Zombie plague 5.0 or 4.3 😇😇 :surrender: :surrender:
Последно промяна от amine31ze на 10 Ное 2019, 13:28, променено общо 1 път.

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от OciXCrom » 10 Ное 2019, 14:18

I didn't quite understand what you need. More details, please. Do you mean health regeneration?

Аватар
amine31ze
Извън линия
Foreigner
Foreigner
Мнения: 12
Регистриран на: 30 Мар 2019, 23:02
Се отблагодари: 2 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от amine31ze » 10 Ное 2019, 21:39

OciXCrom написа: 10 Ное 2019, 14:18 I didn't quite understand what you need. More details, please. Do you mean health regeneration?
Yes

Аватар
Dennis
Извън линия
AMXX Скриптър
AMXX Скриптър
Мнения: 177
Регистриран на: 25 Дек 2018, 04:14
Се отблагодари: 4 пъти
Получена благодарност: 10 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от Dennis » 11 Ное 2019, 17:46

Here you go
Прикачени файлове
zp_zclass_headcrab.sma
(5.96 KiB) Свалено 120 пъти
zp_zclass_headcrab.sma
(5.96 KiB) Свалено 120 пъти

Аватар
amine31ze
Извън линия
Foreigner
Foreigner
Мнения: 12
Регистриран на: 30 Мар 2019, 23:02
Се отблагодари: 2 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от amine31ze » 12 Ное 2019, 18:18

LayerFort написа: 11 Ное 2019, 17:46Here you go
I want plugin bro not zp class

Аватар
Dennis
Извън линия
AMXX Скриптър
AMXX Скриптър
Мнения: 177
Регистриран на: 25 Дек 2018, 04:14
Се отблагодари: 4 пъти
Получена благодарност: 10 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от Dennis » 12 Ное 2019, 21:42

All zombies or just the first who got infected ?

Аватар
amine31ze
Извън линия
Foreigner
Foreigner
Мнения: 12
Регистриран на: 30 Мар 2019, 23:02
Се отблагодари: 2 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от amine31ze » 13 Ное 2019, 17:41

LayerFort написа: 12 Ное 2019, 21:42 All zombies or just the first who got infected ?
All zombie

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1295 пъти
Обратна връзка:

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от OciXCrom » 13 Ное 2019, 22:11

Not tested.

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

#include <amxmodx>
#include <fun>
#include <zombieplague>

#if !defined client_disconnected
	#define client_disconnected client_disconnect
#endif

#if !defined MAX_PLAYERS
const MAX_PLAYERS = 32
#endif

new bool:g_bIsZombie[MAX_PLAYERS + 1], g_iMaxHealth[MAX_PLAYERS + 1]
new g_pRegenFreq, g_pRegenAmount
new Float:g_fRegenFreq, g_iRegenAmount

public plugin_init()
{
	register_plugin("ZP Zombie Regen", "1.0", "OciXCrom")
	g_pRegenFreq = register_cvar("zpregen_freq", "1")
	g_pRegenAmount = register_cvar("zpregen_amount", "3")
}

public plugin_cfg()
{
	g_fRegenFreq = get_pcvar_float(g_pRegenFreq)
	g_iRegenAmount = get_pcvar_num(g_pRegenAmount)
}

public client_putinserver(id)
{
	g_bIsZombie[id] = false
	set_task(g_fRegenFreq, "regenerate_health", id, .flags ="b")
}

public client_disconnected(id)
{
	remove_task(id)
}

public zp_user_infected_post(id)
{
	g_bIsZombie[id] = true
	g_iMaxHealth[id] = zp_get_zombie_maxhealth(id)
}

public zp_user_humanized_post(id)
{
	g_bIsZombie[id] = false
}

public regenerate_health(id)
{
	if(g_bIsZombie[id] && is_user_alive(id))
	{
		new iHealth = get_user_health(id)

		if(iHealth < g_iMaxHealth[id])
		{
			set_user_health(id, min(iHealth + g_iRegenAmount, g_iMaxHealth[id]))
		}
	}
}

Аватар
amine31ze
Извън линия
Foreigner
Foreigner
Мнения: 12
Регистриран на: 30 Мар 2019, 23:02
Се отблагодари: 2 пъти

Can some one made plugin When zombie blood is reduced, it returns to its first time

Мнение от amine31ze » 18 Ное 2019, 16:00

OciXCrom написа: 13 Ное 2019, 22:11 Not tested.

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

#include <amxmodx>
#include <fun>
#include <zombieplague>

#if !defined client_disconnected
	#define client_disconnected client_disconnect
#endif

#if !defined MAX_PLAYERS
const MAX_PLAYERS = 32
#endif

new bool:g_bIsZombie[MAX_PLAYERS + 1], g_iMaxHealth[MAX_PLAYERS + 1]
new g_pRegenFreq, g_pRegenAmount
new Float:g_fRegenFreq, g_iRegenAmount

public plugin_init()
{
	register_plugin("ZP Zombie Regen", "1.0", "OciXCrom")
	g_pRegenFreq = register_cvar("zpregen_freq", "1")
	g_pRegenAmount = register_cvar("zpregen_amount", "3")
}

public plugin_cfg()
{
	g_fRegenFreq = get_pcvar_float(g_pRegenFreq)
	g_iRegenAmount = get_pcvar_num(g_pRegenAmount)
}

public client_putinserver(id)
{
	g_bIsZombie[id] = false
	set_task(g_fRegenFreq, "regenerate_health", id, .flags ="b")
}

public client_disconnected(id)
{
	remove_task(id)
}

public zp_user_infected_post(id)
{
	g_bIsZombie[id] = true
	g_iMaxHealth[id] = zp_get_zombie_maxhealth(id)
}

public zp_user_humanized_post(id)
{
	g_bIsZombie[id] = false
}

public regenerate_health(id)
{
	if(g_bIsZombie[id] && is_user_alive(id))
	{
		new iHealth = get_user_health(id)

		if(iHealth < g_iMaxHealth[id])
		{
			set_user_health(id, min(iHealth + g_iRegenAmount, g_iMaxHealth[id]))
		}
	}
}
I tested its work thanks bro :nicecode:

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

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

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 13 госта