Cerere knife mod

Categoria cu cereri de pluginuri si nu numai.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Forum rules
Accesează link-ul pentru a putea vedea regulile forumului

Daca doriti sa vi se modifice un plugin, va rugam postati aici .
Post Reply
SimplyClever
Membru, skill 0
Membru, skill 0
Posts: 88
Joined: 21 Jul 2013, 16:20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 18 times
Been thanked: 1 time
Contact:

27 Dec 2013, 21:39

As dori si eu pluginul knife mod cu 2 cutite (Incepator si Profesional) + modele faine :x ms anticipat
BHOP.FREAKZ.RO
Image
Rapidserver
SimplyClever
Membru, skill 0
Membru, skill 0
Posts: 88
Joined: 21 Jul 2013, 16:20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 18 times
Been thanked: 1 time
Contact:

28 Dec 2013, 17:27

Hai ba up! nu ma ajuta nimeni la cate pluginuri am cerut unu nu ma-ti ajutat :((
BHOP.FREAKZ.RO
Image
User avatar
GhosT ***
Membru, skill +2
Membru, skill +2
Posts: 604
Joined: 04 Dec 2013, 21:52
Detinator Steam: Da
CS Status: Morphin . [ Retras ]
SteamID: Mutulica1428
Reputatie: Fost Moderator ajutator
Location: Dumesti.
Has thanked: 40 times
Been thanked: 99 times
Contact:

28 Dec 2013, 19:07

| Afiseaza codul
#include <amxmodx>
#include <colorchat>
#include <fakemeta_util>
#include <fun>

#define AUTOR "GhosT"
#define PLUGIN "KNIFE MOD"

#pragma semicolon 1;

new const szTag[] = "[Knife Mod]^x04";

new bool:knife_easy[32], bool:knife_hard[32];

new const v_avansat[] = "models/knifemod/v_avansat_knife.mdl";
new const v_incepator[] = "models/knifemod/v_incepator_knife.mdl";

public plugin_init()
{
	register_plugin(PLUGIN, "1.0", AUTOR);
	
	register_clcmd("say /knife", "menu_shower");
	register_clcmd("say /cutit", "menu_shower");
	register_clcmd("say_team /knife", "menu_shower");
	register_clcmd("say_team /cutit", "menu_shower");
	
	register_event("CurWeapon", "CurWeap", "be", "1=1");
}

public plugin_precache()
{
	precache_model(v_avansat);
	precache_model(v_incepator);
}
public client_putinserver(id)
{
	knife_easy[id] = true;
	knife_hard[id] = false;
	set_task(30.0, "mesaj", 0);
	CurWeap(id);
	client_cmd(id, "bind ^"x^" ^"say /knife^"");
}
public client_disconnect(id)
{
	knife_easy[id] = false;
	knife_hard[id] = false;
	CurWeap(id);
}
public menu_shower(id)
{
	new menu = menu_create("\yKnife \rMod", "set_knife");
	
	menu_additem(menu, "\yCutit incepatori", "1", 0);
	menu_additem(menu, "\yCutit Avansati", "2", 0);
	
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_display(id, menu, 0);
	
	return PLUGIN_HANDLED;
}
public set_knife(id, menu, item)
{
	if(item == MEXIT_ALL)
	{
		return 1;
	}
	
	new access, callback, data[6], szName[64];
	
	menu_item_getinfo(menu, item, access, data,charsmax(data), szName,charsmax(szName), callback);
	new key = str_to_num(data);
	
	switch(key)
	{
		case 1:
		{
			ColorChat(id, TEAM_COLOR, "%s Ai ales cutitul pentru^x03 incepatori !", szTag);
			knife_easy[id] = true;
			knife_hard[id] = false;
			CurWeap(id);
		}
		case 2:
		{
			ColorChat(id, TEAM_COLOR, "%s Ai ales cutitul pentru^x03 avansati !", szTag);
			knife_easy[id] = false;
			knife_hard[id] = true;
			CurWeap(id);
		}
	}
	menu_destroy(menu);
	return PLUGIN_HANDLED;
}
public CurWeap(id)
{
	if(get_user_weapon(id) == CSW_KNIFE)
	{
		if(knife_easy[id])
		{
			set_pev(id, pev_viewmodel2, v_incepator);
			set_user_gravity(id, 400.0);
		}
		if(knife_hard[id])
		{
			set_pev(id, pev_viewmodel, v_avansat);
			set_task(6.0, "heal_knife", id);
		}
	}
	return 1;
}
public heal_knife(id)
{
	if(knife_hard[id] && get_user_weapon(id) == CSW_KNIFE && get_user_health(id) <= 70)
	{
		set_user_health(id, get_user_health(id) + 5);
	}
	if(knife_hard[id] && get_user_weapon(id) == CSW_KNIFE && get_user_health(id) >= 130)
	{
		ColorChat(id, TEAM_COLOR, "%s A fost atinsa limita maxima de HP !", szTag);
	}
}
public mesaj()
{
	ColorChat(0, TEAM_COLOR, "%s Pentru a schimba cutitul tasteaza in chat^x03 /knife^x04 sau apasa tasta^x03 X^x04 !", szTag);
}
Modele le bagi u :P

Faci in models un fisier numit "knifemod" si pui modelele in el .

Modelele trebuie sa se numeasca :

v_avansat_knife
v_incepator_knife

ATENTIE !!! Aceastea trebuie sa aiba extensia .mdl
SimplyClever
Membru, skill 0
Membru, skill 0
Posts: 88
Joined: 21 Jul 2013, 16:20
Detinator Steam: Nu
CS Status: Citesc forumul eXtreamCS.com...!
Has thanked: 18 times
Been thanked: 1 time
Contact:

29 Dec 2013, 00:42

Ms mult ^:)^
BHOP.FREAKZ.RO
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests