[ZP] Extra Item - AntiDote Grenade для CS 1.6
https://i.imgur.com/tMGfDbA.png

Плагин добавляет ZP 4.3 AntiDote Grenade в ваш магазин, в данный плагин я добавил лимит на покупку за раунд, P модель и натив на выдачу.

Немного кода из исходного файла:
new const item_name[] = "G|\w[\yАнтидот граната\w]"
new const item_cost = 5

new const NADE_TYPE_ANTIDOTEBOMB = 6969
new const Float:RADIUS = 250.0
new const sprite_grenade_trail[] = "sprites/laserbeam.spr"
new const sprite_grenade_ring[] = "sprites/shockwave.spr"
new const v_model_grenade_infect[] = "models/lu_creator/v_tvirusblue.mdl"
new const p_model_grenade_infect[] = "models/lu_creator/p_tvirusblue.mdl"

new item_id
new has_bomb[33]
new cvar_enabled, cvar_fragsinfect, cvar_humanbonushp, cvar_flaregrenades
new g_trailSpr, g_exploSpr, g_msgScoreInfo, g_msgDeathMsg, g_msgScoreAttrib
new g_limit

Натив:
give_antidote

Лимит:
public zp_extra_item_selected(player, itemid)
{
	if(itemid == item_id)
	{
		if(g_limit >= 5)
		{
			client_print(player, print_chat, "Лимит гранат!")
			return ZP_PLUGIN_HANDLED
		}
		has_bomb[player] = 1	
		fm_strip_user_gun(player,9)
		fm_give_item(player,"weapon_smokegrenade")
		g_limit++
	}
	return PLUGIN_CONTINUE
}

Версия:
1.2

Автор:
Sn!ff3r / Edit - ra1n

You do not have access to download files from our Website.

Hello, Our administration publishes only cannon content, put like under the post below and write the top comment, we are preparing the material just for you, Darling Гость.

Comments 7
  1. BuB9neC
    Ток я не помню, в Resident Evil была синяя или зеленая колба антидота?
    Ещё бы W модель сделать и будет прекрасно!
    • 9 February 2019 14:01
    1. ra1n
      ra1n
      • 0
      у меня есть и зелёная модель, могу кинуть.
      vk.com/ra1n_amxx
      steamcommunity.com/id/player_dota2_cs16
      • 9 February 2019 15:23
  2. xUnicorn
    Хорошо что хоть кто то использует
    return ZP_PLUGIN_HANDLED
    а то умники берут обычный return юзают и возвращают аммо через zp_set_user_ammo_packs >_>
    • 9 February 2019 16:05
  3. Dambas
    Dambas
    • 0
    edit ra1n - rofl
    • 10 February 2019 00:08
  4. Sanyatop
    Норм, лимит есть.
    • 17 February 2019 19:12
  5. )_NEO_(
    У подобных гранат есть проблемка когда в толпу бросить будет дым "Мне вот интересно это (баг) или (фича)" 092-laughing-1 - конкретно за эту не говорю 
    • 17 February 2019 23:53
  6. Sanyatop
    Есть баг ,бросаешь гранату в толпу, появляется дым
    • 23 February 2019 15:56
Users belonging to group Guests cannot add comments to this article.
Base for Your Build
Information

Welcome to TB-TEAM.COM!

To become a full-fledged user of our portal, you need to register.
Register
Create your own account!

Register Now
Log In
Already registered? Go ahead and log in!

Log In