Cerere addons Furien Classic

Cereri de resurse: addons-uri, modele, sunete, etc.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

Post Reply
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 3 times
Contact:

30 May 2020, 14:24

Salut extreamcs ! As dori si eu un addons de furien classic , ca si cel de pe join-game , scuzati daca am facut reclama , sterg daca este vre-o problema.
As dori sa fie un addons cu aceste lucruri :
| Afiseaza codul
Playerii sa nu aiba skin , doar Furien-ul VIP si Anti-furien VIP ( le pun eu)
 /shop pentru furien ->
1. SuperKnife *pun eu model*
2. 50 HP
3. 50 AP
4. 1 HE
* precizez ca as vrea ca as vrea sa se poata cumpara doar de 3 ori pe runda Hp si Ap *
La anti furien sa fie  -> 1. Defuse Kit
2. 50 hp
3. 50 ap
4. 1 he
Si aici sa poata cumpara doar de 3 ori pe runda hp si ap
========================================================================================================
As dori ca sa existe si comanda /bet t sau ct all sau x suma
Grenazile sa aiba tipurile de homing , laser si etc..
Furienii sa se poata lipi de perete si sa fie invizibili cand stau pe loc 
=========================================================================================================
Playerii sa aiba double jump , viata sa le apara in coltul din stanga + ap-ul . Max hp-ul sa fie 250 si ap , si as vrea ca fiecare echipa sa inceapa cu 150HP si 100 ap
==========================================================================================================
https://imgur.com/a/V8FGtS5
Sa ma scuzati daca exista un astfel de addons pe internet si nu l-am gasit :) . Va multumesc mult !
User avatar
WHOAMI?
Super moderator
Super moderator
Posts: 879
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Super Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 12 times
Been thanked: 8 times

30 May 2020, 15:22

ModelVIP:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        register_plugin("AMX_M_VIP", "2.0", "MrPower")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/vip_te/vip_te.mdl")
        precache_model("models/player/vip_ct/vip_ct.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "vip_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "vip_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
Shop :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

//Like in C ;)
//#pragma semicolon 1

//Take Damage
#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )
new g_iMaxPlayers;

//Prefix
new const szPrefix [ ] 		=	 "[FURIEN]";

//Sound
new const PICK_GUN [ ]          =	 "items/gunpickup2.wav";

//SK Models
new const SK [ ] [ ]		= 
{
"models/furienruls/v_knife_furienrulsro.mdl",
"models/p_knife.mdl"
};

//Cvar's
new sk_price, he_t_price, he_ct_price, defuse_price, hp_price, ap_price;
new sk_damage, max_hp, max_ap;

//Bools
new bool: HasSK[ 33 ];

new BuyedGrenades[33];

//Init
public plugin_init( ) 
{
register_plugin( "Furien Shop", "2.0", "IDK" );

//Open Shop
register_clcmd( "say", "Func_Say" );
register_clcmd( "say_team", "Func_Say" );
register_clcmd( "/shop", "CheckTeam" );
register_clcmd( "shop", "CheckTeam" );

//Cvar's
sk_price 	= 	register_cvar( "fs_sk_price", "10000" );
he_t_price 	= 	register_cvar( "fs_he_t_price", "3000" );
he_ct_price 	= 	register_cvar( "fs_he_ct_price", "6000" );
defuse_price 	= 	register_cvar( "fs_defuse_price", "500" );
hp_price 	= 	register_cvar( "fs_hp_price", "3000" );
ap_price 	= 	register_cvar( "fs_ap_price", "500" );
sk_damage 	= 	register_cvar( "fs_sk_damage", "2.0" );
max_hp 		= 	register_cvar( "fs_max_hp", "250" );
max_ap 		= 	register_cvar( "fs_max_ap", "300" );

//Ham's
RegisterHam( Ham_Killed, "player", "Ham_CBasePlayer_Killed_Post", true );
RegisterHam( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1 ); 
RegisterHam( Ham_TakeDamage, "player", "Player_TakeDamage" );

//Curent Weapon
register_event ( "CurWeapon", "Current_Weapon", "be", "1=1" );

//Max Players
g_iMaxPlayers = get_maxplayers ( );
}
	  

//Precache
public plugin_precache( ) 
{
static i;
for( i = 0 ; i < sizeof ( SK ); i++ ) 
	precache_model( SK [ i ] );
	
	precache_sound( PICK_GUN );
	
	return PLUGIN_CONTINUE;
}

//Killed
public Ham_CBasePlayer_Killed_Post( id ) 
	HasSK[ id ] = false;

//Spawn
public fwHamPlayerSpawnPost( id ) 
{
	if(!is_user_alive(id))
		return 
	if( get_user_team(id) == 2 )
		HasSK[ id ] = false;
	BuyedGrenades[id] = 0
}	

//Put in Server
public client_putinserver( id ) 
	HasSK[ id ] = false;

//Open Shop
public Func_Say( id ) 
{
	new szSaid[ 192 ];
	read_args( szSaid, sizeof( szSaid ) -1 );
	
	remove_quotes( szSaid );
	
	if( contain( szSaid, "shop" ) != -1 && !is_user_alive(id))
	{
		CheckTeam( id );
		return 1;
	}
	else if( contain( szSaid, "shop" ) != -1 && is_user_alive(id))
		CheckTeam( id );
	return 0;
}

//Show Model
public Current_Weapon( id ) 
{
	new weapon = get_user_weapon( id );
	
	if( weapon == CSW_KNIFE ) 
	{
		if( HasSK[ id ] == true ) 
		{
			set_pev ( id, pev_viewmodel2, SK[ 0 ] );
			set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
		}
	}
}

//Damage
public Player_TakeDamage( iVictim, iInflictor, iAttacker, Float:fDamage ) 
{
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && HasSK [ iAttacker ] ) 
	{
		SetHamParamFloat ( 4, fDamage * get_pcvar_float( sk_damage ) );
		
		return HAM_HANDLED;
	}
	
	return HAM_IGNORED;
	
}

//Check Team Shop
public CheckTeam( id ) 
{
	if( is_user_alive ( id ) ) 
	{
		if ( get_user_team ( id ) == 1 )
			ShowMenu_T( id );
		if ( get_user_team ( id ) == 2 ) 
			ShowMenu_CT( id );
	}	
}

//T Shop
public ShowMenu_T( id ) 
{
	new menu_t = menu_create( "\rFurien \yShop^n", "T_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "SuperKnife\R\y%i" , get_pcvar_num( sk_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_t_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_t, iLine1, "1" ); 
	menu_additem( menu_t, iLine2, "2" );
	menu_additem( menu_t, iLine3, "3" );
	menu_additem( menu_t, iLine4, "4" ); 
	
	menu_setprop( menu_t, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_t, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_t, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_t, 0 );
	
	return PLUGIN_HANDLED;
}

public T_Menu( id, menu_t, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 1 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_t, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( sk_price ) ) 
			{
				if ( !HasSK [ id ] ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( sk_price ) );
					
					//Pev SuperKnife
					if( get_user_weapon( id ) == CSW_KNIFE ) 
					{
						set_pev ( id, pev_viewmodel2, SK[ 0 ] );
						set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
					}
					else
						engclient_cmd( id, "weapon_knife" );
					
					//Give SuperKnife
					HasSK[ id ] = true;
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 SuperKnife !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( sk_price ) );	
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_t_price ) ) 
			{
				if(BuyedGrenades[id] < 2) {
					if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
					{
						//Get Money
						cs_set_user_money( id, price - get_pcvar_num( he_t_price ) );
						
						//Give He
						give_item( id, "weapon_hegrenade" );
						BuyedGrenades[id]++
						
					}
					else 
						ColorChat( id, "^x04%s^x01 Ai deja ^x03 He Grenade !", szPrefix );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai cumparat deja ^x03 2 He Grenade in aceasta runda.", szPrefix);
				
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_t_price ) );		
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor ( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_t );
	
	return PLUGIN_HANDLED;
}

//CT Shop
public ShowMenu_CT( id ) 
{
	new menu_ct = menu_create( "\rAnti-Furien \yShop^n", "CT_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "Defuse Kit\R\y%i" , get_pcvar_num( defuse_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_ct_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_ct, iLine1, "1" ); 
	menu_additem( menu_ct, iLine2, "2" );
	menu_additem( menu_ct, iLine3, "3" );
	menu_additem( menu_ct, iLine4, "4" ); 
	
	menu_setprop( menu_ct, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_ct, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_ct, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_ct, 0 );
	
	return PLUGIN_HANDLED;
}

public CT_Menu( id, menu_ct, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 2 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_ct, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( defuse_price ) ) 
			{
				if ( !cs_get_user_defuse( id ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( defuse_price ) );
					
					//Give DefuseKit
					cs_set_user_defuse( id,1 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 DefuseKIT !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( defuse_price ) );
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_ct_price ) ) 
			{
				if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( he_ct_price ) );
					
					//Give He
					give_item( id, "weapon_hegrenade" );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 He Grenade !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_ct_price ) );	
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health ( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id,price- get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_ct );
	
	return PLUGIN_HANDLED;
}

//Stock ColorChat
stock ColorChat( const id, const input[ ], any:... ) 
{
	new count = 1, players[ 32 ];
	static msg[ 191 ];
	vformat( msg, 190, input, 3 );
	
	replace_all( msg, 190, "!g", "^4" );
	replace_all( msg, 190, "!y", "^1" );
	replace_all( msg, 190, "!t", "^3" );
	
	if( id ) players[ 0 ] = id;
	else get_players( players, count, "ch" ); 
{
	for( new i = 0; i < count; i++ ) 
	{
		if( is_user_connected( players[ i ] ) ) 
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] );
			write_byte( players[ i ] );
			write_string( msg );
			message_end( );
		}
	}
} 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Plugin bet : https://forums.alliedmods.net/showthread.php?p=1060370
Plugin nademodes : https://forums.alliedmods.net/showthread.php?p=663892
Baza furien :
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "Furien Clasic"
#define VERSION "2.0"
#define AUTHOR "DaNNe."
 
#define FURIEN_GRAVITY  0.375
#define FURIEN_SPEED    750.0
#define TEAM_FURIEN 1
#define TEAM_ANTIFURIEN 2
 
 
#if cellbits == 32
#define OFFSET_BZ 235
#else
#define OFFSET_BZ 268
#endif
 
//Settings
new bool:MakeVisible[33], Float:Wallorigin[33][3]
 
//Parachute
#define PARACHUTE_CLASS "Parachute"
new ParaENT[33];
 
new Menu;
new cvar_gamedescription, furienspawnhp, antifurienspawnhp, removebuyzone, cvar_autojoin_class, cvar_autojoin_team, cvar_aim_info,
MSGID_SayText, MSGID_StatusIcon, MSGID_TextMsg, MSGID_SendAudio, MSGID_ShowMenu, MSGID_VGUIMenu, MSGID_Health;
 
public plugin_cfg() {
        server_cmd("amx_cvar mp_playerid 2")
        server_cmd("amx_cvar sv_maxspeed 900")
        server_cmd("amx_cvar sv_restart 5")
}
 
 
//===========================================================================================//
//===============================[Weapons Settings]=========================================//
//=========================================================================================//
new bool:HavePrimaryWeapon[33], bool:HaveSecondaryWeapon[33], PrimaryWeapon[33], SecondaryWeapon[33];
 
//---|| Primary
#define M4A1_KEY        100
#define AK47_KEY        101
#define M3_KEY  102
#define AUG_KEY 103
#define FAMAS_KEY       104
#define MP5_KEY 105
#define XM1014_KEY      106
 
//---|| Secondary
#define USP_KEY 107
#define DEAGLE_KEY      108
#define ELITE_KEY       109
#define FIVESEVEN_KEY   110
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        cvar_gamedescription = register_cvar("furien_gamename", "KROND 2017")
        antifurienspawnhp = register_cvar("antifurien_spawnhp", "100")
        furienspawnhp = register_cvar("furien_spawnhp", "100")
        cvar_autojoin_team = register_cvar("furien_team", "5")
        cvar_autojoin_class = register_cvar("furien_class", "5")
        cvar_aim_info = register_cvar("furien_enable_aiminfo", "1")
       
        MSGID_SayText = get_user_msgid("SayText")
        MSGID_StatusIcon = get_user_msgid("StatusIcon")
        MSGID_TextMsg = get_user_msgid("TextMsg")
        MSGID_SendAudio = get_user_msgid("SendAudio")
        MSGID_ShowMenu = get_user_msgid("ShowMenu")
        MSGID_VGUIMenu = get_user_msgid("VGUIMenu")
       
        register_clcmd("jointeam", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 1", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 2", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 3", "CMD_BlockJoinTeam")
        register_clcmd("chooseteam", "CMD_BlockChooseTeam")
        register_clcmd("say /beneficii", "CmdShowMotd")
        register_clcmd("say /rs", "CmdResetScore")
        register_clcmd("say_team /rs", "CmdResetScore")
        register_clcmd("say /resetscore", "CmdResetScore")
        register_clcmd("say_team /resetscore", "CmdResetScore")
       
        RegisterHam(Ham_Spawn, "player", "Ham_Spawn_Post", 1)
        RegisterHam(Ham_Touch, "weaponbox", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "armoury_entity", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "weapon_shield", "HAM_Touch_Weapon")
       
        register_forward(FM_PlayerPreThink, "Player_PreThink");
        register_forward(FM_AddToFullPack, "FWD_AddToFullPack", 1);    
        register_forward(FM_PlayerPreThink, "FWD_ParachutePreThink");
        register_forward(FM_GetGameDescription, "FWD_GameDescription") 
       
        register_event("CurWeapon", "EVENT_CurWeapon", "be", "1=1")
        register_event("SendAudio", "EVENT_SwitchTeam", "a", "1=0", "2=%!MRAD_ctwin");
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "2&#Game_radio", "4&#Fire_in_the_hole")
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "3&#Game_radio", "5&#Fire_in_the_hole")  
       
        register_message(MSGID_StatusIcon, "MSG_StatusIcon");
        register_message(MSGID_TextMsg, "MSG_TextMessage");
        register_message(MSGID_ShowMenu, "MSG_ShowMenu");
        register_message(MSGID_VGUIMenu, "MSG_VGUIMenu");
        register_message(MSGID_SendAudio, "MSG_SendAudio");
        register_message(MSGID_Health, "MSG_Health")
}
 
 
public plugin_precache() {
        removebuyzone = register_cvar("furien_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 client_connect(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
}
 
public client_putinserver(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
        PrimaryWeapon[id] = 0
        SecondaryWeapon[id] = 0
}
 
public Ham_Spawn_Post(id) {
        if(is_user_connected(id) && is_user_alive(id)) {
                strip_user_weapons(id)
                HavePrimaryWeapon[id] = false
                HaveSecondaryWeapon[id] = false
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: {
                                fm_give_item(id, "weapon_hegrenade")
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 1)
                                fm_set_user_health(id, get_pcvar_num(furienspawnhp))
                        }
                        case TEAM_ANTIFURIEN: {
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 0)
                                fm_set_user_health(id, get_pcvar_num(antifurienspawnhp))
                                Equipment(id)  
                        }
                }
        }
}

public EVENT_FireINTheHole()
        return PLUGIN_HANDLED
 
public HAM_Touch_Weapon(ent, id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_FURIEN && !(get_pdata_cbase(ent, 39, 4) > 0))
                return HAM_SUPERCEDE
       
        return HAM_IGNORED
}

///////////////////////////////////////////////////////////////////////////////////////////////

public CmdResetScore(id) {
        if(get_user_frags(id) == 0 && get_user_deaths(id) == 0)
                ColorChat(id, "!gScorul tau este deja!t 0-0!g !")
        else {
                for(new i = 0; i < 2; i++) {
                        cs_set_user_deaths(id, 0);
                        set_user_frags(id, 0);
                }
                ColorChat(id, "!gTi-ai resetat scorul cu succes !")
        }
}

//=========================================================================//
//=======================[Weapons Settings]===============================//
//=======================================================================//
 
public Equipment(id) {
        if(is_user_alive(id) && get_user_team(id) == 2) {
                Menu = menu_create("\rWeapons Menu", "EquipmentCmd");
                menu_additem(Menu, "\wNew Weapons", "1", 0);
                if(PrimaryWeapon[id] && SecondaryWeapon[id])
                        menu_additem(Menu, "\wPrevious Setup", "2", 0);
                else
                        menu_additem(Menu, "\dPrevious Setup", "2", 0);
                menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER)
                menu_display(id, Menu, 0);
        }
}
 
public EquipmentCmd(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        if(!HavePrimaryWeapon[id])
                                Primary(id)
                        else if(!HaveSecondaryWeapon[id])
                                Secondary(id)
                }
                case 2: {
                        if(PrimaryWeapon[id] && SecondaryWeapon[id])
                                GiveLastWeapons(id)
                        else Equipment(id)
                }
                default: return PLUGIN_HANDLED;
        }
        menu_destroy(menu);
        return PLUGIN_HANDLED;
}
 
public Primary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rPrimary:", "CmdWeaponsHandler")
               
                menu_additem(Menu, "M4A1", "1", 0)
                menu_additem(Menu, "AK47", "2", 0)
                menu_additem(Menu, "M3", "3", 0)
                menu_additem(Menu, "Aug", "4", 0)
                menu_additem(Menu, "Famas", "5", 0)
                menu_additem(Menu, "MP5 Navy", "6", 0)
                menu_additem(Menu, "XM1014", "7", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdWeaponsHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        fm_give_item(id, "weapon_m4a1")
                        cs_set_user_bpammo(id, CSW_M4A1, 254)
                        PrimaryWeapon[id] = M4A1_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 2: {
                        fm_give_item(id, "weapon_ak47")
                        cs_set_user_bpammo(id, CSW_AK47, 254)
                        PrimaryWeapon[id] = AK47_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 3: {
                        fm_give_item(id, "weapon_m3")
                        cs_set_user_bpammo(id, CSW_M3, 254)
                        PrimaryWeapon[id] = M3_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 4: {
                        fm_give_item(id, "weapon_aug")
                        cs_set_user_bpammo(id, CSW_AUG, 254)
                        PrimaryWeapon[id] = AUG_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 5: {
                        fm_give_item(id, "weapon_famas")
                        cs_set_user_bpammo(id, CSW_FAMAS, 254)
                        PrimaryWeapon[id] = FAMAS_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 6: {
                        fm_give_item(id, "weapon_mp5navy")
                        cs_set_user_bpammo(id, CSW_MP5NAVY, 254)
                        PrimaryWeapon[id] = MP5_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 7: {
                        fm_give_item(id, "weapon_xm1014")
                        cs_set_user_bpammo(id, CSW_XM1014, 254)
                        PrimaryWeapon[id] = XM1014_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public Secondary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rSecondary:", "CmdSecondaryHandler")
               
                menu_additem(Menu, "USP", "1", 0)
                menu_additem(Menu, "Deagle", "2", 0)
                menu_additem(Menu, "Elite", "3", 0)
                menu_additem(Menu, "Five Seven", "4", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdSecondaryHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {  
                case 1: {
                        fm_give_item(id, "weapon_usp")
                        cs_set_user_bpammo(id, CSW_USP, 256)
                        SecondaryWeapon[id] = USP_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 2: {
                        fm_give_item(id, "weapon_deagle")
                        cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                        SecondaryWeapon[id] = DEAGLE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 3: {
                        fm_give_item(id, "weapon_elite")
                        cs_set_user_bpammo(id, CSW_ELITE, 256)
                        SecondaryWeapon[id] = ELITE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 4: {
                        fm_give_item(id, "weapon_fiveseven")
                        cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                        SecondaryWeapon[id] = FIVESEVEN_KEY
                        HaveSecondaryWeapon[id] = true;
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public GiveLastWeapons(id) {
        if(!HavePrimaryWeapon[id]) {
                switch(PrimaryWeapon[id]) {
                        case M4A1_KEY: {
                                fm_give_item(id, "weapon_m4a1")
                                cs_set_user_bpammo(id, CSW_M4A1, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AK47_KEY: {
                                fm_give_item(id, "weapon_ak47")
                                cs_set_user_bpammo(id, CSW_AK47, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case M3_KEY: {
                                fm_give_item(id, "weapon_m3")
                                cs_set_user_bpammo(id, CSW_M3, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AUG_KEY: {
                                fm_give_item(id, "weapon_aug")
                                cs_set_user_bpammo(id, CSW_AUG, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case FAMAS_KEY: {
                                fm_give_item(id, "weapon_famas")
                                cs_set_user_bpammo(id, CSW_FAMAS, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case MP5_KEY: {
                                fm_give_item(id, "weapon_mp5navy")
                                cs_set_user_bpammo(id, CSW_MP5NAVY, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case XM1014_KEY: {
                                fm_give_item(id, "weapon_xm1014")
                                cs_set_user_bpammo(id, CSW_XM1014, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                }
        }
        if(!HaveSecondaryWeapon[id]) {
                switch(SecondaryWeapon[id]) {
                        case USP_KEY: {
                                fm_give_item(id, "weapon_usp")
                                cs_set_user_bpammo(id, CSW_USP, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case DEAGLE_KEY: {
                                fm_give_item(id, "weapon_deagle")
                                cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case ELITE_KEY: {
                                fm_give_item(id, "weapon_elite")
                                cs_set_user_bpammo(id, CSW_ELITE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case FIVESEVEN_KEY: {
                                fm_give_item(id, "weapon_fiveseven")
                                cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                }
        }
}
public CMD_BlockJoinTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti JoinTeam ! ***")
        return 1;
}
 
public CMD_BlockChooseTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti ChooseTeam ! ***")
        return 1;
}
 
public CmdShowMotd(id)
        show_motd(id, "addons/amxmodx/configs/beneficii.html")
 
/////////////////////////////////////////////////////////////////////////
 
public EVENT_CurWeapon(id) {
        if(is_user_connected(id)) {
               
                new PlayerHealth;
                PlayerHealth = get_user_health(id)
                if(PlayerHealth >= 300)
                        fm_set_user_health(id, 300);
        }
}
 
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;
}
 
public MSG_TextMessage() {
        static TextMsg[22];
        get_msg_arg_string(2, TextMsg, charsmax(TextMsg))
        if(equal(TextMsg, "#Terrorists_Win")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#CTs_Win")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Bomb_Defused")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Bombed")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Saved")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Fire_in_the_hole"))
                return PLUGIN_HANDLED
        else if(equal(TextMsg, "#C4_Plant_At_Bomb_Spot")) {
                return PLUGIN_HANDLED
        }
        return PLUGIN_CONTINUE;
}
 
public MSG_ShowMenu(msgid, dest, id) {
        if(!Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        static team_select[] = "#Team_Select"
        static menu_text_code[sizeof team_select]
        get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)
        if(!equal(menu_text_code, team_select))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_VGUIMenu(msgid, dest, id) {
        if(get_msg_arg_int(1) != 2 || !Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_SendAudio() {
        static Sound[17]
        get_msg_arg_string(2, Sound, sizeof Sound - 1)
       
        if(equal(Sound, "terwin") || equal(Sound, "ctwin") || equal(Sound, "rounddraw") || equal(Sound, "bombpl") || equal(Sound, "bombdef"))
                return PLUGIN_HANDLED;
       
        return PLUGIN_CONTINUE;
}
 
public MSG_Health(msgid, dest, id) {
        static Health;
        Health = get_msg_arg_int(1)
        if(Health > 255)
                set_msg_arg_int(1, ARG_BYTE, 255);
        else if(Health == 256)
                set_msg_arg_int(1, ARG_BYTE, get_user_health(id) + 10)
}
bool:Should_AutoJoin(id) {
        return(get_pcvar_num(cvar_autojoin_team) && !get_user_team(id) && !task_exists(id))
}
 
JoinTeam_Task(id, menu_msgid) {
        static param_menu_msgid[2]
        param_menu_msgid[0] = menu_msgid
       
        set_task(0.1, "Force_JoinTeam", id, param_menu_msgid, sizeof param_menu_msgid)
}
 
public Force_JoinTeam(menu_msgid[], id) {
        if(get_user_team(id))
                return
       
        static team[2], class[2]
        get_pcvar_string(cvar_autojoin_team, team, sizeof team - 1)
        get_pcvar_string(cvar_autojoin_class, class, sizeof class - 1)
        Force_Team_Join(id, menu_msgid[0], team, class)
}
 
stock Force_Team_Join(id, menu_msgid, team[] = "5", class[] = "0") {
        static jointeam[] = "jointeam"
        if(class[0] == '0') {
                engclient_cmd(id, jointeam, team)
                return
        }
       
        static msg_block, joinclass[] = "joinclass"
        msg_block = get_msg_block(menu_msgid)
        set_msg_block(menu_msgid, BLOCK_SET)
        engclient_cmd(id, jointeam, team)
        engclient_cmd(id, joinclass, class)
        set_msg_block(menu_msgid, msg_block)
}
 
public EVENT_SwitchTeam() {
        new Players[32], PlayersNum, id;
        get_players(Players, PlayersNum)
        if(PlayersNum) {
                for(new i; i < PlayersNum; i++) {
                        id = Players
                        BeginDelay(id)
                }
        }
}
 
public BeginDelay(id) {
        if(is_user_connected(id)) {
                switch(id) {
                        case 1..7: set_task(0.1, "BeginTeamSwap", id)
                                case 8..15: set_task(0.2, "BeginTeamSwap", id)
                                case 16..23: set_task(0.3, "BeginTeamSwap", id)
                                case 24..32: set_task(0.4, "BeginTeamSwap", id)
                        }
        }
}
 
public BeginTeamSwap(id) {
        if(is_user_connected(id)) {
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: cs_set_user_team(id, CS_TEAM_CT)
                                case TEAM_ANTIFURIEN: cs_set_user_team(id, CS_TEAM_T)
                        }
        }
}      
 
///////////////////////////////////////////////////////////////////////////////////////////////
 
public Player_PreThink(id) {
        if(is_user_connected(id)) {
                if(get_user_team(id) == TEAM_FURIEN) {
                        if(pev(id, pev_gravity) > FURIEN_GRAVITY && pev(id, pev_gravity) > 0.1)
                                set_pev(id, pev_gravity, FURIEN_GRAVITY)
                       
                        if(pev(id, pev_maxspeed) < FURIEN_SPEED && pev(id, pev_maxspeed) > 1.0) {
                                set_pev(id, pev_maxspeed, FURIEN_SPEED)
                                set_user_footsteps(id, 1)
                        }
                }
                if(get_pcvar_num(cvar_aim_info)) {
                        new Target, Body;
                        get_user_aiming(id, Target, Body);
                        if(is_user_alive(id) && is_user_connected(Target) && is_user_alive(Target)) {
                                new TargetTeam, PlayerTeam, TargetName[32], Message[128], TargetHealth, TargetArmor, RED, GREEN, BLUE;
                                TargetTeam = get_user_team(Target)
                                PlayerTeam = get_user_team(id)
                                get_user_name(Target, TargetName, 31)
                                TargetHealth = get_user_health(Target)
                                TargetArmor = get_user_armor(Target)
                                if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 20
                                        GREEN = 200
                                        BLUE = 50
                                }
                                else if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_FURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_FURIEN)
                                        return
                                set_hudmessage(RED, GREEN, BLUE, -1.0, -1.0, 0, 0.0, 0.1, 0.0, 0.0, -1);
                                show_hudmessage(id, "%s", Message)
                        }
                }
        }
}
 
public FWD_AddToFullPack(es, e, ent, host, host_flags, player, p_set) {
        if(is_user_connected(ent) && is_user_connected(host) && is_user_alive(ent)) {
                if(is_user_alive(host) && get_user_team(ent) == 1 && get_user_team(host) == 1
                || !is_user_alive(host) && get_user_team(ent) == 1 && pev(host, pev_iuser2) == ent
                || get_user_team(ent) == 1 && pev(ent, pev_maxspeed) <= 1.0) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        set_es(es, ES_RenderAmt, 255);
                }
                else if(get_user_team(ent) == 1) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        static Float:Origin[3]
                        pev(ent, pev_origin, Origin)
                       
                        if(get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && fm_get_speed(ent) <= 5 || get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && Origin[0] == Wallorigin[ent][0] && Origin[1] == Wallorigin[ent][1] && Origin[2] == Wallorigin[ent][2])
                                set_es(es, ES_RenderAmt, 0);
                        else
                                set_es(es, ES_RenderAmt, 255);
                }
        }
}
 
public FWD_ParachutePreThink(id) {
        if(is_user_alive(id)) {
                new Float:FallSpeed = -50.0;
                new Float:Frame;
               
                new Button = pev(id, pev_button);
                new OldButton = pev(id, pev_oldbuttons);
                new Flags = pev(id, pev_flags);
               
                if(ParaENT[id] > 0 &&(Flags & FL_ONGROUND)) {
                       
                        if(pev(ParaENT[id],pev_sequence) != 2) {
                                set_pev(ParaENT[id], pev_sequence, 2);
                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                set_pev(ParaENT[id], pev_frame, 0.0);
                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                set_pev(ParaENT[id], pev_animtime, 0.0);
                                return;
                        }
                       
                        pev(ParaENT[id],pev_fuser1, Frame);
                        Frame += 2.0;
                        set_pev(ParaENT[id],pev_fuser1,Frame);
                        set_pev(ParaENT[id],pev_frame,Frame);
                       
                        if(Frame > 254.0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        else {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        return;
                }
               
                if(Button & IN_USE) {
                        new Float:Velocity[3];
                        pev(id, pev_velocity, Velocity);
                       
                        if(Velocity[2] < 0.0) {
                                if(ParaENT[id] <= 0) {
                                        ParaENT[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
                                       
                                        if(ParaENT[id] > 0) {
                                                set_pev(ParaENT[id],pev_classname, PARACHUTE_CLASS);
                                                set_pev(ParaENT[id], pev_aiment, id);
                                                set_pev(ParaENT[id], pev_owner, id);
                                                set_pev(ParaENT[id], pev_movetype, MOVETYPE_FLY);
                                                set_pev(ParaENT[id], pev_sequence, 0);
                                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                set_pev(ParaENT[id], pev_frame, 0.0);
                                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                        }
                                }
                                if(ParaENT[id] > 0) {
                                        set_pev(id, pev_sequence, 3);
                                        set_pev(id, pev_gaitsequence, 1);
                                        set_pev(id, pev_frame, 1.0);
                                        set_pev(id, pev_framerate, 1.0);
                                       
                                        Velocity[2] = (Velocity[2] + 40.0 < FallSpeed) ? Velocity[2] + 40.0 : FallSpeed;
                                        set_pev(id, pev_velocity, Velocity);
                                       
                                        if(pev(ParaENT[id],pev_sequence) == 0) {
                                                pev(ParaENT[id],pev_fuser1, Frame);
                                                Frame += 1.0;
                                                set_pev(ParaENT[id],pev_fuser1,Frame);
                                                set_pev(ParaENT[id],pev_frame,Frame);
                                               
                                                if(Frame > 100.0) {
                                                        set_pev(ParaENT[id], pev_animtime, 0.0);
                                                        set_pev(ParaENT[id], pev_framerate, 0.4);
                                                        set_pev(ParaENT[id], pev_sequence, 1);
                                                        set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                        set_pev(ParaENT[id], pev_frame, 0.0);
                                                        set_pev(ParaENT[id], pev_fuser1, 0.0);
                                                }
                                        }
                                }
                        }
                       
                        else if(ParaENT[id] > 0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                }
               
                else if((OldButton & IN_USE) && ParaENT[id] > 0) {
                        engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                        ParaENT[id] = 0;
                }
        }
}
 
public FWD_GameDescription() {
        static GameName[32]
        get_pcvar_string(cvar_gamedescription, GameName, 31)
       
        forward_return(FMV_STRING, GameName)
       
        return FMRES_SUPERCEDE
}
 
stock ColorChat(const id, const input[], any:...) {
        new count = 1, players[32];
        static msg[191];
        vformat(msg, 190, input, 3);
       
        replace_all(msg, 190, "!g", "^4");
        replace_all(msg, 190, "!t", "^3");
       
        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, MSGID_SayText, _, players);
                                write_byte(players);
                                write_string(msg);
                                message_end();
                        }
                }
        }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin pentru catarare :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

new const PLUGIN[] = "Furien WallHang";
new const VERSION[] = "1.0";

#pragma semicolon 1

// Float
new Float: Wallorigin[33][3];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "Aragon*");
	
	// Ham Forwrads
	RegisterHam(Ham_Touch, "player", "fw_PlayerTouch", 1);
	
	// FM Forwards
	register_forward(FM_PlayerPostThink, "fw_PlayerPostThink");
	
	// CVARs
	register_cvar("furien_wallahng", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
}

public fw_PlayerTouch(id, world)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{	
		new ClassName[32];
		pev(world, pev_classname, ClassName,(32-1));
		
		if(equal(ClassName, "worldspawn") || equal(ClassName, "func_wall") || equal(ClassName, "func_breakable"))
			pev(id, pev_origin, Wallorigin[id]);
	}
	
	return HAM_SUPERCEDE;
}

public fw_PlayerPostThink(id)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{
		static Float:Origin[3];
		pev(id, pev_origin, Origin);
		
		static Button;
		Button = pev(id, pev_button);
		
		if(Button & IN_USE && get_distance_f(Origin, Wallorigin[id]) <= 5.0 && !(pev(id, pev_flags) & FL_ONGROUND))
		{
			new Float:Velocity[3];
			new ClimbSpeed = floatround(pev(id, pev_maxspeed) / 2.0);
			
			if(Button & IN_FORWARD)
			{
				velocity_by_aim(id, ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else if(Button & IN_BACK)
			{
				velocity_by_aim(id, - ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else
			{
				set_pev(id, pev_origin, Wallorigin[id]);
				velocity_by_aim(id, 0, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
		}
	}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin MultiJump : https://forums.alliedmods.net/showthread.php?t=10159
HP/AP in HUD : pluginuri-extream/subiect-t235197.html
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 3 times
Contact:

30 May 2020, 15:45

WHOAMI? wrote:
30 May 2020, 15:22
ModelVIP:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        register_plugin("AMX_M_VIP", "2.0", "MrPower")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/vip_te/vip_te.mdl")
        precache_model("models/player/vip_ct/vip_ct.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "vip_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "vip_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
Shop :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

//Like in C ;)
//#pragma semicolon 1

//Take Damage
#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )
new g_iMaxPlayers;

//Prefix
new const szPrefix [ ] 		=	 "[FURIEN]";

//Sound
new const PICK_GUN [ ]          =	 "items/gunpickup2.wav";

//SK Models
new const SK [ ] [ ]		= 
{
"models/furienruls/v_knife_furienrulsro.mdl",
"models/p_knife.mdl"
};

//Cvar's
new sk_price, he_t_price, he_ct_price, defuse_price, hp_price, ap_price;
new sk_damage, max_hp, max_ap;

//Bools
new bool: HasSK[ 33 ];

new BuyedGrenades[33];

//Init
public plugin_init( ) 
{
register_plugin( "Furien Shop", "2.0", "IDK" );

//Open Shop
register_clcmd( "say", "Func_Say" );
register_clcmd( "say_team", "Func_Say" );
register_clcmd( "/shop", "CheckTeam" );
register_clcmd( "shop", "CheckTeam" );

//Cvar's
sk_price 	= 	register_cvar( "fs_sk_price", "10000" );
he_t_price 	= 	register_cvar( "fs_he_t_price", "3000" );
he_ct_price 	= 	register_cvar( "fs_he_ct_price", "6000" );
defuse_price 	= 	register_cvar( "fs_defuse_price", "500" );
hp_price 	= 	register_cvar( "fs_hp_price", "3000" );
ap_price 	= 	register_cvar( "fs_ap_price", "500" );
sk_damage 	= 	register_cvar( "fs_sk_damage", "2.0" );
max_hp 		= 	register_cvar( "fs_max_hp", "250" );
max_ap 		= 	register_cvar( "fs_max_ap", "300" );

//Ham's
RegisterHam( Ham_Killed, "player", "Ham_CBasePlayer_Killed_Post", true );
RegisterHam( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1 ); 
RegisterHam( Ham_TakeDamage, "player", "Player_TakeDamage" );

//Curent Weapon
register_event ( "CurWeapon", "Current_Weapon", "be", "1=1" );

//Max Players
g_iMaxPlayers = get_maxplayers ( );
}
	  

//Precache
public plugin_precache( ) 
{
static i;
for( i = 0 ; i < sizeof ( SK ); i++ ) 
	precache_model( SK [ i ] );
	
	precache_sound( PICK_GUN );
	
	return PLUGIN_CONTINUE;
}

//Killed
public Ham_CBasePlayer_Killed_Post( id ) 
	HasSK[ id ] = false;

//Spawn
public fwHamPlayerSpawnPost( id ) 
{
	if(!is_user_alive(id))
		return 
	if( get_user_team(id) == 2 )
		HasSK[ id ] = false;
	BuyedGrenades[id] = 0
}	

//Put in Server
public client_putinserver( id ) 
	HasSK[ id ] = false;

//Open Shop
public Func_Say( id ) 
{
	new szSaid[ 192 ];
	read_args( szSaid, sizeof( szSaid ) -1 );
	
	remove_quotes( szSaid );
	
	if( contain( szSaid, "shop" ) != -1 && !is_user_alive(id))
	{
		CheckTeam( id );
		return 1;
	}
	else if( contain( szSaid, "shop" ) != -1 && is_user_alive(id))
		CheckTeam( id );
	return 0;
}

//Show Model
public Current_Weapon( id ) 
{
	new weapon = get_user_weapon( id );
	
	if( weapon == CSW_KNIFE ) 
	{
		if( HasSK[ id ] == true ) 
		{
			set_pev ( id, pev_viewmodel2, SK[ 0 ] );
			set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
		}
	}
}

//Damage
public Player_TakeDamage( iVictim, iInflictor, iAttacker, Float:fDamage ) 
{
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && HasSK [ iAttacker ] ) 
	{
		SetHamParamFloat ( 4, fDamage * get_pcvar_float( sk_damage ) );
		
		return HAM_HANDLED;
	}
	
	return HAM_IGNORED;
	
}

//Check Team Shop
public CheckTeam( id ) 
{
	if( is_user_alive ( id ) ) 
	{
		if ( get_user_team ( id ) == 1 )
			ShowMenu_T( id );
		if ( get_user_team ( id ) == 2 ) 
			ShowMenu_CT( id );
	}	
}

//T Shop
public ShowMenu_T( id ) 
{
	new menu_t = menu_create( "\rFurien \yShop^n", "T_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "SuperKnife\R\y%i" , get_pcvar_num( sk_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_t_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_t, iLine1, "1" ); 
	menu_additem( menu_t, iLine2, "2" );
	menu_additem( menu_t, iLine3, "3" );
	menu_additem( menu_t, iLine4, "4" ); 
	
	menu_setprop( menu_t, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_t, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_t, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_t, 0 );
	
	return PLUGIN_HANDLED;
}

public T_Menu( id, menu_t, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 1 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_t, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( sk_price ) ) 
			{
				if ( !HasSK [ id ] ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( sk_price ) );
					
					//Pev SuperKnife
					if( get_user_weapon( id ) == CSW_KNIFE ) 
					{
						set_pev ( id, pev_viewmodel2, SK[ 0 ] );
						set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
					}
					else
						engclient_cmd( id, "weapon_knife" );
					
					//Give SuperKnife
					HasSK[ id ] = true;
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 SuperKnife !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( sk_price ) );	
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_t_price ) ) 
			{
				if(BuyedGrenades[id] < 2) {
					if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
					{
						//Get Money
						cs_set_user_money( id, price - get_pcvar_num( he_t_price ) );
						
						//Give He
						give_item( id, "weapon_hegrenade" );
						BuyedGrenades[id]++
						
					}
					else 
						ColorChat( id, "^x04%s^x01 Ai deja ^x03 He Grenade !", szPrefix );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai cumparat deja ^x03 2 He Grenade in aceasta runda.", szPrefix);
				
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_t_price ) );		
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor ( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_t );
	
	return PLUGIN_HANDLED;
}

//CT Shop
public ShowMenu_CT( id ) 
{
	new menu_ct = menu_create( "\rAnti-Furien \yShop^n", "CT_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "Defuse Kit\R\y%i" , get_pcvar_num( defuse_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_ct_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_ct, iLine1, "1" ); 
	menu_additem( menu_ct, iLine2, "2" );
	menu_additem( menu_ct, iLine3, "3" );
	menu_additem( menu_ct, iLine4, "4" ); 
	
	menu_setprop( menu_ct, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_ct, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_ct, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_ct, 0 );
	
	return PLUGIN_HANDLED;
}

public CT_Menu( id, menu_ct, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 2 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_ct, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( defuse_price ) ) 
			{
				if ( !cs_get_user_defuse( id ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( defuse_price ) );
					
					//Give DefuseKit
					cs_set_user_defuse( id,1 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 DefuseKIT !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( defuse_price ) );
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_ct_price ) ) 
			{
				if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( he_ct_price ) );
					
					//Give He
					give_item( id, "weapon_hegrenade" );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 He Grenade !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_ct_price ) );	
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health ( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id,price- get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_ct );
	
	return PLUGIN_HANDLED;
}

//Stock ColorChat
stock ColorChat( const id, const input[ ], any:... ) 
{
	new count = 1, players[ 32 ];
	static msg[ 191 ];
	vformat( msg, 190, input, 3 );
	
	replace_all( msg, 190, "!g", "^4" );
	replace_all( msg, 190, "!y", "^1" );
	replace_all( msg, 190, "!t", "^3" );
	
	if( id ) players[ 0 ] = id;
	else get_players( players, count, "ch" ); 
{
	for( new i = 0; i < count; i++ ) 
	{
		if( is_user_connected( players[ i ] ) ) 
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] );
			write_byte( players[ i ] );
			write_string( msg );
			message_end( );
		}
	}
} 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Plugin bet : https://forums.alliedmods.net/showthread.php?p=1060370
Plugin nademodes : https://forums.alliedmods.net/showthread.php?p=663892
Baza furien :
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "Furien Clasic"
#define VERSION "2.0"
#define AUTHOR "DaNNe."
 
#define FURIEN_GRAVITY  0.375
#define FURIEN_SPEED    750.0
#define TEAM_FURIEN 1
#define TEAM_ANTIFURIEN 2
 
 
#if cellbits == 32
#define OFFSET_BZ 235
#else
#define OFFSET_BZ 268
#endif
 
//Settings
new bool:MakeVisible[33], Float:Wallorigin[33][3]
 
//Parachute
#define PARACHUTE_CLASS "Parachute"
new ParaENT[33];
 
new Menu;
new cvar_gamedescription, furienspawnhp, antifurienspawnhp, removebuyzone, cvar_autojoin_class, cvar_autojoin_team, cvar_aim_info,
MSGID_SayText, MSGID_StatusIcon, MSGID_TextMsg, MSGID_SendAudio, MSGID_ShowMenu, MSGID_VGUIMenu, MSGID_Health;
 
public plugin_cfg() {
        server_cmd("amx_cvar mp_playerid 2")
        server_cmd("amx_cvar sv_maxspeed 900")
        server_cmd("amx_cvar sv_restart 5")
}
 
 
//===========================================================================================//
//===============================[Weapons Settings]=========================================//
//=========================================================================================//
new bool:HavePrimaryWeapon[33], bool:HaveSecondaryWeapon[33], PrimaryWeapon[33], SecondaryWeapon[33];
 
//---|| Primary
#define M4A1_KEY        100
#define AK47_KEY        101
#define M3_KEY  102
#define AUG_KEY 103
#define FAMAS_KEY       104
#define MP5_KEY 105
#define XM1014_KEY      106
 
//---|| Secondary
#define USP_KEY 107
#define DEAGLE_KEY      108
#define ELITE_KEY       109
#define FIVESEVEN_KEY   110
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        cvar_gamedescription = register_cvar("furien_gamename", "KROND 2017")
        antifurienspawnhp = register_cvar("antifurien_spawnhp", "100")
        furienspawnhp = register_cvar("furien_spawnhp", "100")
        cvar_autojoin_team = register_cvar("furien_team", "5")
        cvar_autojoin_class = register_cvar("furien_class", "5")
        cvar_aim_info = register_cvar("furien_enable_aiminfo", "1")
       
        MSGID_SayText = get_user_msgid("SayText")
        MSGID_StatusIcon = get_user_msgid("StatusIcon")
        MSGID_TextMsg = get_user_msgid("TextMsg")
        MSGID_SendAudio = get_user_msgid("SendAudio")
        MSGID_ShowMenu = get_user_msgid("ShowMenu")
        MSGID_VGUIMenu = get_user_msgid("VGUIMenu")
       
        register_clcmd("jointeam", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 1", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 2", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 3", "CMD_BlockJoinTeam")
        register_clcmd("chooseteam", "CMD_BlockChooseTeam")
        register_clcmd("say /beneficii", "CmdShowMotd")
        register_clcmd("say /rs", "CmdResetScore")
        register_clcmd("say_team /rs", "CmdResetScore")
        register_clcmd("say /resetscore", "CmdResetScore")
        register_clcmd("say_team /resetscore", "CmdResetScore")
       
        RegisterHam(Ham_Spawn, "player", "Ham_Spawn_Post", 1)
        RegisterHam(Ham_Touch, "weaponbox", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "armoury_entity", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "weapon_shield", "HAM_Touch_Weapon")
       
        register_forward(FM_PlayerPreThink, "Player_PreThink");
        register_forward(FM_AddToFullPack, "FWD_AddToFullPack", 1);    
        register_forward(FM_PlayerPreThink, "FWD_ParachutePreThink");
        register_forward(FM_GetGameDescription, "FWD_GameDescription") 
       
        register_event("CurWeapon", "EVENT_CurWeapon", "be", "1=1")
        register_event("SendAudio", "EVENT_SwitchTeam", "a", "1=0", "2=%!MRAD_ctwin");
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "2&#Game_radio", "4&#Fire_in_the_hole")
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "3&#Game_radio", "5&#Fire_in_the_hole")  
       
        register_message(MSGID_StatusIcon, "MSG_StatusIcon");
        register_message(MSGID_TextMsg, "MSG_TextMessage");
        register_message(MSGID_ShowMenu, "MSG_ShowMenu");
        register_message(MSGID_VGUIMenu, "MSG_VGUIMenu");
        register_message(MSGID_SendAudio, "MSG_SendAudio");
        register_message(MSGID_Health, "MSG_Health")
}
 
 
public plugin_precache() {
        removebuyzone = register_cvar("furien_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 client_connect(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
}
 
public client_putinserver(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
        PrimaryWeapon[id] = 0
        SecondaryWeapon[id] = 0
}
 
public Ham_Spawn_Post(id) {
        if(is_user_connected(id) && is_user_alive(id)) {
                strip_user_weapons(id)
                HavePrimaryWeapon[id] = false
                HaveSecondaryWeapon[id] = false
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: {
                                fm_give_item(id, "weapon_hegrenade")
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 1)
                                fm_set_user_health(id, get_pcvar_num(furienspawnhp))
                        }
                        case TEAM_ANTIFURIEN: {
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 0)
                                fm_set_user_health(id, get_pcvar_num(antifurienspawnhp))
                                Equipment(id)  
                        }
                }
        }
}

public EVENT_FireINTheHole()
        return PLUGIN_HANDLED
 
public HAM_Touch_Weapon(ent, id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_FURIEN && !(get_pdata_cbase(ent, 39, 4) > 0))
                return HAM_SUPERCEDE
       
        return HAM_IGNORED
}

///////////////////////////////////////////////////////////////////////////////////////////////

public CmdResetScore(id) {
        if(get_user_frags(id) == 0 && get_user_deaths(id) == 0)
                ColorChat(id, "!gScorul tau este deja!t 0-0!g !")
        else {
                for(new i = 0; i < 2; i++) {
                        cs_set_user_deaths(id, 0);
                        set_user_frags(id, 0);
                }
                ColorChat(id, "!gTi-ai resetat scorul cu succes !")
        }
}

//=========================================================================//
//=======================[Weapons Settings]===============================//
//=======================================================================//
 
public Equipment(id) {
        if(is_user_alive(id) && get_user_team(id) == 2) {
                Menu = menu_create("\rWeapons Menu", "EquipmentCmd");
                menu_additem(Menu, "\wNew Weapons", "1", 0);
                if(PrimaryWeapon[id] && SecondaryWeapon[id])
                        menu_additem(Menu, "\wPrevious Setup", "2", 0);
                else
                        menu_additem(Menu, "\dPrevious Setup", "2", 0);
                menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER)
                menu_display(id, Menu, 0);
        }
}
 
public EquipmentCmd(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        if(!HavePrimaryWeapon[id])
                                Primary(id)
                        else if(!HaveSecondaryWeapon[id])
                                Secondary(id)
                }
                case 2: {
                        if(PrimaryWeapon[id] && SecondaryWeapon[id])
                                GiveLastWeapons(id)
                        else Equipment(id)
                }
                default: return PLUGIN_HANDLED;
        }
        menu_destroy(menu);
        return PLUGIN_HANDLED;
}
 
public Primary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rPrimary:", "CmdWeaponsHandler")
               
                menu_additem(Menu, "M4A1", "1", 0)
                menu_additem(Menu, "AK47", "2", 0)
                menu_additem(Menu, "M3", "3", 0)
                menu_additem(Menu, "Aug", "4", 0)
                menu_additem(Menu, "Famas", "5", 0)
                menu_additem(Menu, "MP5 Navy", "6", 0)
                menu_additem(Menu, "XM1014", "7", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdWeaponsHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        fm_give_item(id, "weapon_m4a1")
                        cs_set_user_bpammo(id, CSW_M4A1, 254)
                        PrimaryWeapon[id] = M4A1_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 2: {
                        fm_give_item(id, "weapon_ak47")
                        cs_set_user_bpammo(id, CSW_AK47, 254)
                        PrimaryWeapon[id] = AK47_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 3: {
                        fm_give_item(id, "weapon_m3")
                        cs_set_user_bpammo(id, CSW_M3, 254)
                        PrimaryWeapon[id] = M3_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 4: {
                        fm_give_item(id, "weapon_aug")
                        cs_set_user_bpammo(id, CSW_AUG, 254)
                        PrimaryWeapon[id] = AUG_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 5: {
                        fm_give_item(id, "weapon_famas")
                        cs_set_user_bpammo(id, CSW_FAMAS, 254)
                        PrimaryWeapon[id] = FAMAS_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 6: {
                        fm_give_item(id, "weapon_mp5navy")
                        cs_set_user_bpammo(id, CSW_MP5NAVY, 254)
                        PrimaryWeapon[id] = MP5_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 7: {
                        fm_give_item(id, "weapon_xm1014")
                        cs_set_user_bpammo(id, CSW_XM1014, 254)
                        PrimaryWeapon[id] = XM1014_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public Secondary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rSecondary:", "CmdSecondaryHandler")
               
                menu_additem(Menu, "USP", "1", 0)
                menu_additem(Menu, "Deagle", "2", 0)
                menu_additem(Menu, "Elite", "3", 0)
                menu_additem(Menu, "Five Seven", "4", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdSecondaryHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {  
                case 1: {
                        fm_give_item(id, "weapon_usp")
                        cs_set_user_bpammo(id, CSW_USP, 256)
                        SecondaryWeapon[id] = USP_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 2: {
                        fm_give_item(id, "weapon_deagle")
                        cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                        SecondaryWeapon[id] = DEAGLE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 3: {
                        fm_give_item(id, "weapon_elite")
                        cs_set_user_bpammo(id, CSW_ELITE, 256)
                        SecondaryWeapon[id] = ELITE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 4: {
                        fm_give_item(id, "weapon_fiveseven")
                        cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                        SecondaryWeapon[id] = FIVESEVEN_KEY
                        HaveSecondaryWeapon[id] = true;
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public GiveLastWeapons(id) {
        if(!HavePrimaryWeapon[id]) {
                switch(PrimaryWeapon[id]) {
                        case M4A1_KEY: {
                                fm_give_item(id, "weapon_m4a1")
                                cs_set_user_bpammo(id, CSW_M4A1, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AK47_KEY: {
                                fm_give_item(id, "weapon_ak47")
                                cs_set_user_bpammo(id, CSW_AK47, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case M3_KEY: {
                                fm_give_item(id, "weapon_m3")
                                cs_set_user_bpammo(id, CSW_M3, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AUG_KEY: {
                                fm_give_item(id, "weapon_aug")
                                cs_set_user_bpammo(id, CSW_AUG, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case FAMAS_KEY: {
                                fm_give_item(id, "weapon_famas")
                                cs_set_user_bpammo(id, CSW_FAMAS, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case MP5_KEY: {
                                fm_give_item(id, "weapon_mp5navy")
                                cs_set_user_bpammo(id, CSW_MP5NAVY, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case XM1014_KEY: {
                                fm_give_item(id, "weapon_xm1014")
                                cs_set_user_bpammo(id, CSW_XM1014, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                }
        }
        if(!HaveSecondaryWeapon[id]) {
                switch(SecondaryWeapon[id]) {
                        case USP_KEY: {
                                fm_give_item(id, "weapon_usp")
                                cs_set_user_bpammo(id, CSW_USP, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case DEAGLE_KEY: {
                                fm_give_item(id, "weapon_deagle")
                                cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case ELITE_KEY: {
                                fm_give_item(id, "weapon_elite")
                                cs_set_user_bpammo(id, CSW_ELITE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case FIVESEVEN_KEY: {
                                fm_give_item(id, "weapon_fiveseven")
                                cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                }
        }
}
public CMD_BlockJoinTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti JoinTeam ! ***")
        return 1;
}
 
public CMD_BlockChooseTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti ChooseTeam ! ***")
        return 1;
}
 
public CmdShowMotd(id)
        show_motd(id, "addons/amxmodx/configs/beneficii.html")
 
/////////////////////////////////////////////////////////////////////////
 
public EVENT_CurWeapon(id) {
        if(is_user_connected(id)) {
               
                new PlayerHealth;
                PlayerHealth = get_user_health(id)
                if(PlayerHealth >= 300)
                        fm_set_user_health(id, 300);
        }
}
 
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;
}
 
public MSG_TextMessage() {
        static TextMsg[22];
        get_msg_arg_string(2, TextMsg, charsmax(TextMsg))
        if(equal(TextMsg, "#Terrorists_Win")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#CTs_Win")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Bomb_Defused")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Bombed")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Saved")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Fire_in_the_hole"))
                return PLUGIN_HANDLED
        else if(equal(TextMsg, "#C4_Plant_At_Bomb_Spot")) {
                return PLUGIN_HANDLED
        }
        return PLUGIN_CONTINUE;
}
 
public MSG_ShowMenu(msgid, dest, id) {
        if(!Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        static team_select[] = "#Team_Select"
        static menu_text_code[sizeof team_select]
        get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)
        if(!equal(menu_text_code, team_select))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_VGUIMenu(msgid, dest, id) {
        if(get_msg_arg_int(1) != 2 || !Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_SendAudio() {
        static Sound[17]
        get_msg_arg_string(2, Sound, sizeof Sound - 1)
       
        if(equal(Sound, "terwin") || equal(Sound, "ctwin") || equal(Sound, "rounddraw") || equal(Sound, "bombpl") || equal(Sound, "bombdef"))
                return PLUGIN_HANDLED;
       
        return PLUGIN_CONTINUE;
}
 
public MSG_Health(msgid, dest, id) {
        static Health;
        Health = get_msg_arg_int(1)
        if(Health > 255)
                set_msg_arg_int(1, ARG_BYTE, 255);
        else if(Health == 256)
                set_msg_arg_int(1, ARG_BYTE, get_user_health(id) + 10)
}
bool:Should_AutoJoin(id) {
        return(get_pcvar_num(cvar_autojoin_team) && !get_user_team(id) && !task_exists(id))
}
 
JoinTeam_Task(id, menu_msgid) {
        static param_menu_msgid[2]
        param_menu_msgid[0] = menu_msgid
       
        set_task(0.1, "Force_JoinTeam", id, param_menu_msgid, sizeof param_menu_msgid)
}
 
public Force_JoinTeam(menu_msgid[], id) {
        if(get_user_team(id))
                return
       
        static team[2], class[2]
        get_pcvar_string(cvar_autojoin_team, team, sizeof team - 1)
        get_pcvar_string(cvar_autojoin_class, class, sizeof class - 1)
        Force_Team_Join(id, menu_msgid[0], team, class)
}
 
stock Force_Team_Join(id, menu_msgid, team[] = "5", class[] = "0") {
        static jointeam[] = "jointeam"
        if(class[0] == '0') {
                engclient_cmd(id, jointeam, team)
                return
        }
       
        static msg_block, joinclass[] = "joinclass"
        msg_block = get_msg_block(menu_msgid)
        set_msg_block(menu_msgid, BLOCK_SET)
        engclient_cmd(id, jointeam, team)
        engclient_cmd(id, joinclass, class)
        set_msg_block(menu_msgid, msg_block)
}
 
public EVENT_SwitchTeam() {
        new Players[32], PlayersNum, id;
        get_players(Players, PlayersNum)
        if(PlayersNum) {
                for(new i; i < PlayersNum; i++) {
                        id = Players
                        BeginDelay(id)
                }
        }
}
 
public BeginDelay(id) {
        if(is_user_connected(id)) {
                switch(id) {
                        case 1..7: set_task(0.1, "BeginTeamSwap", id)
                                case 8..15: set_task(0.2, "BeginTeamSwap", id)
                                case 16..23: set_task(0.3, "BeginTeamSwap", id)
                                case 24..32: set_task(0.4, "BeginTeamSwap", id)
                        }
        }
}
 
public BeginTeamSwap(id) {
        if(is_user_connected(id)) {
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: cs_set_user_team(id, CS_TEAM_CT)
                                case TEAM_ANTIFURIEN: cs_set_user_team(id, CS_TEAM_T)
                        }
        }
}      
 
///////////////////////////////////////////////////////////////////////////////////////////////
 
public Player_PreThink(id) {
        if(is_user_connected(id)) {
                if(get_user_team(id) == TEAM_FURIEN) {
                        if(pev(id, pev_gravity) > FURIEN_GRAVITY && pev(id, pev_gravity) > 0.1)
                                set_pev(id, pev_gravity, FURIEN_GRAVITY)
                       
                        if(pev(id, pev_maxspeed) < FURIEN_SPEED && pev(id, pev_maxspeed) > 1.0) {
                                set_pev(id, pev_maxspeed, FURIEN_SPEED)
                                set_user_footsteps(id, 1)
                        }
                }
                if(get_pcvar_num(cvar_aim_info)) {
                        new Target, Body;
                        get_user_aiming(id, Target, Body);
                        if(is_user_alive(id) && is_user_connected(Target) && is_user_alive(Target)) {
                                new TargetTeam, PlayerTeam, TargetName[32], Message[128], TargetHealth, TargetArmor, RED, GREEN, BLUE;
                                TargetTeam = get_user_team(Target)
                                PlayerTeam = get_user_team(id)
                                get_user_name(Target, TargetName, 31)
                                TargetHealth = get_user_health(Target)
                                TargetArmor = get_user_armor(Target)
                                if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 20
                                        GREEN = 200
                                        BLUE = 50
                                }
                                else if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_FURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_FURIEN)
                                        return
                                set_hudmessage(RED, GREEN, BLUE, -1.0, -1.0, 0, 0.0, 0.1, 0.0, 0.0, -1);
                                show_hudmessage(id, "%s", Message)
                        }
                }
        }
}
 
public FWD_AddToFullPack(es, e, ent, host, host_flags, player, p_set) {
        if(is_user_connected(ent) && is_user_connected(host) && is_user_alive(ent)) {
                if(is_user_alive(host) && get_user_team(ent) == 1 && get_user_team(host) == 1
                || !is_user_alive(host) && get_user_team(ent) == 1 && pev(host, pev_iuser2) == ent
                || get_user_team(ent) == 1 && pev(ent, pev_maxspeed) <= 1.0) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        set_es(es, ES_RenderAmt, 255);
                }
                else if(get_user_team(ent) == 1) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        static Float:Origin[3]
                        pev(ent, pev_origin, Origin)
                       
                        if(get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && fm_get_speed(ent) <= 5 || get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && Origin[0] == Wallorigin[ent][0] && Origin[1] == Wallorigin[ent][1] && Origin[2] == Wallorigin[ent][2])
                                set_es(es, ES_RenderAmt, 0);
                        else
                                set_es(es, ES_RenderAmt, 255);
                }
        }
}
 
public FWD_ParachutePreThink(id) {
        if(is_user_alive(id)) {
                new Float:FallSpeed = -50.0;
                new Float:Frame;
               
                new Button = pev(id, pev_button);
                new OldButton = pev(id, pev_oldbuttons);
                new Flags = pev(id, pev_flags);
               
                if(ParaENT[id] > 0 &&(Flags & FL_ONGROUND)) {
                       
                        if(pev(ParaENT[id],pev_sequence) != 2) {
                                set_pev(ParaENT[id], pev_sequence, 2);
                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                set_pev(ParaENT[id], pev_frame, 0.0);
                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                set_pev(ParaENT[id], pev_animtime, 0.0);
                                return;
                        }
                       
                        pev(ParaENT[id],pev_fuser1, Frame);
                        Frame += 2.0;
                        set_pev(ParaENT[id],pev_fuser1,Frame);
                        set_pev(ParaENT[id],pev_frame,Frame);
                       
                        if(Frame > 254.0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        else {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        return;
                }
               
                if(Button & IN_USE) {
                        new Float:Velocity[3];
                        pev(id, pev_velocity, Velocity);
                       
                        if(Velocity[2] < 0.0) {
                                if(ParaENT[id] <= 0) {
                                        ParaENT[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
                                       
                                        if(ParaENT[id] > 0) {
                                                set_pev(ParaENT[id],pev_classname, PARACHUTE_CLASS);
                                                set_pev(ParaENT[id], pev_aiment, id);
                                                set_pev(ParaENT[id], pev_owner, id);
                                                set_pev(ParaENT[id], pev_movetype, MOVETYPE_FLY);
                                                set_pev(ParaENT[id], pev_sequence, 0);
                                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                set_pev(ParaENT[id], pev_frame, 0.0);
                                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                        }
                                }
                                if(ParaENT[id] > 0) {
                                        set_pev(id, pev_sequence, 3);
                                        set_pev(id, pev_gaitsequence, 1);
                                        set_pev(id, pev_frame, 1.0);
                                        set_pev(id, pev_framerate, 1.0);
                                       
                                        Velocity[2] = (Velocity[2] + 40.0 < FallSpeed) ? Velocity[2] + 40.0 : FallSpeed;
                                        set_pev(id, pev_velocity, Velocity);
                                       
                                        if(pev(ParaENT[id],pev_sequence) == 0) {
                                                pev(ParaENT[id],pev_fuser1, Frame);
                                                Frame += 1.0;
                                                set_pev(ParaENT[id],pev_fuser1,Frame);
                                                set_pev(ParaENT[id],pev_frame,Frame);
                                               
                                                if(Frame > 100.0) {
                                                        set_pev(ParaENT[id], pev_animtime, 0.0);
                                                        set_pev(ParaENT[id], pev_framerate, 0.4);
                                                        set_pev(ParaENT[id], pev_sequence, 1);
                                                        set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                        set_pev(ParaENT[id], pev_frame, 0.0);
                                                        set_pev(ParaENT[id], pev_fuser1, 0.0);
                                                }
                                        }
                                }
                        }
                       
                        else if(ParaENT[id] > 0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                }
               
                else if((OldButton & IN_USE) && ParaENT[id] > 0) {
                        engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                        ParaENT[id] = 0;
                }
        }
}
 
public FWD_GameDescription() {
        static GameName[32]
        get_pcvar_string(cvar_gamedescription, GameName, 31)
       
        forward_return(FMV_STRING, GameName)
       
        return FMRES_SUPERCEDE
}
 
stock ColorChat(const id, const input[], any:...) {
        new count = 1, players[32];
        static msg[191];
        vformat(msg, 190, input, 3);
       
        replace_all(msg, 190, "!g", "^4");
        replace_all(msg, 190, "!t", "^3");
       
        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, MSGID_SayText, _, players);
                                write_byte(players);
                                write_string(msg);
                                message_end();
                        }
                }
        }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin pentru catarare :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

new const PLUGIN[] = "Furien WallHang";
new const VERSION[] = "1.0";

#pragma semicolon 1

// Float
new Float: Wallorigin[33][3];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "Aragon*");
	
	// Ham Forwrads
	RegisterHam(Ham_Touch, "player", "fw_PlayerTouch", 1);
	
	// FM Forwards
	register_forward(FM_PlayerPostThink, "fw_PlayerPostThink");
	
	// CVARs
	register_cvar("furien_wallahng", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
}

public fw_PlayerTouch(id, world)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{	
		new ClassName[32];
		pev(world, pev_classname, ClassName,(32-1));
		
		if(equal(ClassName, "worldspawn") || equal(ClassName, "func_wall") || equal(ClassName, "func_breakable"))
			pev(id, pev_origin, Wallorigin[id]);
	}
	
	return HAM_SUPERCEDE;
}

public fw_PlayerPostThink(id)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{
		static Float:Origin[3];
		pev(id, pev_origin, Origin);
		
		static Button;
		Button = pev(id, pev_button);
		
		if(Button & IN_USE && get_distance_f(Origin, Wallorigin[id]) <= 5.0 && !(pev(id, pev_flags) & FL_ONGROUND))
		{
			new Float:Velocity[3];
			new ClimbSpeed = floatround(pev(id, pev_maxspeed) / 2.0);
			
			if(Button & IN_FORWARD)
			{
				velocity_by_aim(id, ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else if(Button & IN_BACK)
			{
				velocity_by_aim(id, - ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else
			{
				set_pev(id, pev_origin, Wallorigin[id]);
				velocity_by_aim(id, 0, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
		}
	}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin MultiJump : https://forums.alliedmods.net/showthread.php?t=10159
HP/AP in HUD : pluginuri-extream/subiect-t235197.html


Salut , am aceasta eroare la compilare la baza
| Afiseaza codul
Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team

include\fakemeta_const.inc(551) : warning 201: redefinition of constant/macro (symbol "TraceResult")
baza.sma(593 -- 594) : error 006: must be assigned to an array
baza.sma(807) : error 035: argument type mismatch (argument 1)
baza.sma(808) : error 035: argument type mismatch (argument 4)
baza.sma(809) : error 035: argument type mismatch (argument 1)

4 Errors.
Could not locate output file baza.amx (compile failed).
User avatar
WHOAMI?
Super moderator
Super moderator
Posts: 879
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Super Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 12 times
Been thanked: 8 times

30 May 2020, 15:48

La mine se compileaza perfect.
Ti-am postat pe pastebin https://pastebin.com/75aYAMK8
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 3 times
Contact:

30 May 2020, 18:53

WHOAMI? wrote:
30 May 2020, 15:48
La mine se compileaza perfect.
Ti-am postat pe pastebin https://pastebin.com/75aYAMK8
Am pus , multumesc , dar am o problema. O data la cateva secunde , 15-30 de secunde de la conectare a 2 playeri , chiar si 1 daca nu ma insel server-ul pica pentru cateva secunde apoi isi revine
Asta am gasit in consola
| Afiseaza codul
ERROR: couldn't open custom.hpk.

User iKnow^ (2) uses protocol 48; SteamID assigned by revEmu

L 05/30/2020 - 19:50:37: [admin.amxx] Login: "iKnow^<2><STEAM_0:0:513039321><>" became an admin (account "iKnow^") (access "abcdefghijklmnopqrstu") (address "109.100.109.39")

ERROR: couldn't open custom.hpk.

Uploading dump (in-process) [proxy '']

/tmp/dumps/crash_20200530195114_1.dmp

success = no

error:  Failed to open/read local data from file/application

Segmentation fault

email debug.log to linux@valvesoftware.com

Sat May 30 19:51:15 EEST 2020: Server restart in 10 seconds
EDIT:
WHOAMI? wrote:
30 May 2020, 15:22
ModelVIP:
| Afiseaza codul
#include <amxmodx>
#include <amxmisc>
#include <cstrike>

public plugin_init() {
        register_plugin("AMX_M_VIP", "2.0", "MrPower")
        register_event("ResetHUD", "resetModel", "b")
        return PLUGIN_CONTINUE
}

public plugin_precache() {
        precache_model("models/player/vip_te/vip_te.mdl")
        precache_model("models/player/vip_ct/vip_ct.mdl")

        return PLUGIN_CONTINUE
}

public resetModel(id, level, cid) {
        if (get_user_flags(id) & ADMIN_KICK) {
                new CsTeams:userTeam = cs_get_user_team(id)
                if (userTeam == CS_TEAM_T) {
                        cs_set_user_model(id, "vip_te")
                }
                else if(userTeam == CS_TEAM_CT) {
                        cs_set_user_model(id, "vip_ct")
                }
                else {
                        cs_reset_user_model(id)
                }
        }

        return PLUGIN_CONTINUE
}
Shop :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

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

//Like in C ;)
//#pragma semicolon 1

//Take Damage
#define IsPlayer(%0)    ( 1 <= %0 <= g_iMaxPlayers )
new g_iMaxPlayers;

//Prefix
new const szPrefix [ ] 		=	 "[FURIEN]";

//Sound
new const PICK_GUN [ ]          =	 "items/gunpickup2.wav";

//SK Models
new const SK [ ] [ ]		= 
{
"models/furienruls/v_knife_furienrulsro.mdl",
"models/p_knife.mdl"
};

//Cvar's
new sk_price, he_t_price, he_ct_price, defuse_price, hp_price, ap_price;
new sk_damage, max_hp, max_ap;

//Bools
new bool: HasSK[ 33 ];

new BuyedGrenades[33];

//Init
public plugin_init( ) 
{
register_plugin( "Furien Shop", "2.0", "IDK" );

//Open Shop
register_clcmd( "say", "Func_Say" );
register_clcmd( "say_team", "Func_Say" );
register_clcmd( "/shop", "CheckTeam" );
register_clcmd( "shop", "CheckTeam" );

//Cvar's
sk_price 	= 	register_cvar( "fs_sk_price", "10000" );
he_t_price 	= 	register_cvar( "fs_he_t_price", "3000" );
he_ct_price 	= 	register_cvar( "fs_he_ct_price", "6000" );
defuse_price 	= 	register_cvar( "fs_defuse_price", "500" );
hp_price 	= 	register_cvar( "fs_hp_price", "3000" );
ap_price 	= 	register_cvar( "fs_ap_price", "500" );
sk_damage 	= 	register_cvar( "fs_sk_damage", "2.0" );
max_hp 		= 	register_cvar( "fs_max_hp", "250" );
max_ap 		= 	register_cvar( "fs_max_ap", "300" );

//Ham's
RegisterHam( Ham_Killed, "player", "Ham_CBasePlayer_Killed_Post", true );
RegisterHam( Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1 ); 
RegisterHam( Ham_TakeDamage, "player", "Player_TakeDamage" );

//Curent Weapon
register_event ( "CurWeapon", "Current_Weapon", "be", "1=1" );

//Max Players
g_iMaxPlayers = get_maxplayers ( );
}
	  

//Precache
public plugin_precache( ) 
{
static i;
for( i = 0 ; i < sizeof ( SK ); i++ ) 
	precache_model( SK [ i ] );
	
	precache_sound( PICK_GUN );
	
	return PLUGIN_CONTINUE;
}

//Killed
public Ham_CBasePlayer_Killed_Post( id ) 
	HasSK[ id ] = false;

//Spawn
public fwHamPlayerSpawnPost( id ) 
{
	if(!is_user_alive(id))
		return 
	if( get_user_team(id) == 2 )
		HasSK[ id ] = false;
	BuyedGrenades[id] = 0
}	

//Put in Server
public client_putinserver( id ) 
	HasSK[ id ] = false;

//Open Shop
public Func_Say( id ) 
{
	new szSaid[ 192 ];
	read_args( szSaid, sizeof( szSaid ) -1 );
	
	remove_quotes( szSaid );
	
	if( contain( szSaid, "shop" ) != -1 && !is_user_alive(id))
	{
		CheckTeam( id );
		return 1;
	}
	else if( contain( szSaid, "shop" ) != -1 && is_user_alive(id))
		CheckTeam( id );
	return 0;
}

//Show Model
public Current_Weapon( id ) 
{
	new weapon = get_user_weapon( id );
	
	if( weapon == CSW_KNIFE ) 
	{
		if( HasSK[ id ] == true ) 
		{
			set_pev ( id, pev_viewmodel2, SK[ 0 ] );
			set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
		}
	}
}

//Damage
public Player_TakeDamage( iVictim, iInflictor, iAttacker, Float:fDamage ) 
{
	if ( iInflictor == iAttacker && IsPlayer ( iAttacker ) && HasSK [ iAttacker ] ) 
	{
		SetHamParamFloat ( 4, fDamage * get_pcvar_float( sk_damage ) );
		
		return HAM_HANDLED;
	}
	
	return HAM_IGNORED;
	
}

//Check Team Shop
public CheckTeam( id ) 
{
	if( is_user_alive ( id ) ) 
	{
		if ( get_user_team ( id ) == 1 )
			ShowMenu_T( id );
		if ( get_user_team ( id ) == 2 ) 
			ShowMenu_CT( id );
	}	
}

//T Shop
public ShowMenu_T( id ) 
{
	new menu_t = menu_create( "\rFurien \yShop^n", "T_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "SuperKnife\R\y%i" , get_pcvar_num( sk_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_t_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_t, iLine1, "1" ); 
	menu_additem( menu_t, iLine2, "2" );
	menu_additem( menu_t, iLine3, "3" );
	menu_additem( menu_t, iLine4, "4" ); 
	
	menu_setprop( menu_t, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_t, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_t, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_t, 0 );
	
	return PLUGIN_HANDLED;
}

public T_Menu( id, menu_t, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 1 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_t, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( sk_price ) ) 
			{
				if ( !HasSK [ id ] ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( sk_price ) );
					
					//Pev SuperKnife
					if( get_user_weapon( id ) == CSW_KNIFE ) 
					{
						set_pev ( id, pev_viewmodel2, SK[ 0 ] );
						set_pev ( id, pev_weaponmodel2, SK[ 1 ] );
					}
					else
						engclient_cmd( id, "weapon_knife" );
					
					//Give SuperKnife
					HasSK[ id ] = true;
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 SuperKnife !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( sk_price ) );	
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_t_price ) ) 
			{
				if(BuyedGrenades[id] < 2) {
					if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
					{
						//Get Money
						cs_set_user_money( id, price - get_pcvar_num( he_t_price ) );
						
						//Give He
						give_item( id, "weapon_hegrenade" );
						BuyedGrenades[id]++
						
					}
					else 
						ColorChat( id, "^x04%s^x01 Ai deja ^x03 He Grenade !", szPrefix );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai cumparat deja ^x03 2 He Grenade in aceasta runda.", szPrefix);
				
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_t_price ) );		
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor ( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_t );
	
	return PLUGIN_HANDLED;
}

//CT Shop
public ShowMenu_CT( id ) 
{
	new menu_ct = menu_create( "\rAnti-Furien \yShop^n", "CT_Menu" );
	
	new iLine1 [ 200 ];
	new iLine2 [ 200 ];
	new iLine3 [ 200 ];
	new iLine4 [ 200 ];
	
	formatex( iLine1 , sizeof ( iLine1 ) -1 , "Defuse Kit\R\y%i" , get_pcvar_num( defuse_price ) );
	formatex( iLine2 , sizeof ( iLine2 ) -1 , "He Grenade\R\y%i" , get_pcvar_num( he_ct_price ) );
	formatex( iLine3 , sizeof ( iLine3 ) -1 , "HP +50\R\y%i" , get_pcvar_num( hp_price ) );
	formatex( iLine4 , sizeof ( iLine4 ) -1 , "AP +50\R\y%i" , get_pcvar_num( ap_price ) );
	
	menu_additem( menu_ct, iLine1, "1" ); 
	menu_additem( menu_ct, iLine2, "2" );
	menu_additem( menu_ct, iLine3, "3" );
	menu_additem( menu_ct, iLine4, "4" ); 
	
	menu_setprop( menu_ct, MPROP_EXIT, MEXIT_ALL );
	menu_setprop( menu_ct, MPROP_NOCOLORS, 1 );
	menu_setprop( menu_ct, MPROP_NUMBER_COLOR, "\y" );
	
	menu_display( id, menu_ct, 0 );
	
	return PLUGIN_HANDLED;
}

public CT_Menu( id, menu_ct, item )
{
	if( item == MENU_EXIT || get_user_team( id ) != 2 )
		return PLUGIN_HANDLED;
	
	new  command[ 6 ], name[ 64 ], access, callback;
	
	new price;
	price = cs_get_user_money( id );
	
	menu_item_getinfo( menu_ct, item, access, command, sizeof command - 1, name, sizeof name - 1, callback );
	
	switch(item)
	{
		case 0: 
		{
			if( price >= get_pcvar_num( defuse_price ) ) 
			{
				if ( !cs_get_user_defuse( id ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( defuse_price ) );
					
					//Give DefuseKit
					cs_set_user_defuse( id,1 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 DefuseKIT !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( defuse_price ) );
		}
		case 1: 
		{
			if( price >= get_pcvar_num( he_ct_price ) ) 
			{
				if( ! user_has_weapon( id ,  CSW_HEGRENADE ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( he_ct_price ) );
					
					//Give He
					give_item( id, "weapon_hegrenade" );	
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai deja^x03 He Grenade !", szPrefix );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( he_ct_price ) );	
		}
		case 2: 
		{
			if( price >= get_pcvar_num( hp_price ) ) 
			{
				if( get_user_health( id ) < get_pcvar_num( max_hp ) ) 
				{
					//Get Money
					cs_set_user_money( id, price - get_pcvar_num( hp_price ) );
					
					//Give Health
					set_user_health ( id, get_user_health ( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_health( id ) > get_pcvar_num( max_hp ) )
						set_user_health( id, get_pcvar_num( max_hp ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d HP !", szPrefix, get_pcvar_num( max_hp ) );
			}
			else 
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( hp_price ) );		
		}
		case 3: 
		{
			if( price >= get_pcvar_num( ap_price ) ) 
			{
				if( get_user_armor( id ) < get_pcvar_num( max_ap ) ) 
				{
					//Get Money
					cs_set_user_money( id,price- get_pcvar_num( ap_price ) );
					
					//Give AP
					set_user_armor( id, get_user_armor( id ) + 50 );
					
					//Sound
					emit_sound( id, CHAN_ITEM, PICK_GUN, VOL_NORM, ATTN_NORM, 0, PITCH_NORM );
					
					//Verify
					if( get_user_armor( id ) > get_pcvar_num( max_ap ) )
						set_user_armor( id, get_pcvar_num( max_ap ) );
				}
				else 
					ColorChat( id, "^x04%s^x01 Ai atins limita de^x03 %d AP !", szPrefix, get_pcvar_num( max_ap ) );
			}
			else
				ColorChat( id, "^x04%s^x01 Nu ai destui^x03 bani!^x01 Ai nevoie de^x03 %d$ !", szPrefix, get_pcvar_num( ap_price ) );	
		}	
	}
	menu_destroy( menu_ct );
	
	return PLUGIN_HANDLED;
}

//Stock ColorChat
stock ColorChat( const id, const input[ ], any:... ) 
{
	new count = 1, players[ 32 ];
	static msg[ 191 ];
	vformat( msg, 190, input, 3 );
	
	replace_all( msg, 190, "!g", "^4" );
	replace_all( msg, 190, "!y", "^1" );
	replace_all( msg, 190, "!t", "^3" );
	
	if( id ) players[ 0 ] = id;
	else get_players( players, count, "ch" ); 
{
	for( new i = 0; i < count; i++ ) 
	{
		if( is_user_connected( players[ i ] ) ) 
		{
			message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] );
			write_byte( players[ i ] );
			write_string( msg );
			message_end( );
		}
	}
} 
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Plugin bet : https://forums.alliedmods.net/showthread.php?p=1060370
Plugin nademodes : https://forums.alliedmods.net/showthread.php?p=663892
Baza furien :
| Afiseaza codul
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "Furien Clasic"
#define VERSION "2.0"
#define AUTHOR "DaNNe."
 
#define FURIEN_GRAVITY  0.375
#define FURIEN_SPEED    750.0
#define TEAM_FURIEN 1
#define TEAM_ANTIFURIEN 2
 
 
#if cellbits == 32
#define OFFSET_BZ 235
#else
#define OFFSET_BZ 268
#endif
 
//Settings
new bool:MakeVisible[33], Float:Wallorigin[33][3]
 
//Parachute
#define PARACHUTE_CLASS "Parachute"
new ParaENT[33];
 
new Menu;
new cvar_gamedescription, furienspawnhp, antifurienspawnhp, removebuyzone, cvar_autojoin_class, cvar_autojoin_team, cvar_aim_info,
MSGID_SayText, MSGID_StatusIcon, MSGID_TextMsg, MSGID_SendAudio, MSGID_ShowMenu, MSGID_VGUIMenu, MSGID_Health;
 
public plugin_cfg() {
        server_cmd("amx_cvar mp_playerid 2")
        server_cmd("amx_cvar sv_maxspeed 900")
        server_cmd("amx_cvar sv_restart 5")
}
 
 
//===========================================================================================//
//===============================[Weapons Settings]=========================================//
//=========================================================================================//
new bool:HavePrimaryWeapon[33], bool:HaveSecondaryWeapon[33], PrimaryWeapon[33], SecondaryWeapon[33];
 
//---|| Primary
#define M4A1_KEY        100
#define AK47_KEY        101
#define M3_KEY  102
#define AUG_KEY 103
#define FAMAS_KEY       104
#define MP5_KEY 105
#define XM1014_KEY      106
 
//---|| Secondary
#define USP_KEY 107
#define DEAGLE_KEY      108
#define ELITE_KEY       109
#define FIVESEVEN_KEY   110
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
       
        cvar_gamedescription = register_cvar("furien_gamename", "KROND 2017")
        antifurienspawnhp = register_cvar("antifurien_spawnhp", "100")
        furienspawnhp = register_cvar("furien_spawnhp", "100")
        cvar_autojoin_team = register_cvar("furien_team", "5")
        cvar_autojoin_class = register_cvar("furien_class", "5")
        cvar_aim_info = register_cvar("furien_enable_aiminfo", "1")
       
        MSGID_SayText = get_user_msgid("SayText")
        MSGID_StatusIcon = get_user_msgid("StatusIcon")
        MSGID_TextMsg = get_user_msgid("TextMsg")
        MSGID_SendAudio = get_user_msgid("SendAudio")
        MSGID_ShowMenu = get_user_msgid("ShowMenu")
        MSGID_VGUIMenu = get_user_msgid("VGUIMenu")
       
        register_clcmd("jointeam", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 1", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 2", "CMD_BlockJoinTeam")
        register_clcmd("jointeam 3", "CMD_BlockJoinTeam")
        register_clcmd("chooseteam", "CMD_BlockChooseTeam")
        register_clcmd("say /beneficii", "CmdShowMotd")
        register_clcmd("say /rs", "CmdResetScore")
        register_clcmd("say_team /rs", "CmdResetScore")
        register_clcmd("say /resetscore", "CmdResetScore")
        register_clcmd("say_team /resetscore", "CmdResetScore")
       
        RegisterHam(Ham_Spawn, "player", "Ham_Spawn_Post", 1)
        RegisterHam(Ham_Touch, "weaponbox", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "armoury_entity", "HAM_Touch_Weapon")
        RegisterHam(Ham_Touch, "weapon_shield", "HAM_Touch_Weapon")
       
        register_forward(FM_PlayerPreThink, "Player_PreThink");
        register_forward(FM_AddToFullPack, "FWD_AddToFullPack", 1);    
        register_forward(FM_PlayerPreThink, "FWD_ParachutePreThink");
        register_forward(FM_GetGameDescription, "FWD_GameDescription") 
       
        register_event("CurWeapon", "EVENT_CurWeapon", "be", "1=1")
        register_event("SendAudio", "EVENT_SwitchTeam", "a", "1=0", "2=%!MRAD_ctwin");
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "2&#Game_radio", "4&#Fire_in_the_hole")
        register_event("TextMsg", "EVENT_FireINTheHole", "b", "3&#Game_radio", "5&#Fire_in_the_hole")  
       
        register_message(MSGID_StatusIcon, "MSG_StatusIcon");
        register_message(MSGID_TextMsg, "MSG_TextMessage");
        register_message(MSGID_ShowMenu, "MSG_ShowMenu");
        register_message(MSGID_VGUIMenu, "MSG_VGUIMenu");
        register_message(MSGID_SendAudio, "MSG_SendAudio");
        register_message(MSGID_Health, "MSG_Health")
}
 
 
public plugin_precache() {
        removebuyzone = register_cvar("furien_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 client_connect(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
}
 
public client_putinserver(id) {
        client_cmd(id, "cl_forwardspeed 999.0")
        client_cmd(id, "cl_sidespeed 999.0")
        client_cmd(id, "cl_backspeed 999.0")
        PrimaryWeapon[id] = 0
        SecondaryWeapon[id] = 0
}
 
public Ham_Spawn_Post(id) {
        if(is_user_connected(id) && is_user_alive(id)) {
                strip_user_weapons(id)
                HavePrimaryWeapon[id] = false
                HaveSecondaryWeapon[id] = false
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: {
                                fm_give_item(id, "weapon_hegrenade")
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 1)
                                fm_set_user_health(id, get_pcvar_num(furienspawnhp))
                        }
                        case TEAM_ANTIFURIEN: {
                                fm_give_item(id, "weapon_knife")
                                set_user_footsteps(id, 0)
                                fm_set_user_health(id, get_pcvar_num(antifurienspawnhp))
                                Equipment(id)  
                        }
                }
        }
}

public EVENT_FireINTheHole()
        return PLUGIN_HANDLED
 
public HAM_Touch_Weapon(ent, id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_FURIEN && !(get_pdata_cbase(ent, 39, 4) > 0))
                return HAM_SUPERCEDE
       
        return HAM_IGNORED
}

///////////////////////////////////////////////////////////////////////////////////////////////

public CmdResetScore(id) {
        if(get_user_frags(id) == 0 && get_user_deaths(id) == 0)
                ColorChat(id, "!gScorul tau este deja!t 0-0!g !")
        else {
                for(new i = 0; i < 2; i++) {
                        cs_set_user_deaths(id, 0);
                        set_user_frags(id, 0);
                }
                ColorChat(id, "!gTi-ai resetat scorul cu succes !")
        }
}

//=========================================================================//
//=======================[Weapons Settings]===============================//
//=======================================================================//
 
public Equipment(id) {
        if(is_user_alive(id) && get_user_team(id) == 2) {
                Menu = menu_create("\rWeapons Menu", "EquipmentCmd");
                menu_additem(Menu, "\wNew Weapons", "1", 0);
                if(PrimaryWeapon[id] && SecondaryWeapon[id])
                        menu_additem(Menu, "\wPrevious Setup", "2", 0);
                else
                        menu_additem(Menu, "\dPrevious Setup", "2", 0);
                menu_setprop(Menu, MPROP_EXIT, MEXIT_NEVER)
                menu_display(id, Menu, 0);
        }
}
 
public EquipmentCmd(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        if(!HavePrimaryWeapon[id])
                                Primary(id)
                        else if(!HaveSecondaryWeapon[id])
                                Secondary(id)
                }
                case 2: {
                        if(PrimaryWeapon[id] && SecondaryWeapon[id])
                                GiveLastWeapons(id)
                        else Equipment(id)
                }
                default: return PLUGIN_HANDLED;
        }
        menu_destroy(menu);
        return PLUGIN_HANDLED;
}
 
public Primary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rPrimary:", "CmdWeaponsHandler")
               
                menu_additem(Menu, "M4A1", "1", 0)
                menu_additem(Menu, "AK47", "2", 0)
                menu_additem(Menu, "M3", "3", 0)
                menu_additem(Menu, "Aug", "4", 0)
                menu_additem(Menu, "Famas", "5", 0)
                menu_additem(Menu, "MP5 Navy", "6", 0)
                menu_additem(Menu, "XM1014", "7", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdWeaponsHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {
                case 1: {
                        fm_give_item(id, "weapon_m4a1")
                        cs_set_user_bpammo(id, CSW_M4A1, 254)
                        PrimaryWeapon[id] = M4A1_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 2: {
                        fm_give_item(id, "weapon_ak47")
                        cs_set_user_bpammo(id, CSW_AK47, 254)
                        PrimaryWeapon[id] = AK47_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 3: {
                        fm_give_item(id, "weapon_m3")
                        cs_set_user_bpammo(id, CSW_M3, 254)
                        PrimaryWeapon[id] = M3_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 4: {
                        fm_give_item(id, "weapon_aug")
                        cs_set_user_bpammo(id, CSW_AUG, 254)
                        PrimaryWeapon[id] = AUG_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 5: {
                        fm_give_item(id, "weapon_famas")
                        cs_set_user_bpammo(id, CSW_FAMAS, 254)
                        PrimaryWeapon[id] = FAMAS_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 6: {
                        fm_give_item(id, "weapon_mp5navy")
                        cs_set_user_bpammo(id, CSW_MP5NAVY, 254)
                        PrimaryWeapon[id] = MP5_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
                case 7: {
                        fm_give_item(id, "weapon_xm1014")
                        cs_set_user_bpammo(id, CSW_XM1014, 254)
                        PrimaryWeapon[id] = XM1014_KEY
                        HavePrimaryWeapon[id] = true;
                        Secondary(id)
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public Secondary(id) {
        if(is_user_alive(id) && get_user_team(id) == TEAM_ANTIFURIEN) {
                Menu = menu_create("\yAnti-Furien Weapons^n\rSecondary:", "CmdSecondaryHandler")
               
                menu_additem(Menu, "USP", "1", 0)
                menu_additem(Menu, "Deagle", "2", 0)
                menu_additem(Menu, "Elite", "3", 0)
                menu_additem(Menu, "Five Seven", "4", 0)
               
                menu_setprop(Menu, MPROP_EXIT, MEXIT_ALL);
                menu_display(id, Menu, 0);
        }
}
 
public CmdSecondaryHandler(id, menu, item) {
        if(item == MENU_EXIT || !is_user_alive(id) || get_user_team(id) != 2) {
                menu_destroy(menu);
                return PLUGIN_HANDLED;
        }
        new Data[6], Name[64];
        new Access, CallBack;
        menu_item_getinfo(menu, item, Access, Data,5, Name, 63, CallBack);
        new Key = str_to_num(Data);
        switch(Key) {  
                case 1: {
                        fm_give_item(id, "weapon_usp")
                        cs_set_user_bpammo(id, CSW_USP, 256)
                        SecondaryWeapon[id] = USP_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 2: {
                        fm_give_item(id, "weapon_deagle")
                        cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                        SecondaryWeapon[id] = DEAGLE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 3: {
                        fm_give_item(id, "weapon_elite")
                        cs_set_user_bpammo(id, CSW_ELITE, 256)
                        SecondaryWeapon[id] = ELITE_KEY
                        HaveSecondaryWeapon[id] = true;
                }
                case 4: {
                        fm_give_item(id, "weapon_fiveseven")
                        cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                        SecondaryWeapon[id] = FIVESEVEN_KEY
                        HaveSecondaryWeapon[id] = true;
                }
        }
        menu_destroy(menu)
        return PLUGIN_HANDLED
}
 
public GiveLastWeapons(id) {
        if(!HavePrimaryWeapon[id]) {
                switch(PrimaryWeapon[id]) {
                        case M4A1_KEY: {
                                fm_give_item(id, "weapon_m4a1")
                                cs_set_user_bpammo(id, CSW_M4A1, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AK47_KEY: {
                                fm_give_item(id, "weapon_ak47")
                                cs_set_user_bpammo(id, CSW_AK47, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case M3_KEY: {
                                fm_give_item(id, "weapon_m3")
                                cs_set_user_bpammo(id, CSW_M3, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case AUG_KEY: {
                                fm_give_item(id, "weapon_aug")
                                cs_set_user_bpammo(id, CSW_AUG, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case FAMAS_KEY: {
                                fm_give_item(id, "weapon_famas")
                                cs_set_user_bpammo(id, CSW_FAMAS, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case MP5_KEY: {
                                fm_give_item(id, "weapon_mp5navy")
                                cs_set_user_bpammo(id, CSW_MP5NAVY, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                        case XM1014_KEY: {
                                fm_give_item(id, "weapon_xm1014")
                                cs_set_user_bpammo(id, CSW_XM1014, 256)
                                HavePrimaryWeapon[id] = true;
                        }
                }
        }
        if(!HaveSecondaryWeapon[id]) {
                switch(SecondaryWeapon[id]) {
                        case USP_KEY: {
                                fm_give_item(id, "weapon_usp")
                                cs_set_user_bpammo(id, CSW_USP, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case DEAGLE_KEY: {
                                fm_give_item(id, "weapon_deagle")
                                cs_set_user_bpammo(id, CSW_DEAGLE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case ELITE_KEY: {
                                fm_give_item(id, "weapon_elite")
                                cs_set_user_bpammo(id, CSW_ELITE, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                        case FIVESEVEN_KEY: {
                                fm_give_item(id, "weapon_fiveseven")
                                cs_set_user_bpammo(id, CSW_FIVESEVEN, 256)
                                HaveSecondaryWeapon[id] = true;
                        }
                }
        }
}
public CMD_BlockJoinTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti JoinTeam ! ***")
        return 1;
}
 
public CMD_BlockChooseTeam(id) {
        console_print(id, "*** Nu ai voie sa foloseti ChooseTeam ! ***")
        return 1;
}
 
public CmdShowMotd(id)
        show_motd(id, "addons/amxmodx/configs/beneficii.html")
 
/////////////////////////////////////////////////////////////////////////
 
public EVENT_CurWeapon(id) {
        if(is_user_connected(id)) {
               
                new PlayerHealth;
                PlayerHealth = get_user_health(id)
                if(PlayerHealth >= 300)
                        fm_set_user_health(id, 300);
        }
}
 
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;
}
 
public MSG_TextMessage() {
        static TextMsg[22];
        get_msg_arg_string(2, TextMsg, charsmax(TextMsg))
        if(equal(TextMsg, "#Terrorists_Win")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#CTs_Win")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Bomb_Defused")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Bombed")) {
                client_print(0, print_center, "The Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Target_Saved")) {
                client_print(0, print_center, "The Anti-Furiens have won this round!")
                return PLUGIN_HANDLED;
        }
        else if(equal(TextMsg, "#Fire_in_the_hole"))
                return PLUGIN_HANDLED
        else if(equal(TextMsg, "#C4_Plant_At_Bomb_Spot")) {
                return PLUGIN_HANDLED
        }
        return PLUGIN_CONTINUE;
}
 
public MSG_ShowMenu(msgid, dest, id) {
        if(!Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        static team_select[] = "#Team_Select"
        static menu_text_code[sizeof team_select]
        get_msg_arg_string(4, menu_text_code, sizeof menu_text_code - 1)
        if(!equal(menu_text_code, team_select))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_VGUIMenu(msgid, dest, id) {
        if(get_msg_arg_int(1) != 2 || !Should_AutoJoin(id))
                return PLUGIN_CONTINUE
       
        JoinTeam_Task(id, msgid)
       
        return PLUGIN_HANDLED
}
 
public MSG_SendAudio() {
        static Sound[17]
        get_msg_arg_string(2, Sound, sizeof Sound - 1)
       
        if(equal(Sound, "terwin") || equal(Sound, "ctwin") || equal(Sound, "rounddraw") || equal(Sound, "bombpl") || equal(Sound, "bombdef"))
                return PLUGIN_HANDLED;
       
        return PLUGIN_CONTINUE;
}
 
public MSG_Health(msgid, dest, id) {
        static Health;
        Health = get_msg_arg_int(1)
        if(Health > 255)
                set_msg_arg_int(1, ARG_BYTE, 255);
        else if(Health == 256)
                set_msg_arg_int(1, ARG_BYTE, get_user_health(id) + 10)
}
bool:Should_AutoJoin(id) {
        return(get_pcvar_num(cvar_autojoin_team) && !get_user_team(id) && !task_exists(id))
}
 
JoinTeam_Task(id, menu_msgid) {
        static param_menu_msgid[2]
        param_menu_msgid[0] = menu_msgid
       
        set_task(0.1, "Force_JoinTeam", id, param_menu_msgid, sizeof param_menu_msgid)
}
 
public Force_JoinTeam(menu_msgid[], id) {
        if(get_user_team(id))
                return
       
        static team[2], class[2]
        get_pcvar_string(cvar_autojoin_team, team, sizeof team - 1)
        get_pcvar_string(cvar_autojoin_class, class, sizeof class - 1)
        Force_Team_Join(id, menu_msgid[0], team, class)
}
 
stock Force_Team_Join(id, menu_msgid, team[] = "5", class[] = "0") {
        static jointeam[] = "jointeam"
        if(class[0] == '0') {
                engclient_cmd(id, jointeam, team)
                return
        }
       
        static msg_block, joinclass[] = "joinclass"
        msg_block = get_msg_block(menu_msgid)
        set_msg_block(menu_msgid, BLOCK_SET)
        engclient_cmd(id, jointeam, team)
        engclient_cmd(id, joinclass, class)
        set_msg_block(menu_msgid, msg_block)
}
 
public EVENT_SwitchTeam() {
        new Players[32], PlayersNum, id;
        get_players(Players, PlayersNum)
        if(PlayersNum) {
                for(new i; i < PlayersNum; i++) {
                        id = Players
                        BeginDelay(id)
                }
        }
}
 
public BeginDelay(id) {
        if(is_user_connected(id)) {
                switch(id) {
                        case 1..7: set_task(0.1, "BeginTeamSwap", id)
                                case 8..15: set_task(0.2, "BeginTeamSwap", id)
                                case 16..23: set_task(0.3, "BeginTeamSwap", id)
                                case 24..32: set_task(0.4, "BeginTeamSwap", id)
                        }
        }
}
 
public BeginTeamSwap(id) {
        if(is_user_connected(id)) {
                switch(get_user_team(id)) {
                        case TEAM_FURIEN: cs_set_user_team(id, CS_TEAM_CT)
                                case TEAM_ANTIFURIEN: cs_set_user_team(id, CS_TEAM_T)
                        }
        }
}      
 
///////////////////////////////////////////////////////////////////////////////////////////////
 
public Player_PreThink(id) {
        if(is_user_connected(id)) {
                if(get_user_team(id) == TEAM_FURIEN) {
                        if(pev(id, pev_gravity) > FURIEN_GRAVITY && pev(id, pev_gravity) > 0.1)
                                set_pev(id, pev_gravity, FURIEN_GRAVITY)
                       
                        if(pev(id, pev_maxspeed) < FURIEN_SPEED && pev(id, pev_maxspeed) > 1.0) {
                                set_pev(id, pev_maxspeed, FURIEN_SPEED)
                                set_user_footsteps(id, 1)
                        }
                }
                if(get_pcvar_num(cvar_aim_info)) {
                        new Target, Body;
                        get_user_aiming(id, Target, Body);
                        if(is_user_alive(id) && is_user_connected(Target) && is_user_alive(Target)) {
                                new TargetTeam, PlayerTeam, TargetName[32], Message[128], TargetHealth, TargetArmor, RED, GREEN, BLUE;
                                TargetTeam = get_user_team(Target)
                                PlayerTeam = get_user_team(id)
                                get_user_name(Target, TargetName, 31)
                                TargetHealth = get_user_health(Target)
                                TargetArmor = get_user_armor(Target)
                                if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 20
                                        GREEN = 200
                                        BLUE = 50
                                }
                                else if(PlayerTeam == TEAM_FURIEN && TargetTeam == TEAM_FURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_ANTIFURIEN) {
                                        formatex(Message, sizeof(Message)-1, "%s^nHP: %i | AP: %i", TargetName, TargetHealth, TargetArmor)
                                        RED = 200
                                        GREEN = 20
                                        BLUE = 20
                                }
                                else if(PlayerTeam == TEAM_ANTIFURIEN && TargetTeam == TEAM_FURIEN)
                                        return
                                set_hudmessage(RED, GREEN, BLUE, -1.0, -1.0, 0, 0.0, 0.1, 0.0, 0.0, -1);
                                show_hudmessage(id, "%s", Message)
                        }
                }
        }
}
 
public FWD_AddToFullPack(es, e, ent, host, host_flags, player, p_set) {
        if(is_user_connected(ent) && is_user_connected(host) && is_user_alive(ent)) {
                if(is_user_alive(host) && get_user_team(ent) == 1 && get_user_team(host) == 1
                || !is_user_alive(host) && get_user_team(ent) == 1 && pev(host, pev_iuser2) == ent
                || get_user_team(ent) == 1 && pev(ent, pev_maxspeed) <= 1.0) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        set_es(es, ES_RenderAmt, 255);
                }
                else if(get_user_team(ent) == 1) {
                        set_es(es, ES_RenderFx, kRenderFxNone);
                        set_es(es, ES_RenderMode, kRenderTransTexture);
                        static Float:Origin[3]
                        pev(ent, pev_origin, Origin)
                       
                        if(get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && fm_get_speed(ent) <= 5 || get_user_weapon(ent) == CSW_KNIFE && !MakeVisible[ent] && Origin[0] == Wallorigin[ent][0] && Origin[1] == Wallorigin[ent][1] && Origin[2] == Wallorigin[ent][2])
                                set_es(es, ES_RenderAmt, 0);
                        else
                                set_es(es, ES_RenderAmt, 255);
                }
        }
}
 
public FWD_ParachutePreThink(id) {
        if(is_user_alive(id)) {
                new Float:FallSpeed = -50.0;
                new Float:Frame;
               
                new Button = pev(id, pev_button);
                new OldButton = pev(id, pev_oldbuttons);
                new Flags = pev(id, pev_flags);
               
                if(ParaENT[id] > 0 &&(Flags & FL_ONGROUND)) {
                       
                        if(pev(ParaENT[id],pev_sequence) != 2) {
                                set_pev(ParaENT[id], pev_sequence, 2);
                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                set_pev(ParaENT[id], pev_frame, 0.0);
                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                set_pev(ParaENT[id], pev_animtime, 0.0);
                                return;
                        }
                       
                        pev(ParaENT[id],pev_fuser1, Frame);
                        Frame += 2.0;
                        set_pev(ParaENT[id],pev_fuser1,Frame);
                        set_pev(ParaENT[id],pev_frame,Frame);
                       
                        if(Frame > 254.0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        else {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                        return;
                }
               
                if(Button & IN_USE) {
                        new Float:Velocity[3];
                        pev(id, pev_velocity, Velocity);
                       
                        if(Velocity[2] < 0.0) {
                                if(ParaENT[id] <= 0) {
                                        ParaENT[id] = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target"));
                                       
                                        if(ParaENT[id] > 0) {
                                                set_pev(ParaENT[id],pev_classname, PARACHUTE_CLASS);
                                                set_pev(ParaENT[id], pev_aiment, id);
                                                set_pev(ParaENT[id], pev_owner, id);
                                                set_pev(ParaENT[id], pev_movetype, MOVETYPE_FLY);
                                                set_pev(ParaENT[id], pev_sequence, 0);
                                                set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                set_pev(ParaENT[id], pev_frame, 0.0);
                                                set_pev(ParaENT[id], pev_fuser1, 0.0);
                                        }
                                }
                                if(ParaENT[id] > 0) {
                                        set_pev(id, pev_sequence, 3);
                                        set_pev(id, pev_gaitsequence, 1);
                                        set_pev(id, pev_frame, 1.0);
                                        set_pev(id, pev_framerate, 1.0);
                                       
                                        Velocity[2] = (Velocity[2] + 40.0 < FallSpeed) ? Velocity[2] + 40.0 : FallSpeed;
                                        set_pev(id, pev_velocity, Velocity);
                                       
                                        if(pev(ParaENT[id],pev_sequence) == 0) {
                                                pev(ParaENT[id],pev_fuser1, Frame);
                                                Frame += 1.0;
                                                set_pev(ParaENT[id],pev_fuser1,Frame);
                                                set_pev(ParaENT[id],pev_frame,Frame);
                                               
                                                if(Frame > 100.0) {
                                                        set_pev(ParaENT[id], pev_animtime, 0.0);
                                                        set_pev(ParaENT[id], pev_framerate, 0.4);
                                                        set_pev(ParaENT[id], pev_sequence, 1);
                                                        set_pev(ParaENT[id], pev_gaitsequence, 1);
                                                        set_pev(ParaENT[id], pev_frame, 0.0);
                                                        set_pev(ParaENT[id], pev_fuser1, 0.0);
                                                }
                                        }
                                }
                        }
                       
                        else if(ParaENT[id] > 0) {
                                engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                                ParaENT[id] = 0;
                        }
                }
               
                else if((OldButton & IN_USE) && ParaENT[id] > 0) {
                        engfunc(EngFunc_RemoveEntity, ParaENT[id]);
                        ParaENT[id] = 0;
                }
        }
}
 
public FWD_GameDescription() {
        static GameName[32]
        get_pcvar_string(cvar_gamedescription, GameName, 31)
       
        forward_return(FMV_STRING, GameName)
       
        return FMRES_SUPERCEDE
}
 
stock ColorChat(const id, const input[], any:...) {
        new count = 1, players[32];
        static msg[191];
        vformat(msg, 190, input, 3);
       
        replace_all(msg, 190, "!g", "^4");
        replace_all(msg, 190, "!t", "^3");
       
        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, MSGID_SayText, _, players);
                                write_byte(players);
                                write_string(msg);
                                message_end();
                        }
                }
        }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin pentru catarare :
| Afiseaza codul
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <fakemeta>
#include <fakemeta_util>
#include <hamsandwich>

new const PLUGIN[] = "Furien WallHang";
new const VERSION[] = "1.0";

#pragma semicolon 1

// Float
new Float: Wallorigin[33][3];

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, "Aragon*");
	
	// Ham Forwrads
	RegisterHam(Ham_Touch, "player", "fw_PlayerTouch", 1);
	
	// FM Forwards
	register_forward(FM_PlayerPostThink, "fw_PlayerPostThink");
	
	// CVARs
	register_cvar("furien_wallahng", VERSION, FCVAR_SERVER | FCVAR_SPONLY);
}

public fw_PlayerTouch(id, world)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{	
		new ClassName[32];
		pev(world, pev_classname, ClassName,(32-1));
		
		if(equal(ClassName, "worldspawn") || equal(ClassName, "func_wall") || equal(ClassName, "func_breakable"))
			pev(id, pev_origin, Wallorigin[id]);
	}
	
	return HAM_SUPERCEDE;
}

public fw_PlayerPostThink(id)
{
	if(is_user_alive(id) && get_user_team(id) == 1)
	{
		static Float:Origin[3];
		pev(id, pev_origin, Origin);
		
		static Button;
		Button = pev(id, pev_button);
		
		if(Button & IN_USE && get_distance_f(Origin, Wallorigin[id]) <= 5.0 && !(pev(id, pev_flags) & FL_ONGROUND))
		{
			new Float:Velocity[3];
			new ClimbSpeed = floatround(pev(id, pev_maxspeed) / 2.0);
			
			if(Button & IN_FORWARD)
			{
				velocity_by_aim(id, ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else if(Button & IN_BACK)
			{
				velocity_by_aim(id, - ClimbSpeed, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
			
			else
			{
				set_pev(id, pev_origin, Wallorigin[id]);
				velocity_by_aim(id, 0, Velocity);
				fm_set_user_velocity(id, Velocity);
			}
		}
	}
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/

Plugin MultiJump : https://forums.alliedmods.net/showthread.php?t=10159
HP/AP in HUD : pluginuri-extream/subiect-t235197.html

Scuze pentru x2 post dar atunci cand pun shop-ul pe server si schimb mapa si incer sa intru imi scrie ca " cannot continue without model ... nume "
si am incercat cu mai multe
User avatar
WHOAMI?
Super moderator
Super moderator
Posts: 879
Joined: 17 Dec 2013, 19:51
Detinator Steam: Da
Reputatie: Super Moderator
Fost Membru Club eXtreamCS (o luna)
Location: New Orleans
Has thanked: 12 times
Been thanked: 8 times

31 May 2020, 03:57

Aceasta linie o modifici cu modelul de cutit care doresti tu.

Code: Select all

"models/furienruls/v_knife_furienrulsro.mdl",
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 3 times
Contact:

31 May 2020, 19:45

WHOAMI? wrote:
31 May 2020, 03:57
Aceasta linie o modifici cu modelul de cutit care doresti tu.

Code: Select all

"models/furienruls/v_knife_furienrulsro.mdl",
Dar asta ?
Am pus , multumesc , dar am o problema. O data la cateva secunde , 15-30 de secunde de la conectare a 2 playeri , chiar si 1 daca nu ma insel server-ul pica pentru cateva secunde apoi isi revine
Asta am gasit in consola
| Ascunde codul
ERROR: couldn't open custom.hpk.

User iKnow^ (2) uses protocol 48; SteamID assigned by revEmu

L 05/30/2020 - 19:50:37: [admin.amxx] Login: "iKnow^<2><STEAM_0:0:513039321><>" became an admin (account "iKnow^") (access "abcdefghijklmnopqrstu") (address "109.100.109.39")

ERROR: couldn't open custom.hpk.

Uploading dump (in-process) [proxy '']

/tmp/dumps/crash_20200530195114_1.dmp

success = no

error: Failed to open/read local data from file/application

Segmentation fault

email debug.log to linux@valvesoftware.com

Sat May 30 19:51:15 EEST 2020: Server restart in 10 seconds
User avatar
EleCtr0zZz
Membru, skill +1
Membru, skill +1
Posts: 428
Joined: 25 May 2015, 06:27
Detinator Steam: Da
SteamID: =
Fond eXtream: 0
Has thanked: 3 times
Contact:

01 Jun 2020, 00:10

WHOAMI? wrote:
31 May 2020, 03:57
Aceasta linie o modifici cu modelul de cutit care doresti tu.

Code: Select all

"models/furienruls/v_knife_furienrulsro.mdl",
Am facut exact cum ai spus , dar cand intru pe server imi da disconect si imi spune
cannot continue without model ... am modelele puse la locul lor
Oare sa fie o problema de la plugin si nu incarca modelele?

EDIT
La fel si plugin-ul cu modele vip
Post Reply

Return to “Cereri”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests