[FURIEN] Plugin Furien Knife Menu (NEW) !

Pluginuri pentru modul AmxModX.

Moderators: Moderatori ajutatori, Moderatori

Post Reply
User avatar
puNx
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 07 Aug 2015, 17:26
Detinator Steam: Da
CS Status: :)
SteamID: puNx
Fond eXtream: 0
Contact:

08 May 2017, 20:12

Descriere: Aceste plugin este configurat si bine pus la punct de catre mine ! Mai exact meniul contine knife-uri CSO si pe langa asta au si o putere specifica !

Descarcare: FileShare: http://www.fileshare.ro/e3172570680
GirlShare: http://www.girlshare.ro/3489827730.4


Nume: Furien Knife Menu
Versiune: 1.0
Link oficial: amxmodx/plugin-furien-knife-menu-new-t339771.html

Instalare:
1. Fisierul furien_knife_menu.sma il puneti in addons/amxmodx/scripting
2. Fisierul furien_knife_menu.amxx il puneti in addons/amxmodx/plugins
3. Intrati in fisierul addons/amxmodx/configs/plugins.ini si adaugati la urma:

Code: Select all

furien_knife_menu.amxx
4. Alti pasi necesari....

Cvar-uri (se adauga in fisierul amxmodx\configs\amxx.cfg):

- nu necesita

Comenzi administrative (se tasteaza in consola si trebuie sa fiti administrator):

- nu necesita

Comenzi publice (se tasteaza in joc prin apasarea tastei Y):

- nu necesita

Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <dhudmessage>
Poze: In Arhiva RAR gasiti si poze !
Image
Hell.Mixarena.Ro[+18][VIP CLASSIC][Admine Free]

Ofer suport tehnic si incredere pentru servere de CS 1.6 !
Contact me:
Skype: vlad.vlad604
Y!M: andruvlad@ymail.com
Steam: zeT # ANUBIS (link: http://steamcommunity.com/id/vladpuNx/ )
Forum: puNx (PM me)
Pretul difera in functie de ce doreste clientul !
User avatar
FaTzZu
Fost moderator
Fost moderator
Posts: 1446
Joined: 22 Dec 2012, 18:37
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 124 times
Been thanked: 177 times
Contact:

09 May 2017, 20:17

puNx wrote:Module necesare (se sterge ; din fata modulului de mai jos; acestea le gasiti in fisierul amxmodx\configs\modules.ini):

Code: Select all

#include <amxmodx>
#include <amxmisc>
#include <engine>
#include <fakemeta>
#include <dhudmessage>
Să ştii ca e foarte folosit modulul dhudmessage xD

Code: Select all

#define V_MODEL_KNIFE1 "models/KnifeMod/v_K1dead.mdl"

#define P_MODEL_KNIFE1 "models/KnifeMod/p_K1dead.mdl"

#define V_MODEL_KNIFE2 "models/KnifeMod/v_stormgiant.mdl"

#define P_MODEL_KNIFE2 "models/KnifeMod/p_stormgiant.mdl"

#define V_MODEL_KNIFE3 "models/KnifeMod/v_sekira.mdl"

#define P_MODEL_KNIFE3 "models/KnifeMod/p_sekira.mdl"

#define V_MODEL_KNIFE4 "models/KnifeMod/v_crow9.mdl"

//#define P_MODEL_KNIFE4 "models/KnifeMod/p_crow9.mdl"

#define V_MODEL_KNIFE5 "models/KnifeMod/v_Bknife.mdl"

#define P_MODEL_KNIFE5 "models/KnifeMod/p_Bknife.mdl"

#define V_MODEL_KNIFE6 "models/KnifeMod/v_fluorescent.mdl"

#define P_MODEL_KNIFE6 "models/KnifeMod/p_fluorescent.mdl"

#define V_MODEL_KNIFE7 "models/KnifeMod/v_hallo.mdl"

//#define P_MODEL_KNIFE7 "models/KnifeMod/p_hallo.mdl"

#define V_MODEL_KNIFE8 "models/KnifeMod/v_harley.mdl"

//#define P_MODEL_KNIFE8 "models/KnifeMod/p_harley.mdl"

#define V_MODEL_KNIFE9 "models/v_knife.mdl"

#define P_MODEL_KNIFE9 "models/p_knife.mdl"
Whyyyyyy :dizzy_face: :dizzy_face: :dizzy_face: :dizzy_face: :dizzy_face:
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.

#RETIRED.
User avatar
puNx
Membru, skill 0
Membru, skill 0
Posts: 81
Joined: 07 Aug 2015, 17:26
Detinator Steam: Da
CS Status: :)
SteamID: puNx
Fond eXtream: 0
Contact:

06 Dec 2018, 23:43

cineva si nu stiu cine a modificat si sma dar si resursele... asta nu e ce am pus eu de prima data !
a modificat si autorul...
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <fakemeta>
#include <hamsandwich>
#include <fun>

new const PLUGIN[] = "Furien Knife Spawn";
new const VERSION[] = "1.0";
new const AUTHOR[] = "Editat by Tipu"; trebuia sa fie puNx dar ma rog..

#pragma semicolon 1

new const KnifeGold1Model[66] = "models/furienknife/v_default_goldknife.mdl";
new const KnifeGold2Model[66] = "models/furienknife/v_hilius_goldknife.mdl";
new const KnifeGold3Model[66] = "models/furienknife/v_axe_goldknife.mdl";


new bool: KnifeGold1[33];
new bool: KnifeGold2[33];
new bool: KnifeGold3[33];

new bool: KnifeChoosen[33];

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	register_clcmd("say /engame","SayKnife");
	
	register_event("CurWeapon", "CurentWeapon", "be", "1=1");
	RegisterHam(Ham_Spawn, "player", "Spawn", 1);
	RegisterHam(Ham_TakeDamage, "player", "DamageKnife");	

}

public Spawn(id) {
	if(is_user_alive(id))
		{
		KnifeChoosen[id] = false;
		
		KnifeGold1[id] = false;
		KnifeGold2[id] = false;
		KnifeGold3[id] = false;
		
		if(cs_get_user_team(id) == CS_TEAM_T) {
			MenuKnife(id);
		}
	}
}

public plugin_precache() {
	precache_model(KnifeGold1Model);
	precache_model(KnifeGold2Model);
	precache_model(KnifeGold3Model);
	
}

public client_putinserver(id) {
	KnifeGold1[id] = false;
	KnifeGold2[id] = false;
	KnifeGold3[id] = false;

}

public MenuKnife(id) {
	new menu = menu_create ("\rFurien\w.\yEngame\w.\rRo \yKnife \rMenu", "CaseMenu");
	menu_additem(menu, "\wDefault \yGold \rKnife", "1");
	menu_additem(menu, "\wHilius \yGold \rKnife ", "2");
	menu_additem(menu, "\wAxe \yGold \rKnife", "3");

	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_display(id, menu, 0 );
	
	return 1; 
}

public CaseKnifePlayeri(id, menu, item) {
	if(item == MENU_EXIT) {
		return 1;
	}
	if(!(is_user_alive(id))) {
		ChatColor(id, "!g[Furien Knife] !nNu poti alege cutitul atunci când esti mort");
		return 1;
	}
	
	new data [6], szName [64];
	new access, callback;
	menu_item_getinfo (menu, item, access, data,charsmax (data), szName,charsmax (szName), callback);
	new key = str_to_num (data);
	
	switch (key)
	{
		case 1:
		{
			KnifeChoosen[id] = true;
			KnifeGold1[id] = true;
			CurentWeapon(id);
			ChatColor(id, "!g[Furien Knife] !nAi ales !gKnife Gold");
		}
		
		case 2:
		{
			KnifeChoosen[id] = true;
			KnifeGold2[id] = true;
			CurentWeapon(id);
			ChatColor(id, "!g[Furien Knife] !nAi ales !gHilius Gold");
		}
		
		case 3:
		{
			KnifeChoosen[id] = true;
			KnifeGold3[id] = true;
			CurentWeapon(id);
			ChatColor(id, "!g[Furien Knife] !nAi ales !gAxe Gold");
		}

	}
	
	menu_destroy (menu);
	return 1;
}


public CurentWeapon(id) {
        if(get_user_weapon(id) == CSW_KNIFE) {

	if(KnifeGold1[id])
	set_pev(id, pev_viewmodel2, KnifeGold1Model);
	
	if(KnifeGold2[id])
	set_pev(id, pev_viewmodel2, KnifeGold2Model);
	
	if(KnifeGold3[id])
	set_pev(id, pev_viewmodel2, KnifeGold3Model);
	
     }
}


public DamageKnife ( Victim, Inflictor, Attacker, Float:fDamage )  {
	if(is_user_connected(Attacker) && Attacker != Victim) {
                if(get_user_weapon(Attacker) == CSW_KNIFE) {

		if(KnifeGold1[Attacker]) 
		SetHamParamFloat(4, fDamage * 4.0);
		
		if(KnifeGold2[Attacker]) 
		SetHamParamFloat(4, fDamage * 4.0);
		
		if(KnifeGold3[Attacker]) 
		SetHamParamFloat(4, fDamage * 4.0);

		}
	}
}

public SayKnife(id) {
	if(KnifeChoosen[id])  {
		ChatColor(id, "!g[Furien Knife] !nAti ales deja un cutit în aceasta runda !");
		return;
	}
	
	if(cs_get_user_team(id) == CS_TEAM_T)  {
		MenuKnife(id);
	}
}

stock ChatColor(const id, const input[], any:...) {
	new count = 1, players[32];
	static msg[191];
	vformat(msg, 190, input, 3);
	
	replace_all(msg, 190, "!g", "^4"); // verde
	replace_all(msg, 190, "!n", "^1"); // galben/alb/negru
	replace_all(msg, 190, "!t", "^3"); // rosu/albastru/gri
	replace_all(msg, 190, "!t2", "^0"); // rosu2/albastru2/gri2
	
	if (id) players[0] = id; else get_players(players, count, "ch");
	{
		for (new i = 0; i < count; i++)
			{
			if (is_user_connected(players))
				{
				message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players);
				write_byte(players);
				write_string(msg);
				message_end();
			}
		}
	}
}
Image
Hell.Mixarena.Ro[+18][VIP CLASSIC][Admine Free]

Ofer suport tehnic si incredere pentru servere de CS 1.6 !
Contact me:
Skype: vlad.vlad604
Y!M: andruvlad@ymail.com
Steam: zeT # ANUBIS (link: http://steamcommunity.com/id/vladpuNx/ )
Forum: puNx (PM me)
Pretul difera in functie de ce doreste clientul !
Post Reply

Return to “AmxModX”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 5 guests