New HE Grenade Effects

Pluginuri facute de utilizatorii forumului eXtream.

Moderators: Moderatori ajutatori, Moderatori, Echipa eXtreamCS.com

User avatar
FaTzZu
Fost moderator
Fost moderator
Posts: 1206
Joined: 22 Dec 2012, 18:37
Detinator Steam: Da
Reputatie: Fost moderator ajutator
Has thanked: 114 times
Been thanked: 168 times

26 Nov 2013, 22:13

Trebuie sa recunosc ... ce e frumos e frumos, felicitari.Am facut si eu unul asemanator, e privat, dar fara acele artificii.
Last edited by FaTzZu on 26 Nov 2013, 22:15, edited 1 time in total.
A fool's brain digests philosophy into folly, science into superstition, and art into pedantry.

#RETIRED.
User avatar
luciaus
Membru, skill +1
Membru, skill +1
Posts: 348
Joined: 19 Nov 2012, 22:04
Detinator Steam: Nu
Has thanked: 55 times
Been thanked: 2 times

26 Nov 2013, 22:14

dar ce fac daca am si frost nade..? vad ca se pun artificii si la frost nade si la he..
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

26 Nov 2013, 22:28

luciaus wrote:dar ce fac daca am si frost nade..? vad ca se pun artificii si la frost nade si la he..
Atunnci dezactivezi unul din pluginuri.
@FaTzZu: m.ai impresionat. (Stii tu de ce :)) )

Edit: pentru orice nelamuriri/defectiuni la acest plugin, rog sa postati in acest topic erorile provocate de acesta.
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
luciaus
Membru, skill +1
Membru, skill +1
Posts: 348
Joined: 19 Nov 2012, 22:04
Detinator Steam: Nu
Has thanked: 55 times
Been thanked: 2 times

26 Nov 2013, 22:34

pai si daca eu vreau sa pun he sa fie cu artificii si frostnade..:(
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

27 Nov 2013, 16:44

luciaus wrote:pai si daca eu vreau sa pun he sa fie cu artificii si frostnade..:(
Imi dai PM pluginurile si ti le imbin eu :) !
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
CaTa.
Fost moderator
Fost moderator
Posts: 420
Joined: 28 Jul 2013, 15:06
Detinator Steam: Nu
Detinator server CS: In curand !
Reputatie: Fost Moderator ajutator
Location: Targu-Mures
Has thanked: 99 times
Been thanked: 19 times
Contact:

27 Nov 2013, 16:55

scosmynnnn wrote:wow,printre cele mai frumoase pluginuri pe care le-am vazut e asta :X bravo man e superb ce efecte :O :O...
bv ionut !
CLICK ! | Afiseaza codul
Ma gasesti pe Messenger la id :[/b] [email protected]
Follow me on Instagram
Fa-ti cunoscut serverul de Counter-Strike pe facebook ! 
Fa-ti reclama gratis aici Click
My Plugin Furien Guns
User avatar
Rony
Utilizator neserios (tepar)
Utilizator neserios (tepar)
Posts: 966
Joined: 11 Mar 2013, 11:43
Detinator Steam: Da
CS Status: CO-FOUNDER BETANO
Detinator server CS: CS1.6 , CS:GO
SteamID: 31r1
Reputatie: Membru Club eXtreamCS (1 luna)
Membru Club eXtreamCs (28 Feb)
Utilizator neserios (tepar)
Location: NAPOLI
Has thanked: 173 times
Been thanked: 66 times
Contact:

27 Nov 2013, 17:09

frumos plugin,felicitari!
User avatar
SimeriaIonut
Fost moderator
Fost moderator
Posts: 261
Joined: 17 Apr 2010, 15:28
Detinator Steam: Da
Detinator server CS: XMAS.EXTREAMCS.COM
SteamID: _lvl4nticore_
Reputatie: Owner xmas.extreamcs.com
Fost moderator ajutator
Has thanked: 14 times
Been thanked: 23 times
Contact:

27 Nov 2013, 17:15

Se poate face in asa fel incat sa mearga si frostnade si asta in acelasi timp.

Poftim cod + explicatii :
| Afiseaza codul
#include < amxmodx >
#include < fakemeta >
#include < fakemeta_util >
#include < hamsandwich >

#define PLUGIN "New HE Grenade Effects"
#define VERSION "1.2"
#define AUTHOR "aNNak1N"

new const g_szFireGib[  ] = "sprites/firegib.spr";
new const g_szExplosionFire[  ] = "sprites/fireexplosion.spr";
new const g_szFireWorks[  ] = "sprites/fireworks_sprite2.spr";
new const g_szFireWorks2[  ] = "sprites/fireworks_sprite1.spr";

new FwFireGib, FwExplosionFire, FwTrail, FwExplode;
new g_iCvarChangeMode;

//constantele pentru stock
const m_fBombStatus = 	96;
const m_usEvent     = 	114;
    
const fBombPlanted = 	1 << 8;
const fExploEvent  = 	1 << 0;
const fSmokeEvent  = 	1 << 1;

public plugin_init(  ) {

	register_plugin( PLUGIN, VERSION, AUTHOR );

	register_forward( FM_SetModel, "fw_SetWmodel", 1 );

	RegisterHam( Ham_Think, "grenade", "ham_grenade_think", 0 );

	g_iCvarChangeMode = register_cvar( "he_change_mode", "1" );
}

public plugin_precache(  ) {
	
	FwFireGib = precache_model( g_szFireGib );
	FwExplosionFire = precache_model( g_szExplosionFire );
	FwTrail = precache_model( g_szFireWorks );
	FwExplode = precache_model( g_szFireWorks2 );
}

public fw_SetWmodel( ent, model[  ] ) {

	if( !fm_is_ent_grenade( ent ) )
		return FMRES_IGNORED;
	
	set_pev( ent, pev_bInDuck, 1 );
	return FMRES_IGNORED;
}

bool: fm_is_ent_grenade( entity ) {

	new classname[ 9 ];
    	pev( entity, pev_classname, classname, 8 );
    	
	if( !equal( classname, "grenade" ) )
		return false;
		
	new bits = get_pdata_int( entity, 114 );
	if( bits & ( 1<<0 ) )
		return true;
		
	return false;
}

public ham_grenade_think( ent ) {

	if( !pev( ent, pev_bInDuck ) ) 
		return FMRES_IGNORED;
		
	new Float:dmgtime;
	pev( ent, pev_dmgtime, dmgtime );
	
	if( dmgtime > get_gametime(  ) ) 
		return FMRES_IGNORED;
	
	HEGrenadeFwEffects( ent );
	return FMRES_OVERRIDE;
}

public HEGrenadeFwEffects( entity ) {

	if(grenade_type( entity ) == CSW_HEGRENADE) //daca entitatea este grenada HE, atunci arata efectele
	{
		switch( get_pcvar_num( g_iCvarChangeMode ) ) {

			case 0: {
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
				
				// Medium ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 470.0 );	// z axis + radius
				write_short( FwExplosionFire );
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Largest ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 555.0 ); // z axis
				write_short( FwExplosionFire );		
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Luz Dinamica
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 )
				write_byte( TE_DLIGHT ) // TE id
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ) // x
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ) // y
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ) // z
				write_byte( 50 );		// radio
				write_byte( 255 ); // red
				write_byte( 127 ); // green
				write_byte( 80 ); // blue
				write_byte( 30 ); // vida en 0.1, 30 = 3 segundos
				write_byte( 30 ); // velocidad de decaimiento
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, fOrigin, 0);
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 75 ); // z axis
				write_short( FwExplosionFire );
				write_byte( 17 );
				write_byte( 15 );
				write_byte( TE_EXPLFLAG_NOSOUND );
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_SPRITETRAIL ); // TE ID
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 40 ); // z axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ); // z axis
				write_short( FwFireGib ); // Sprite Index
				write_byte( 30 ); // Count
				write_byte( 10 ); // Life
				write_byte( 2 ); // Scale
				write_byte( 50 ); // Velocity Along Vector
				write_byte( 10 ); // Rendomness of Velocity
				message_end(  );
			}
			
			case 1: {	
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
		
				engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_WORLDDECAL );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				write_byte( engfunc( EngFunc_DecalIndex,"{scorch3" ) );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 60.0 );
				write_short( FwTrail );
				write_byte( 10 );
				write_byte( 15 );
				write_byte( 0 );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_SPRITE );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 200.0 );
				write_short( FwExplode );
				write_byte( 15 );
				write_byte( 200 );
				message_end(  );
			}	
		}
	}
}

//stocul de verificare a grenazilor
stock grenade_type( const index, const checkClassName = 0 )  
{ 
	static classname[ 9 ] 
	
	if( checkClassName ) 
	{ 
		pev( index, pev_classname, classname, 8 ) 
		if ( !equal( classname, "grenade") ) 
		{ 
			return 0;
		} 
	} 
	
	if( get_pdata_int( index, m_fBombStatus ) & fBombPlanted )
	{
		return 0;
	}
	
	static bits; bits = get_pdata_int( index, m_usEvent ) 
	
	if ( bits & fExploEvent ) 
	{ 
		return CSW_HEGRENADE;
	} 
	
	else if( !bits ) 
	{ 
		return CSW_FLASHBANG;
	} 
	
	else if( bits & fSmokeEvent ) 
	{ 
		return CSW_SMOKEGRENADE;
	} 
	
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
XMAS.EXTREAMCS.COM #Official Christmas Mod 2024 [❄️🎅🎄🎁]
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

27 Nov 2013, 17:17

SimeriaIonut wrote:Se poate face in asa fel incat sa mearga si frostnade si asta in acelasi timp.

Poftim cod + explicatii :
| Afiseaza codul
#include < amxmodx >
#include < fakemeta >
#include < fakemeta_util >
#include < hamsandwich >

#define PLUGIN "New HE Grenade Effects"
#define VERSION "1.2"
#define AUTHOR "aNNak1N"

new const g_szFireGib[  ] = "sprites/firegib.spr";
new const g_szExplosionFire[  ] = "sprites/fireexplosion.spr";
new const g_szFireWorks[  ] = "sprites/fireworks_sprite2.spr";
new const g_szFireWorks2[  ] = "sprites/fireworks_sprite1.spr";

new FwFireGib, FwExplosionFire, FwTrail, FwExplode;
new g_iCvarChangeMode;

//constantele pentru stock
const m_fBombStatus = 	96;
const m_usEvent     = 	114;
    
const fBombPlanted = 	1 << 8;
const fExploEvent  = 	1 << 0;
const fSmokeEvent  = 	1 << 1;

public plugin_init(  ) {

	register_plugin( PLUGIN, VERSION, AUTHOR );

	register_forward( FM_SetModel, "fw_SetWmodel", 1 );

	RegisterHam( Ham_Think, "grenade", "ham_grenade_think", 0 );

	g_iCvarChangeMode = register_cvar( "he_change_mode", "1" );
}

public plugin_precache(  ) {
	
	FwFireGib = precache_model( g_szFireGib );
	FwExplosionFire = precache_model( g_szExplosionFire );
	FwTrail = precache_model( g_szFireWorks );
	FwExplode = precache_model( g_szFireWorks2 );
}

public fw_SetWmodel( ent, model[  ] ) {

	if( !fm_is_ent_grenade( ent ) )
		return FMRES_IGNORED;
	
	set_pev( ent, pev_bInDuck, 1 );
	return FMRES_IGNORED;
}

bool: fm_is_ent_grenade( entity ) {

	new classname[ 9 ];
    	pev( entity, pev_classname, classname, 8 );
    	
	if( !equal( classname, "grenade" ) )
		return false;
		
	new bits = get_pdata_int( entity, 114 );
	if( bits & ( 1<<0 ) )
		return true;
		
	return false;
}

public ham_grenade_think( ent ) {

	if( !pev( ent, pev_bInDuck ) ) 
		return FMRES_IGNORED;
		
	new Float:dmgtime;
	pev( ent, pev_dmgtime, dmgtime );
	
	if( dmgtime > get_gametime(  ) ) 
		return FMRES_IGNORED;
	
	HEGrenadeFwEffects( ent );
	return FMRES_OVERRIDE;
}

public HEGrenadeFwEffects( entity ) {

	if(grenade_type( entity ) == CSW_HEGRENADE) //daca entitatea este grenada HE, atunci arata efectele
	{
		switch( get_pcvar_num( g_iCvarChangeMode ) ) {

			case 0: {
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
				
				// Medium ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 470.0 );	// z axis + radius
				write_short( FwExplosionFire );
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Largest ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 555.0 ); // z axis
				write_short( FwExplosionFire );		
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Luz Dinamica
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 )
				write_byte( TE_DLIGHT ) // TE id
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ) // x
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ) // y
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ) // z
				write_byte( 50 );		// radio
				write_byte( 255 ); // red
				write_byte( 127 ); // green
				write_byte( 80 ); // blue
				write_byte( 30 ); // vida en 0.1, 30 = 3 segundos
				write_byte( 30 ); // velocidad de decaimiento
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, fOrigin, 0);
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 75 ); // z axis
				write_short( FwExplosionFire );
				write_byte( 17 );
				write_byte( 15 );
				write_byte( TE_EXPLFLAG_NOSOUND );
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_SPRITETRAIL ); // TE ID
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 40 ); // z axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ); // z axis
				write_short( FwFireGib ); // Sprite Index
				write_byte( 30 ); // Count
				write_byte( 10 ); // Life
				write_byte( 2 ); // Scale
				write_byte( 50 ); // Velocity Along Vector
				write_byte( 10 ); // Rendomness of Velocity
				message_end(  );
			}
			
			case 1: {	
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
		
				engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_WORLDDECAL );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				write_byte( engfunc( EngFunc_DecalIndex,"{scorch3" ) );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 60.0 );
				write_short( FwTrail );
				write_byte( 10 );
				write_byte( 15 );
				write_byte( 0 );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_SPRITE );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 200.0 );
				write_short( FwExplode );
				write_byte( 15 );
				write_byte( 200 );
				message_end(  );
			}	
		}
	}
}

//stocul de verificare a grenazilor
stock grenade_type( const index, const checkClassName = 0 )  
{ 
	static classname[ 9 ] 
	
	if( checkClassName ) 
	{ 
		pev( index, pev_classname, classname, 8 ) 
		if ( !equal( classname, "grenade") ) 
		{ 
			return 0;
		} 
	} 
	
	if( get_pdata_int( index, m_fBombStatus ) & fBombPlanted )
	{
		return 0;
	}
	
	static bits; bits = get_pdata_int( index, m_usEvent ) 
	
	if ( bits & fExploEvent ) 
	{ 
		return CSW_HEGRENADE;
	} 
	
	else if( !bits ) 
	{ 
		return CSW_FLASHBANG;
	} 
	
	else if( bits & fSmokeEvent ) 
	{ 
		return CSW_SMOKEGRENADE;
	} 
	
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Oricum s-a rezolvat ! :)
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
SimeriaIonut
Fost moderator
Fost moderator
Posts: 261
Joined: 17 Apr 2010, 15:28
Detinator Steam: Da
Detinator server CS: XMAS.EXTREAMCS.COM
SteamID: _lvl4nticore_
Reputatie: Owner xmas.extreamcs.com
Fost moderator ajutator
Has thanked: 14 times
Been thanked: 23 times
Contact:

27 Nov 2013, 17:19

YONTU wrote:
SimeriaIonut wrote:Se poate face in asa fel incat sa mearga si frostnade si asta in acelasi timp.

Poftim cod + explicatii :
| Afiseaza codul
#include < amxmodx >
#include < fakemeta >
#include < fakemeta_util >
#include < hamsandwich >

#define PLUGIN "New HE Grenade Effects"
#define VERSION "1.2"
#define AUTHOR "aNNak1N"

new const g_szFireGib[  ] = "sprites/firegib.spr";
new const g_szExplosionFire[  ] = "sprites/fireexplosion.spr";
new const g_szFireWorks[  ] = "sprites/fireworks_sprite2.spr";
new const g_szFireWorks2[  ] = "sprites/fireworks_sprite1.spr";

new FwFireGib, FwExplosionFire, FwTrail, FwExplode;
new g_iCvarChangeMode;

//constantele pentru stock
const m_fBombStatus = 	96;
const m_usEvent     = 	114;
    
const fBombPlanted = 	1 << 8;
const fExploEvent  = 	1 << 0;
const fSmokeEvent  = 	1 << 1;

public plugin_init(  ) {

	register_plugin( PLUGIN, VERSION, AUTHOR );

	register_forward( FM_SetModel, "fw_SetWmodel", 1 );

	RegisterHam( Ham_Think, "grenade", "ham_grenade_think", 0 );

	g_iCvarChangeMode = register_cvar( "he_change_mode", "1" );
}

public plugin_precache(  ) {
	
	FwFireGib = precache_model( g_szFireGib );
	FwExplosionFire = precache_model( g_szExplosionFire );
	FwTrail = precache_model( g_szFireWorks );
	FwExplode = precache_model( g_szFireWorks2 );
}

public fw_SetWmodel( ent, model[  ] ) {

	if( !fm_is_ent_grenade( ent ) )
		return FMRES_IGNORED;
	
	set_pev( ent, pev_bInDuck, 1 );
	return FMRES_IGNORED;
}

bool: fm_is_ent_grenade( entity ) {

	new classname[ 9 ];
    	pev( entity, pev_classname, classname, 8 );
    	
	if( !equal( classname, "grenade" ) )
		return false;
		
	new bits = get_pdata_int( entity, 114 );
	if( bits & ( 1<<0 ) )
		return true;
		
	return false;
}

public ham_grenade_think( ent ) {

	if( !pev( ent, pev_bInDuck ) ) 
		return FMRES_IGNORED;
		
	new Float:dmgtime;
	pev( ent, pev_dmgtime, dmgtime );
	
	if( dmgtime > get_gametime(  ) ) 
		return FMRES_IGNORED;
	
	HEGrenadeFwEffects( ent );
	return FMRES_OVERRIDE;
}

public HEGrenadeFwEffects( entity ) {

	if(grenade_type( entity ) == CSW_HEGRENADE) //daca entitatea este grenada HE, atunci arata efectele
	{
		switch( get_pcvar_num( g_iCvarChangeMode ) ) {

			case 0: {
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
				
				// Medium ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 470.0 );	// z axis + radius
				write_short( FwExplosionFire );
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Largest ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 555.0 ); // z axis
				write_short( FwExplosionFire );		
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Luz Dinamica
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 )
				write_byte( TE_DLIGHT ) // TE id
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ) // x
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ) // y
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ) // z
				write_byte( 50 );		// radio
				write_byte( 255 ); // red
				write_byte( 127 ); // green
				write_byte( 80 ); // blue
				write_byte( 30 ); // vida en 0.1, 30 = 3 segundos
				write_byte( 30 ); // velocidad de decaimiento
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, fOrigin, 0);
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 75 ); // z axis
				write_short( FwExplosionFire );
				write_byte( 17 );
				write_byte( 15 );
				write_byte( TE_EXPLFLAG_NOSOUND );
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_SPRITETRAIL ); // TE ID
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 40 ); // z axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ); // z axis
				write_short( FwFireGib ); // Sprite Index
				write_byte( 30 ); // Count
				write_byte( 10 ); // Life
				write_byte( 2 ); // Scale
				write_byte( 50 ); // Velocity Along Vector
				write_byte( 10 ); // Rendomness of Velocity
				message_end(  );
			}
			
			case 1: {	
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
		
				engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_WORLDDECAL );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				write_byte( engfunc( EngFunc_DecalIndex,"{scorch3" ) );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 60.0 );
				write_short( FwTrail );
				write_byte( 10 );
				write_byte( 15 );
				write_byte( 0 );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_SPRITE );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 200.0 );
				write_short( FwExplode );
				write_byte( 15 );
				write_byte( 200 );
				message_end(  );
			}	
		}
	}
}

//stocul de verificare a grenazilor
stock grenade_type( const index, const checkClassName = 0 )  
{ 
	static classname[ 9 ] 
	
	if( checkClassName ) 
	{ 
		pev( index, pev_classname, classname, 8 ) 
		if ( !equal( classname, "grenade") ) 
		{ 
			return 0;
		} 
	} 
	
	if( get_pdata_int( index, m_fBombStatus ) & fBombPlanted )
	{
		return 0;
	}
	
	static bits; bits = get_pdata_int( index, m_usEvent ) 
	
	if ( bits & fExploEvent ) 
	{ 
		return CSW_HEGRENADE;
	} 
	
	else if( !bits ) 
	{ 
		return CSW_FLASHBANG;
	} 
	
	else if( bits & fSmokeEvent ) 
	{ 
		return CSW_SMOKEGRENADE;
	} 
	
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Oricum s-a rezolvat ! :)
S-a rezolvat cum? Eu acum am versiunea ta pe serverul meu si interactioneaza cu frostnade.
XMAS.EXTREAMCS.COM #Official Christmas Mod 2024 [❄️🎅🎄🎁]
User avatar
YONTU
Scripter eXtreamCS
Scripter eXtreamCS
Posts: 2466
Joined: 10 May 2013, 14:25
Detinator Steam: Nu
CS Status: Everyone is looking at ur shoes
Reputatie: Moderator ajutator
Fost scripter eXtreamCS
Location: Gura Humorului
Has thanked: 256 times
Been thanked: 288 times
Contact:

27 Nov 2013, 17:23

SimeriaIonut wrote:
YONTU wrote:
SimeriaIonut wrote:Se poate face in asa fel incat sa mearga si frostnade si asta in acelasi timp.

Poftim cod + explicatii :
| Afiseaza codul
#include < amxmodx >
#include < fakemeta >
#include < fakemeta_util >
#include < hamsandwich >

#define PLUGIN "New HE Grenade Effects"
#define VERSION "1.2"
#define AUTHOR "aNNak1N"

new const g_szFireGib[  ] = "sprites/firegib.spr";
new const g_szExplosionFire[  ] = "sprites/fireexplosion.spr";
new const g_szFireWorks[  ] = "sprites/fireworks_sprite2.spr";
new const g_szFireWorks2[  ] = "sprites/fireworks_sprite1.spr";

new FwFireGib, FwExplosionFire, FwTrail, FwExplode;
new g_iCvarChangeMode;

//constantele pentru stock
const m_fBombStatus = 	96;
const m_usEvent     = 	114;
    
const fBombPlanted = 	1 << 8;
const fExploEvent  = 	1 << 0;
const fSmokeEvent  = 	1 << 1;

public plugin_init(  ) {

	register_plugin( PLUGIN, VERSION, AUTHOR );

	register_forward( FM_SetModel, "fw_SetWmodel", 1 );

	RegisterHam( Ham_Think, "grenade", "ham_grenade_think", 0 );

	g_iCvarChangeMode = register_cvar( "he_change_mode", "1" );
}

public plugin_precache(  ) {
	
	FwFireGib = precache_model( g_szFireGib );
	FwExplosionFire = precache_model( g_szExplosionFire );
	FwTrail = precache_model( g_szFireWorks );
	FwExplode = precache_model( g_szFireWorks2 );
}

public fw_SetWmodel( ent, model[  ] ) {

	if( !fm_is_ent_grenade( ent ) )
		return FMRES_IGNORED;
	
	set_pev( ent, pev_bInDuck, 1 );
	return FMRES_IGNORED;
}

bool: fm_is_ent_grenade( entity ) {

	new classname[ 9 ];
    	pev( entity, pev_classname, classname, 8 );
    	
	if( !equal( classname, "grenade" ) )
		return false;
		
	new bits = get_pdata_int( entity, 114 );
	if( bits & ( 1<<0 ) )
		return true;
		
	return false;
}

public ham_grenade_think( ent ) {

	if( !pev( ent, pev_bInDuck ) ) 
		return FMRES_IGNORED;
		
	new Float:dmgtime;
	pev( ent, pev_dmgtime, dmgtime );
	
	if( dmgtime > get_gametime(  ) ) 
		return FMRES_IGNORED;
	
	HEGrenadeFwEffects( ent );
	return FMRES_OVERRIDE;
}

public HEGrenadeFwEffects( entity ) {

	if(grenade_type( entity ) == CSW_HEGRENADE) //daca entitatea este grenada HE, atunci arata efectele
	{
		switch( get_pcvar_num( g_iCvarChangeMode ) ) {

			case 0: {
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
				
				// Medium ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 470.0 );	// z axis + radius
				write_short( FwExplosionFire );
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Largest ring
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_BEAMCYLINDER );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 555.0 ); // z axis
				write_short( FwExplosionFire );		
				write_byte( 0 );		// startframe
				write_byte( 0 );		// framerate
				write_byte( 4 );		// life
				write_byte( 60 );		// width
				write_byte( 0 );		// noise
				write_byte( 255 );		// red
				write_byte( 127 );		// green
				write_byte( 80 );		// blue
				write_byte( 200 );		// brightness
				write_byte( 0 );		// speed
				message_end(  );
				
				// Luz Dinamica
				engfunc( EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0 )
				write_byte( TE_DLIGHT ) // TE id
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ) // x
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ) // y
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ) // z
				write_byte( 50 );		// radio
				write_byte( 255 ); // red
				write_byte( 127 ); // green
				write_byte( 80 ); // blue
				write_byte( 30 ); // vida en 0.1, 30 = 3 segundos
				write_byte( 30 ); // velocidad de decaimiento
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST, SVC_TEMPENTITY, fOrigin, 0);
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 75 ); // z axis
				write_short( FwExplosionFire );
				write_byte( 17 );
				write_byte( 15 );
				write_byte( TE_EXPLFLAG_NOSOUND );
				message_end(  );
				
				engfunc( EngFunc_MessageBegin, MSG_BROADCAST,SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_SPRITETRAIL ); // TE ID
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 40 ); // z axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] ); // x axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] ); // y axis
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] ); // z axis
				write_short( FwFireGib ); // Sprite Index
				write_byte( 30 ); // Count
				write_byte( 10 ); // Life
				write_byte( 2 ); // Scale
				write_byte( 50 ); // Velocity Along Vector
				write_byte( 10 ); // Rendomness of Velocity
				message_end(  );
			}
			
			case 1: {	
				
				new Float:fOrigin[ 3 ];
				pev( entity, pev_origin, fOrigin );
		
				engfunc( EngFunc_MessageBegin, MSG_PAS, SVC_TEMPENTITY, fOrigin, 0 );
				write_byte( TE_WORLDDECAL );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] );
				write_byte( engfunc( EngFunc_DecalIndex,"{scorch3" ) );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_EXPLOSION );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 60.0 );
				write_short( FwTrail );
				write_byte( 10 );
				write_byte( 15 );
				write_byte( 0 );
				message_end(  );
		
				message_begin( MSG_BROADCAST, SVC_TEMPENTITY );
				write_byte( TE_SPRITE );
				engfunc( EngFunc_WriteCoord, fOrigin[ 0 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 1 ] + random_float( -5.0, 5.0 ) );
				engfunc( EngFunc_WriteCoord, fOrigin[ 2 ] + 200.0 );
				write_short( FwExplode );
				write_byte( 15 );
				write_byte( 200 );
				message_end(  );
			}	
		}
	}
}

//stocul de verificare a grenazilor
stock grenade_type( const index, const checkClassName = 0 )  
{ 
	static classname[ 9 ] 
	
	if( checkClassName ) 
	{ 
		pev( index, pev_classname, classname, 8 ) 
		if ( !equal( classname, "grenade") ) 
		{ 
			return 0;
		} 
	} 
	
	if( get_pdata_int( index, m_fBombStatus ) & fBombPlanted )
	{
		return 0;
	}
	
	static bits; bits = get_pdata_int( index, m_usEvent ) 
	
	if ( bits & fExploEvent ) 
	{ 
		return CSW_HEGRENADE;
	} 
	
	else if( !bits ) 
	{ 
		return CSW_FLASHBANG;
	} 
	
	else if( bits & fSmokeEvent ) 
	{ 
		return CSW_SMOKEGRENADE;
	} 
	
	return 0;
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par }
*/
Oricum s-a rezolvat ! :)
S-a rezolvat cum? Eu acum am versiunea ta pe serverul meu si interactioneaza cu frostnade.
Ma refer ca i.am dat PM lui lucius care zicea ca nu functioneaza frost nades cu pluginul asta al meu asa ca i le.am imbinat.
„Peste douăzeci de ani vei fi dezamăgit din cauza lucrurilor pe care nu le-ai făcut, nu din cauza celor pe care le-ai făcut.” - Mark Twain
„Asa e si in viata, hotii castiga, prostii care invata pierd.” - Mihai Nemeș


Bio.LeagueCs.Ro - Biohazard v4.4 Xmas Edition
discord: IonutC#5114

Experinta in: Java/Spring boot/Angular/C/C++/C#/Javascript/Python/HTML/CSS/Pawn/SQL
Ai nevoie de ajutorul meu? Ma poti gasi doar la adresa de discord de mai sus.
User avatar
SimeriaIonut
Fost moderator
Fost moderator
Posts: 261
Joined: 17 Apr 2010, 15:28
Detinator Steam: Da
Detinator server CS: XMAS.EXTREAMCS.COM
SteamID: _lvl4nticore_
Reputatie: Owner xmas.extreamcs.com
Fost moderator ajutator
Has thanked: 14 times
Been thanked: 23 times
Contact:

27 Nov 2013, 17:28

Pai pune versiunea aici, multa lume are frostnades si ar vrea sa nu mai aiba cele 2 pluginuri probleme intre ele.
XMAS.EXTREAMCS.COM #Official Christmas Mod 2024 [❄️🎅🎄🎁]
Post Reply

Return to “Pluginuri eXtream”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests