VipMenu-Anti Furiens

В този раздел можете да публикувате нови плъгини, като същите ще бъдат одобрени или неодобрени от страна на екипа.
Правила на форума
ИНФОРМАЦИЯ: В този раздел най-вероятно няма да намерите много теми (възможно е и да е напълно празен), тъй като новите теми се местят в https://amxx-bg.info/viewforum.php?f=21 или https://amxx-bg.info/viewforum.php?f=22, зависимо от качеството им.
Аватар
L.O.F.I
Извън линия
Foreigner
Foreigner
Мнения: 19
Регистриран на: 03 Фев 2020, 19:01
Местоположение: Algeria
Обратна връзка:

VipMenu-Anti Furiens

Мнение от L.O.F.I » 01 Дек 2020, 21:27

This is a vipmenu for [anti furiens] with Golden Guns + 3xDmg
By : L.O.F.I

Models Link : http://www.mediafire.com/file/ufrkqcip9 ... u.rar/file

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

#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <cstrike>
#include <hamsandwich>
#include <fakemeta>
#include <cromchat>

#define ADMIN_VIP	ADMIN_LEVEL_H

/*
Wanna contact me ?
********************
[FB] ==> "Anis Krl"
********************
*/

new PLUGIN[] = "Vip Menu For Anti-Furiens"
new VERSION[] = "2.0"
new AUTHOR[] = "L.O.F.I"

new const M4A1_V[66] = "models/vipmenu/v_gold_m4a1.mdl"
new const AK47_V[66] = "models/vipmenu/v_gold_ak47.mdl"
new const XM1014_V[66] = "models/vipmenu/v_gold_xm1014.mdl"
new const DEAGLE_V[66] = "models/vipmenu/v_gold_deagle.mdl"

new bool: HaveM4a1[33];
new bool: HaveAk47[33];
new bool: HaveXm1014[33];
new bool: HaveDeagle[33];

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_clcmd("say /vmenu", "VipMenu");

	RegisterHam(Ham_TakeDamage, "player", "M4A1_TakeDamage");
	RegisterHam(Ham_TakeDamage, "player", "AK47_TakeDamage");
	RegisterHam(Ham_TakeDamage, "player", "XM1014_TakeDamage");
	RegisterHam(Ham_TakeDamage, "player", "DEAGLE_TakeDamage");
	register_event("CurWeapon", "EVENT_CurWeapon", "be", "1=1");
}

public client_disconnect(id) {
	HaveM4a1[id] = false;
	HaveAk47[id] = false;
	HaveXm1014[id] = false;
	HaveDeagle[id] = false;
}

public client_connect(id) {
	HaveM4a1[id] = false;
	HaveAk47[id] = false;
	HaveXm1014[id] = false;
	HaveDeagle[id] = false;
}


public plugin_precache() {
	precache_model(M4A1_V)
	precache_model(AK47_V)
	precache_model(XM1014_V)
	precache_model(DEAGLE_V)
}

public EVENT_CurWeapon(id) {
	
	if(get_user_weapon(id) == CSW_M4A1) {
		if(HaveM4a1[id])
		set_pev(id, pev_viewmodel2, M4A1_V)
	}
	if(get_user_weapon(id) == CSW_AK47)
	{	
		if(HaveAk47[id])
		set_pev(id, pev_viewmodel2, AK47_V)
	}
	if(get_user_weapon(id) == CSW_XM1014)
	{	
		if(HaveXm1014[id])
		set_pev(id, pev_viewmodel2, XM1014_V)
	}
	if(get_user_weapon(id) == CSW_DEAGLE)
	{	
		if(HaveDeagle[id])
		set_pev(id, pev_viewmodel2, DEAGLE_V)
	}
}



public VipMenu(id)
{
	if (get_user_flags(id) & ADMIN_VIP)
		{
			guns_menu(id)
		}
		else
        {
               CC_SendMessage(id, "&x01[&x04ANTI-FURIEN&x01] &x03ONLY &x01V.I.P")
        }
	
}

public M4A1_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
	if(iInflictor == iAttacker && HaveM4a1[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_M4A1 && cs_get_user_team(iAttacker))
	{
		SetHamParamFloat(4, fDamage * 3.0);
	}
}

public AK47_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
	if(iInflictor == iAttacker && HaveAk47[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_AK47 && cs_get_user_team(iAttacker))
	{
		SetHamParamFloat(4, fDamage * 3.0);
	}
}

public XM1014_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
	if(iInflictor == iAttacker && HaveXm1014[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_XM1014 && cs_get_user_team(iAttacker))
	{
		SetHamParamFloat(4, fDamage * 3.0);
	}
}

public DEAGLE_TakeDamage (iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
	if(iInflictor == iAttacker && HaveDeagle[iAttacker] && is_user_alive(iAttacker) && get_user_weapon(iAttacker) == CSW_DEAGLE && cs_get_user_team(iAttacker))
	{
		SetHamParamFloat(4, fDamage * 3.0);
	}
}

public guns_menu(id)
{
	if (!is_user_alive(id))
	return
	
	new vipmenu = menu_create("\rVIP \wMenu", "menuCloser")
	
	menu_additem(vipmenu, "\rM4A1 \w+ \rDeagle\y[GOLD]", "", ADMIN_VIP)
	menu_additem(vipmenu, "\rAK47 \w+ \rDeagle\y[GOLD]", "", ADMIN_VIP)
	menu_additem(vipmenu, "\rXM1014 \w+ \rDeagle\y[GOLD]", "", ADMIN_VIP)
	
	menu_display(id, vipmenu, 0)
}

 
public menuCloser(id, EXIT, item)
{
	if(item == MENU_EXIT)
	{
		menu_destroy(EXIT);
		return PLUGIN_HANDLED;
	}
	switch(item)
	{
		case 0: {
			strip_user_weapons(id); // drop all weapons
			HaveM4a1[id] = true;
			give_item(id, "weapon_m4a1");
			cs_set_user_bpammo(id, CSW_M4A1, 254);
			HaveDeagle[id] = true;
			give_item(id, "weapon_deagle");
			cs_set_user_bpammo(id, CSW_DEAGLE, 254);
			give_item(id, "weapon_knife");
			EVENT_CurWeapon(id)
			//Text
			CC_SendMessage(id, "&x01[&x04ANTI-FURIEN&x01] &x03You Bought The &x01Golden &x04M4A1");
			
			{
				
			}
		}
		case 1: {
			strip_user_weapons(id); // drop all weapons
			HaveAk47[id] = true;
			give_item(id, "weapon_ak47");
			cs_set_user_bpammo(id, CSW_AK47, 254);
			HaveDeagle[id] = true;
			give_item(id, "weapon_deagle");
			cs_set_user_bpammo(id, CSW_DEAGLE, 254);
			give_item(id, "weapon_knife");
			EVENT_CurWeapon(id)
			//Text
			CC_SendMessage(id, "&x01[&x04ANTI-FURIEN&x01] &x03You Bought The &x01Golden &x04AK47");
			{
				
			}
		}
		case 2: {
			strip_user_weapons(id); // drop all weapons
			HaveXm1014[id] = true;
			give_item(id, "weapon_xm1014");
			cs_set_user_bpammo(id, CSW_XM1014, 254);
			HaveDeagle[id] = true;
			give_item(id, "weapon_deagle");
			give_item(id, "weapon_knife");
			//Text
			CC_SendMessage(id, "&x01[&x04ANTI-FURIEN&x01] &x03You Bought The &x01Golden &x04XM1014");
			{
				
			}
		}
		case 3: {
			strip_user_weapons(id); // drop all weapons
			HaveDeagle[id] = true;
			give_item(id, "weapon_deagle");
			cs_set_user_bpammo(id, CSW_DEAGLE, 254);
			give_item(id, "weapon_knife");
			EVENT_CurWeapon(id)
		}
	}
	return 0;
}
Последно промяна от thoughtz на 01 Дек 2020, 23:29, променено общо 1 път.
Причина: Use [code] tag.

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

Обратно към “Нови попълнения”

Кой е на линия

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