cerere reparare bug

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
User avatar
Fantasy1
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 4843
Joined: 05 Jul 2012, 00:26
Detinator Steam: Da
Reputatie: Membru Club eXtreamCS (1 Mar)
Utilizator neserios (TEPAR!)
Has thanked: 278 times
Been thanked: 217 times
Contact:

24 Jul 2012, 12:14

Imi repara si mie cineva Meniu la tero cand intra tero ii apare meniu selecteaza si cand scrie /menu apare iar poate sa-si ia tot cei in meniu si hp de 2 ori uitati sma:

Code: Select all

#include <amxmodx>
#include <cstrike>
#include <fun>
#include <hamsandwich>

#pragma semicolon 1


#define RED  0
#define GREEN  255
#define BLUE  255

#define HE 20


#define KEYS    ((1<<0)|(1<<1)|(1<<2)|(1<<3)|(1<<4)|(1<<9))


#define PLUGIN "DeathRun Terro Menu"
#define VERSION "1.5"
#define AUTHOR "tre3fla"     // haha ce plugin smecher ai facut )) nici plugin_init nu avea 

new const MenuName[]= "\rMeniu Terorist^n^n";
new const NumeSite[] = "\WWW.LNG.RO";
new const FLAGS_GOD[] = "bcdefgijlms";	// flagurile care le are rangul god.

new MENU; 

public plugin_init() 
{
	register_plugin(PLUGIN, VERSION, AUTHOR);
	
	MENU = register_menuid("MENU");
	register_menucmd( MENU, KEYS, "MenuHandler");
	register_clcmd( "say /menu", "showMenu");
	
	RegisterHam(Ham_Spawn, "player", "fw_PlayerSpawn", 1);
	
}

public fw_PlayerSpawn(id) 
{
	if( is_user_ok(id)) 
	{
		set_task( 3.0, "showMenu", id );
	}
	
	return HAM_IGNORED;
}

public showMenu(id) 
{
	if( !is_user_ok( id ) ) return 1;
	
	new szMenu[1024], n;

	n = formatex(szMenu, 1023, "%s",MenuName);

	n += formatex(szMenu[n], 1023-n, "\r1.\w USP^n");
	n += formatex(szMenu[n], 1023-n, "\r2.\w Deagle^n");
	n += formatex(szMenu[n], 1023-n, "\r3.\w Grenazi^n");
	n += formatex(szMenu[n], 1023-n, "\r4.\w 1000 HP^n^n");
	n += formatex(szMenu[n], 1023-n, "\r5.\w Arma \y [GOD Only]^n^n\r0.%s",NumeSite);

	show_menu(id, KEYS, szMenu, -1, "MENU");
	
	return 0;

}
public MenuHandler(id, key)
{
	
	if(!is_user_ok(id)) return 1;
	
	switch(key)
	{
		case 0:
		{
			usp(id);
			return 1;
		}
		case 1:
		{
			deagle(id);
			return 1;
		}
		case 2:
		{
			grenazi(id); 
			return 1;
		}
		case 3:
		{
			hp( id );
			return 1;
		}
		case 4:
		{ 
                       
			if( ! ( get_user_flags( id ) & read_flags( FLAGS_GOD ) ) )
			{
				client_print(id, print_chat, "[Meniu] Decat Adminii Pot Alege Aceasta Optiune !");
				showMenu(id);
				return 1;
			}
			arma(id);
			return 1; 
		}
		case 9:
		{
			showMenu(id);
			return 1;
		}
	}
	return 0;
} 
public usp(id) 
{
	
	new name[32];
	get_user_name(id,name,31);
	
	set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are un USP bine incarcat !!",name);
	
	client_print(id,print_chat,"Ai primit un USP cu 120 de gloante"); 
	give_item(id, "weapon_usp"); 
	cs_set_user_bpammo(id,CSW_USP,120);  

}
public deagle(id) 
{
	
	new name[32];
	get_user_name(id,name,31);
	
	set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are un DEAGLE cu multe gloante !!",name);
	
	client_print(id,print_chat,"Ai primit un DEAGLE cu 42 de gloante"); 
	give_item(id, "weapon_deagle"); 
	cs_set_user_bpammo(id, CSW_DEAGLE,42);

}
public grenazi(id) 
{
	
	new name[32];
	get_user_name(id,name,31);
	
	set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s a primit %d de HE !",name,HE);
	
	client_print(id,print_chat,"Ai primit %d de HE",HE);
	
	give_item(id, "weapon_hegrenade");
	cs_set_user_bpammo(id,CSW_HEGRENADE,HE); 

} 
public hp( id )
{ 

	new name[32];
	get_user_name(id,name,31);
	
	set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "%s are acum 1000 HP",name,id);
	
	client_print(id,print_chat,"Ai primit 1000HP",id);
	set_user_health(id, 1000);
}
public arma(id) 
{
	new name[32];
	get_user_name(id,name,31);
	
	set_hudmessage(RED, GREEN, BLUE, 0.02, 0.20, 0, 6.0, 3.0);
	show_hudmessage(id, "Aveti grija, %s are o arma  !!",name);
	
	client_print(id,print_chat,"Ai primit un TMP !!");
	give_item(id, "weapon_tmp");
	cs_set_user_bpammo(id,CSW_TMP, 30 );
        
}
stock is_user_ok(id)
{
	if(is_user_alive(id) && is_user_connected(id) && cs_get_user_team(id) == CS_TEAM_T)
		return 1;
		
	return 0;
}
CLICK AICI pentru FORUM
- Un Forum Care Nu Poate Fi Spart -
- Un Forum Care Nu Modifica Topicurile Cu Tepari -
- Vrei Indexare In Google? Posteaza Tzeparii La Noi -

- Daca ai nevoie sa te ajut cu un addons/plugin etc se plateste, nu ajut cu nimic pe GRATIS -
Post Reply

Return to “Cereri”

  • Information