Plugins sa nu mearga sa apesi pe "b" sa cumperi arme

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
MarioDaniel
Membru, skill 0
Membru, skill 0
Posts: 88
Joined: 18 Jun 2014, 16:43
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: hnsip.zapto.org
Fond eXtream: 0
Has thanked: 22 times
Contact:

21 Jun 2014, 17:54

Descriere plugin cerut: Vreau si eu un plugins pentru HNS , care sa nu te lase sa apesi pe B sa cumperi arme sa nu existe functia aia "b"
Alte informatii: +1 cine ma ajuta
Image
Image
Image
RoyalServer
User avatar
w3zoo_RedX
Membru, skill +2
Membru, skill +2
Posts: 737
Joined: 21 Dec 2013, 22:16
Detinator Steam: Da
CS Status: Scripter CS.
Detinator server CS: PM.
SteamID: PM.
Location: Bucuresti sector 2
Has thanked: 45 times
Been thanked: 45 times
Contact:

21 Jun 2014, 18:13

Apasa pe sv din semnatura mea si Da-mi un vot si un ms

Code: Select all

#include <amxmodx>
#include <engine>
#include <fakemeta>

#define PLUGIN "Block BUY"
#define VERSION "2.0"
#define AUTHOR "Aragon*"

#if cellbits == 32
#define OFFSET_BZ 235
#else
#define OFFSET_BZ 268
#endif

new removebuyzone

public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_message(get_user_msgid("StatusIcon"), "MSG_StatusIcon");
}

public plugin_precache() {
	removebuyzone = register_cvar("zp_removebuyzone", "1")
	
	if(get_pcvar_num(removebuyzone)) {
		
		remove_entity_name("info_map_parameters");
		remove_entity_name("func_buyzone");
		
		new Entity = create_entity("info_map_parameters");
		
		DispatchKeyValue(Entity, "buying", "3");
		DispatchSpawn(Entity);
	}
}
	
public MSG_StatusIcon(msg_id, msg_dest, id) {
	static Attrib 
	Attrib = get_msg_arg_int(2)
	
	if(Attrib == (1<<1))
		set_msg_arg_int(2, ARG_BYTE, 0)
	
	new Icon[8];
	get_msg_arg_string(2, Icon, 7);
	if(get_pcvar_num(removebuyzone)) {
		static const BuyZone[] = "buyzone";
		
		if(equal(Icon, BuyZone)) {
			set_pdata_int(id, OFFSET_BZ, get_pdata_int(id, OFFSET_BZ, 5) & ~(1 << 0), 5);
			
			return PLUGIN_HANDLED;
		}
	}
	return PLUGIN_CONTINUE;
}
MarioDaniel
Membru, skill 0
Membru, skill 0
Posts: 88
Joined: 18 Jun 2014, 16:43
Detinator Steam: Da
CS Status: Citesc forumul eXtreamCS.com...!
Detinator server CS: hnsip.zapto.org
Fond eXtream: 0
Has thanked: 22 times
Contact:

21 Jun 2014, 18:31

Mersi +1 aici si vot.
Image
Image
Image
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 28 guests