Counter-Strike 1.6
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] #1
45.144.155.113:27015
de_dust2
Играчи: 30/32
de_dust2
Counter-Strike 1.6
VIP
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 aim_aztec Играчи: 0/16
Counter-Strike 1.6
VIP
93.123.16.4:27022 Cs-PlovdiV.com - Aim Attack aim_aztec 0/16

Remove icons [ money ]

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
cgozzie
Извън линия
Потребител
Потребител
Мнения: 1319
Регистриран на: 13 Окт 2016, 22:10
Местоположение: Варна
Се отблагодари: 248 пъти
Получена благодарност: 43 пъти

Remove icons [ money ]

Мнение от cgozzie » 21 Дек 2021, 15:04

rago12 написа: 21 Дек 2021, 14:46 Вика се същия евент просто от няколко други плъгина ако ще и този да е просто сложи някой от тези които са ти пратени най-отгоре в plugins.ini
Ако не стане ще ти го добавя в този плъгин който си пратил
Извени ме но изобщо не те разбрах какво да направя.Плъгина за премахването на долара и 0 си върви но този който съм дал го деактивира.За това дадох сма файла ако може да се направи така че другия да си стане активен.Но ако нещо ще се преправя в този който дадох де не стане така че да подкараме другия а пък този да не се прецака нещо.Ако можеш да направиш корекцията направи я и ще тествам..
Изображение

Аватар
rago12
Извън линия
Потребител
Потребител
Мнения: 63
Регистриран на: 10 Апр 2017, 15:23
Получена благодарност: 34 пъти

Remove icons [ money ]

Мнение от rago12 » 21 Дек 2021, 17:37

Код за потвърждение: Избери целия код

/*
===========================================================================================================================================
C:\
=  Aim Realism  -  AMX Mod X script. Copyright © 2020-2021, WATCH_DOGS UNITED
=
=  Credits:
=
=  ?MX Mod X    -  Plugin creation opportunity; © Copyright AMX Mod X Dev Team.
=  VEN          - "Fix_Recoil" plugin base code ( 2007 ); used to control the bullets accuracy by distance.
=  hellmonja    -  Code required for shotgun pellets to act properly and to be drawn correctly in "Advanced Weapon Tracers" plugin.
=  mlibre       -  Code for the realism function to work only when players shot; keeps your gameplay more lighter.
=  ot_207       -  Some codes of the "recoil_control" plugin ( 2009 ); used to set the weapon recoil.
=  v3x          -  Static crosshair [ CS-GO like ( observer crosshair ) ]. Helps you detect recoil and hit targets accurately.
=  ConnorMcLeod -  Code to detect snipers scope; the static crosshair is hidden automatically when on scope for this to work properly.
=  Bugsy        -  Boolean variables; used to detect events and take posterior actions to solve common problems.
=
=  Description
=
=  This plugin is an engine bug fix.
=
=  To easily understand how this plugin works, just forget about the default CS aim and imagine that you are shooting with a real weapon.
=
=  Basically, the shots will hit precisely where you aim.
=  Even if you're shooting from a ladder;
=  Even if you are using sniper rifles without using the scope;
=  If you're shooting from a ladder you'll notice a slight difference in accuracy also realistic;
=  Accuracy of shotgun pellets adjusted to be as realistic as possible;
=  Fixes game engine bug that causes projectiles to not be processed, notable while constantly shooting with a famas clarion;
=  Fixes bad shot processing bug when playing online on slow speed internet connections;
=  Includes customizable crosshairs via cvar;
=  Allows you to see players name even in long ranges;
=  Includes a new BotProfile made for realism;
=  Fixes the slow players health update in spectator mode. New
=
=  BotProfile Characteristics
=
=  Includes all CS / CZ bots
=
=  The Easy level is actually all mixed levels, that is, any bot from any level will participate;
=  Bots act in a more independent way;
=
=  4 levels (Easy, Normal, Hard and Expert) instead of 8 (Easy, Fair, Normal, Tough, Hard, VeryHard, Expert and Elite)
=
=  No injustices:
=
=  Bots from a same level have the same skill;
=  Bots can`t know your exact position.
=
=  Skills are sequential:
=
=  Easy  : 25 | Normal: 50 | Hard: 75 | Expert: 100
=
=  Attack delays are sequential:
=
=  Easy  : 1.2 | Normal: 0.6 | Hard: 0.3 | Expert: 0.15
=
=  Changelog
=
=  Dec 22, 2020 - v1.0     -  Initial release
=
=  Aug 05, 2021 - v2.0     -  Optimized code + Added features
=
=      [ ADDED ]           -  Cvar for custom recoil
=      [ ADDED ]           -  Shotgun pellets accuracy control
=      [ ADDED ]           -  Cvar for custom shotgun pellets accuracy
=      [ ADDED ]           -  Customizable crosshair: No Crosshair, Static and Accurate ( Standard + Static )
=      [ ADDED ]           -  Cvar for custom crosshairs
=      [ ADDED ]           -  Snipers crosshair ( static crosshair )
=      [ ADDED ]           -  Cvar for snipers crosshair
=      [ ADDED ]           -  Command to display crosshair modes in console
=
=  [ OPTIMIZED ]           -  Realism function code reduced and ultra optimized for bullet processing performance
=  [ OPTIMIZED ]           -  Now the realism function works even if the targets are behind walls and objects
=  [ OPTIMIZED ]           -  Realism function now works only when you shoot keeping your gameplay more lighter
=
=  [ UNALTERED ]           -  Recoil stills the same as v1.0 ( 0.237 ) as already the best approximation for realism.
=
=
=  Aug 11, 2021 - v2.1     -  Optimized code + Added features + Removed commands
=
=  [ OPTIMIZED ]           -  You can now enable/disable standard and static crosshairs with proper cvars.
=  [ OPTIMIZED ]           -  Now you can use the snipers crosshair independent that static crosshair is disabled on other weapons.
=
=    [ REMOVED ]           -  command to show crosshair modes.
=    [ REMOVED ]           -  cvar to set crosshair modes.
=
=      [ ADDED ]           -  cvar for standard crosshair.
=      [ ADDED ]           -  cvar for static crosshair.
=
=
=  Aug 30, 2021 - v2.2     -  Code optimized + Updated txt file + BotProfile updated to Hitman Edition.
=
=  [ OPTIMIZED ]           -  Realism function code reduced.
=     [ UNDONE ]           -  Shotgun pellets now are better represented in "Advanced Weapon Tracers" plugin even if shooting entities.
=  [ OPTIMIZED ]           -  Now bots have from 25 ( Easy ) to 100 ( Expert ) sequential skills with a more agitated behavior.
=
=      [ ADDED ]           -  Custom static crosshair tutorial.
=
=
=  Sep 02, 2021 - v2.2.1   -  Now compatible with latest Amx Mod X versions.
=
=  Sep 03, 2021 - v2.2.2   -  Code optimized + Shotgun precision works even with entities ( breakable objects , doors etc. ).
=
=  Sep 25, 2021 - v2.2.3   -  Code optimized + Added crosshair options for spectator mode + BotProfile updated.
=
=      [ ADDED ]           -  cvar for standard crosshair on spectator mode.
=      [ ADDED ]           -  cvar for static crosshair on spectator mode.
=      [ ADDED ]           -  cvar for snipers crosshair on spectator mode.
=
=  Sep 27, 2021 - v2.2.4   -  Changed "observer" to "static" crosshair and "normal" to "standard" crosshair for better understanding.
=
=  Oct 04, 2021 - v2.2.5   -  Code optimized + optimized shotgun system for long ranges + BotProfile updated.
=
=  Commands
=
=  aim__realism            -  Activates the realism. Default value: 1 ( on )
=  aim__shotguns_accuracy  -  Controls the accuracy of shotgun pellets. Default value: 2020 ( realistic )
=  aim__recoil             -  Global weapon recoil. Default value: 0.237 ( realistic )
=
=  aim__standard_crosshair -  Allows the standard crosshair to be displayed. Default value: 1 ( Allowed )
=  aim__static_crosshair   -  Allows the static crosshair to be displayed. Default value: 1 ( Allowed )
=  aim__snipers_crosshair  -  Allows the static crosshair to be displayed while holding sniper rifles. Default value: 1 ( Allowed )
=
=  aim_spec_standard_cross -  Allows the standard crosshair on spectator mode. Default value: 1 ( Allowed )
=  aim_spec_static_cross   -  Allows the static crosshair on spectator mode. Default value: 1 ( Allowed )
=  aim_spec_snipers_cross  -  Allows the snipers crosshair on spectator mode. Default value: 1 ( Allowed )
=
=  Note: Static crosshair is the observer crosshair, so keep the observer crosshair enabled in your game options section.
=
=  Plugin File Info
=
=  Lines: 266              -  Code: 129
=  Size : 11,8 KB          -  Code: 4,80 KB
=
===========================================================================================================================================
*/

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

#define MAX_CLIENTS   32
#define WEAPON        get_user_weapon
#define SHOTGUN     ( WEAPON ( id ) == CSW_M3 || WEAPON ( id ) == CSW_XM1014 )
#define num           get_pcvar_num
#define ALIVE         is_user_alive

#define HUD_HIDE_MONEY (1<<5)

new   g_pcvar_a_realism
	, g_pcvar_a_shotguns_accuracy
	, g_pcvar_a_recoil
	, g_pcvar_a_cross_snipers
	, g_pcvar_a_standard_cross
	, g_pcvar_a_static_cross
	, g_pcvar_a_standard_cross_spec
	, g_pcvar_a_static_cross_spec
	, g_pcvar_a_snipers_cross_spec
	, target , body , bool: FLASHED
	, bool: ON_SCOPE [ MAX_CLIENTS + 1 ]

public plugin_init ( )
{
	register_plugin                               ( "Aim Realism"                 , "2.2.5"     , "WATCH_DOGS UNITED" )
	g_pcvar_a_realism             = register_cvar ( "aim__realism"                ,     "1"                           )
	g_pcvar_a_shotguns_accuracy   = register_cvar ( "aim__shotguns_accuracy"      ,  "2020"                           )
	g_pcvar_a_recoil              = register_cvar ( "aim__recoil"                 ,     "0.237"                       )
	g_pcvar_a_standard_cross      = register_cvar ( "aim__standard_crosshair"     ,     "1"                           )
	g_pcvar_a_static_cross        = register_cvar ( "aim__static_crosshair"       ,     "1"                           )
	g_pcvar_a_cross_snipers       = register_cvar ( "aim__snipers_crosshair"      ,     "1"                           )
	g_pcvar_a_standard_cross_spec = register_cvar ( "aim_standard_cross_spec"     ,     "1"                           )
	g_pcvar_a_static_cross_spec   = register_cvar ( "aim_static_cross_spec"       ,     "1"                           )
	g_pcvar_a_snipers_cross_spec  = register_cvar ( "aim_snipers_cross_spec"      ,     "1"                           )
	register_forward                              ( FM_TraceLine , "fwTraceLine"  ,      1                            )
	register_event                                ( "SetFOV"     , "Event_SetFOV" ,     "b"                           )
	register_event                                ( "CurWeapon"  , "Cross_Mode"   ,     "b"     , "1=1"               )

	register_message(get_user_msgid("HideWeapon"), "msg_hideweapon")
	
	static szWeaponName [ 32 ] , NOSHOT_BITSUM = ( 1<<CSW_KNIFE ) | ( 1<<CSW_HEGRENADE ) | ( 1<<CSW_FLASHBANG ) | ( 1<<CSW_SMOKEGRENADE )
	for ( new iId = CSW_P228; iId <= CSW_P90; iId++ )
	{
		if ( ~NOSHOT_BITSUM & 1<<iId && get_weaponname ( iId , szWeaponName , charsmax ( szWeaponName ) ) )
			RegisterHam ( Ham_Weapon_PrimaryAttack , szWeaponName , "Recoil_Control" , 1 )
	}
}

public msg_hideweapon()
	set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(1) | HUD_HIDE_MONEY)

public grenade_throw ( id , grenadeIndex , weaponId )
{
	if ( num ( g_pcvar_a_realism ) && weaponId == CSW_FLASHBANG )
	{
		set_task ( 1.5 , "Generic_Flashed" )
		set_task ( 1.7 , "Generic_No_Flashed" )
	}
}

public Generic_Flashed ( )

	FLASHED = true

public Generic_No_Flashed ( )

	FLASHED = false

public fwTraceLine ( const Float: start [ 3 ] , Float: dest [ 3 ] , HITZONE , id , ptr )
{
	if ( !num    ( g_pcvar_a_realism )
	||   !ALIVE  ( id )
	||    HITZONE       != DONT_IGNORE_MONSTERS
	||    WEAPON ( id ) == CSW_KNIFE )
	return

	static button; button = pev ( id , pev_button )

	if ( button && IN_ATTACK && FLASHED != true )
	{
		if ( !SHOTGUN )
		{
			velocity_by_aim ( id , 9999 , dest )
			xs_vec_add ( start , dest , dest )
		}

		if ( SHOTGUN && get_user_aiming ( id , target , body , 2000 ) && target )
		{
			velocity_by_aim ( id , num ( g_pcvar_a_shotguns_accuracy ) , dest )
			xs_vec_add ( start , dest , dest )
		}

		engfunc ( EngFunc_TraceLine , start , dest , HITZONE , id , ptr )
	}
}

public Recoil_Control ( ent , Float: push [ 3 ] )
{
	if ( num ( g_pcvar_a_realism ) )
	{
		new id = pev ( ent , pev_owner )
		pev ( id , pev_punchangle , push )
		xs_vec_mul_scalar ( push , get_pcvar_float ( g_pcvar_a_recoil ) , push )
		set_pev ( id , pev_punchangle , push )
	}
}

public Event_SetFOV ( id )

	ON_SCOPE [ id ] = ( read_data ( 1 ) < 55 )

public Cross_Mode ( id )
{	
	if ( !ON_SCOPE [ id ] )
	{
		new SNIPER = WEAPON ( id ) == CSW_AWP
				  || WEAPON ( id ) == CSW_SCOUT
				  || WEAPON ( id ) == CSW_G3SG1
				  || WEAPON ( id ) == CSW_SG550 , CM = 64

		if ( num ( g_pcvar_a_standard_cross      ) &&  ALIVE ( id )
		||   num ( g_pcvar_a_standard_cross_spec ) && !ALIVE ( id ) )
			 CM =  0

		message_begin(MSG_ONE, get_user_msgid("HideWeapon"), _, id)
		write_byte(HUD_HIDE_MONEY)
		message_end();

		if ( ALIVE ( id ) && num ( g_pcvar_a_static_cross       ) && !SNIPER
		||   ALIVE ( id ) && num ( g_pcvar_a_cross_snipers      ) &&  SNIPER
		||  !ALIVE ( id ) && num ( g_pcvar_a_static_cross_spec  ) && !SNIPER
		||  !ALIVE ( id ) && num ( g_pcvar_a_snipers_cross_spec ) &&  SNIPER ) {
			 message_begin ( MSG_ONE_UNRELIABLE , get_user_msgid ( "Crosshair" ) , { 0 , 0 , 0 } , id ); write_byte ( 1 ); message_end
		}
	}
}

Аватар
cgozzie
Извън линия
Потребител
Потребител
Мнения: 1319
Регистриран на: 13 Окт 2016, 22:10
Местоположение: Варна
Се отблагодари: 248 пъти
Получена благодарност: 43 пъти

Remove icons [ money ]

Мнение от cgozzie » 21 Дек 2021, 19:56

rago12 написа: 21 Дек 2021, 17:37

Код за потвърждение: Избери целия код

/*
===========================================================================================================================================
C:\
=  Aim Realism  -  AMX Mod X script. Copyright © 2020-2021, WATCH_DOGS UNITED
=
=  Credits:
=
=  ?MX Mod X    -  Plugin creation opportunity; © Copyright AMX Mod X Dev Team.
=  VEN          - "Fix_Recoil" plugin base code ( 2007 ); used to control the bullets accuracy by distance.
=  hellmonja    -  Code required for shotgun pellets to act properly and to be drawn correctly in "Advanced Weapon Tracers" plugin.
=  mlibre       -  Code for the realism function to work only when players shot; keeps your gameplay more lighter.
=  ot_207       -  Some codes of the "recoil_control" plugin ( 2009 ); used to set the weapon recoil.
=  v3x          -  Static crosshair [ CS-GO like ( observer crosshair ) ]. Helps you detect recoil and hit targets accurately.
=  ConnorMcLeod -  Code to detect snipers scope; the static crosshair is hidden automatically when on scope for this to work properly.
=  Bugsy        -  Boolean variables; used to detect events and take posterior actions to solve common problems.
=
=  Description
=
=  This plugin is an engine bug fix.
=
=  To easily understand how this plugin works, just forget about the default CS aim and imagine that you are shooting with a real weapon.
=
=  Basically, the shots will hit precisely where you aim.
=  Even if you're shooting from a ladder;
=  Even if you are using sniper rifles without using the scope;
=  If you're shooting from a ladder you'll notice a slight difference in accuracy also realistic;
=  Accuracy of shotgun pellets adjusted to be as realistic as possible;
=  Fixes game engine bug that causes projectiles to not be processed, notable while constantly shooting with a famas clarion;
=  Fixes bad shot processing bug when playing online on slow speed internet connections;
=  Includes customizable crosshairs via cvar;
=  Allows you to see players name even in long ranges;
=  Includes a new BotProfile made for realism;
=  Fixes the slow players health update in spectator mode. New
=
=  BotProfile Characteristics
=
=  Includes all CS / CZ bots
=
=  The Easy level is actually all mixed levels, that is, any bot from any level will participate;
=  Bots act in a more independent way;
=
=  4 levels (Easy, Normal, Hard and Expert) instead of 8 (Easy, Fair, Normal, Tough, Hard, VeryHard, Expert and Elite)
=
=  No injustices:
=
=  Bots from a same level have the same skill;
=  Bots can`t know your exact position.
=
=  Skills are sequential:
=
=  Easy  : 25 | Normal: 50 | Hard: 75 | Expert: 100
=
=  Attack delays are sequential:
=
=  Easy  : 1.2 | Normal: 0.6 | Hard: 0.3 | Expert: 0.15
=
=  Changelog
=
=  Dec 22, 2020 - v1.0     -  Initial release
=
=  Aug 05, 2021 - v2.0     -  Optimized code + Added features
=
=      [ ADDED ]           -  Cvar for custom recoil
=      [ ADDED ]           -  Shotgun pellets accuracy control
=      [ ADDED ]           -  Cvar for custom shotgun pellets accuracy
=      [ ADDED ]           -  Customizable crosshair: No Crosshair, Static and Accurate ( Standard + Static )
=      [ ADDED ]           -  Cvar for custom crosshairs
=      [ ADDED ]           -  Snipers crosshair ( static crosshair )
=      [ ADDED ]           -  Cvar for snipers crosshair
=      [ ADDED ]           -  Command to display crosshair modes in console
=
=  [ OPTIMIZED ]           -  Realism function code reduced and ultra optimized for bullet processing performance
=  [ OPTIMIZED ]           -  Now the realism function works even if the targets are behind walls and objects
=  [ OPTIMIZED ]           -  Realism function now works only when you shoot keeping your gameplay more lighter
=
=  [ UNALTERED ]           -  Recoil stills the same as v1.0 ( 0.237 ) as already the best approximation for realism.
=
=
=  Aug 11, 2021 - v2.1     -  Optimized code + Added features + Removed commands
=
=  [ OPTIMIZED ]           -  You can now enable/disable standard and static crosshairs with proper cvars.
=  [ OPTIMIZED ]           -  Now you can use the snipers crosshair independent that static crosshair is disabled on other weapons.
=
=    [ REMOVED ]           -  command to show crosshair modes.
=    [ REMOVED ]           -  cvar to set crosshair modes.
=
=      [ ADDED ]           -  cvar for standard crosshair.
=      [ ADDED ]           -  cvar for static crosshair.
=
=
=  Aug 30, 2021 - v2.2     -  Code optimized + Updated txt file + BotProfile updated to Hitman Edition.
=
=  [ OPTIMIZED ]           -  Realism function code reduced.
=     [ UNDONE ]           -  Shotgun pellets now are better represented in "Advanced Weapon Tracers" plugin even if shooting entities.
=  [ OPTIMIZED ]           -  Now bots have from 25 ( Easy ) to 100 ( Expert ) sequential skills with a more agitated behavior.
=
=      [ ADDED ]           -  Custom static crosshair tutorial.
=
=
=  Sep 02, 2021 - v2.2.1   -  Now compatible with latest Amx Mod X versions.
=
=  Sep 03, 2021 - v2.2.2   -  Code optimized + Shotgun precision works even with entities ( breakable objects , doors etc. ).
=
=  Sep 25, 2021 - v2.2.3   -  Code optimized + Added crosshair options for spectator mode + BotProfile updated.
=
=      [ ADDED ]           -  cvar for standard crosshair on spectator mode.
=      [ ADDED ]           -  cvar for static crosshair on spectator mode.
=      [ ADDED ]           -  cvar for snipers crosshair on spectator mode.
=
=  Sep 27, 2021 - v2.2.4   -  Changed "observer" to "static" crosshair and "normal" to "standard" crosshair for better understanding.
=
=  Oct 04, 2021 - v2.2.5   -  Code optimized + optimized shotgun system for long ranges + BotProfile updated.
=
=  Commands
=
=  aim__realism            -  Activates the realism. Default value: 1 ( on )
=  aim__shotguns_accuracy  -  Controls the accuracy of shotgun pellets. Default value: 2020 ( realistic )
=  aim__recoil             -  Global weapon recoil. Default value: 0.237 ( realistic )
=
=  aim__standard_crosshair -  Allows the standard crosshair to be displayed. Default value: 1 ( Allowed )
=  aim__static_crosshair   -  Allows the static crosshair to be displayed. Default value: 1 ( Allowed )
=  aim__snipers_crosshair  -  Allows the static crosshair to be displayed while holding sniper rifles. Default value: 1 ( Allowed )
=
=  aim_spec_standard_cross -  Allows the standard crosshair on spectator mode. Default value: 1 ( Allowed )
=  aim_spec_static_cross   -  Allows the static crosshair on spectator mode. Default value: 1 ( Allowed )
=  aim_spec_snipers_cross  -  Allows the snipers crosshair on spectator mode. Default value: 1 ( Allowed )
=
=  Note: Static crosshair is the observer crosshair, so keep the observer crosshair enabled in your game options section.
=
=  Plugin File Info
=
=  Lines: 266              -  Code: 129
=  Size : 11,8 KB          -  Code: 4,80 KB
=
===========================================================================================================================================
*/

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

#define MAX_CLIENTS   32
#define WEAPON        get_user_weapon
#define SHOTGUN     ( WEAPON ( id ) == CSW_M3 || WEAPON ( id ) == CSW_XM1014 )
#define num           get_pcvar_num
#define ALIVE         is_user_alive

#define HUD_HIDE_MONEY (1<<5)

new   g_pcvar_a_realism
	, g_pcvar_a_shotguns_accuracy
	, g_pcvar_a_recoil
	, g_pcvar_a_cross_snipers
	, g_pcvar_a_standard_cross
	, g_pcvar_a_static_cross
	, g_pcvar_a_standard_cross_spec
	, g_pcvar_a_static_cross_spec
	, g_pcvar_a_snipers_cross_spec
	, target , body , bool: FLASHED
	, bool: ON_SCOPE [ MAX_CLIENTS + 1 ]

public plugin_init ( )
{
	register_plugin                               ( "Aim Realism"                 , "2.2.5"     , "WATCH_DOGS UNITED" )
	g_pcvar_a_realism             = register_cvar ( "aim__realism"                ,     "1"                           )
	g_pcvar_a_shotguns_accuracy   = register_cvar ( "aim__shotguns_accuracy"      ,  "2020"                           )
	g_pcvar_a_recoil              = register_cvar ( "aim__recoil"                 ,     "0.237"                       )
	g_pcvar_a_standard_cross      = register_cvar ( "aim__standard_crosshair"     ,     "1"                           )
	g_pcvar_a_static_cross        = register_cvar ( "aim__static_crosshair"       ,     "1"                           )
	g_pcvar_a_cross_snipers       = register_cvar ( "aim__snipers_crosshair"      ,     "1"                           )
	g_pcvar_a_standard_cross_spec = register_cvar ( "aim_standard_cross_spec"     ,     "1"                           )
	g_pcvar_a_static_cross_spec   = register_cvar ( "aim_static_cross_spec"       ,     "1"                           )
	g_pcvar_a_snipers_cross_spec  = register_cvar ( "aim_snipers_cross_spec"      ,     "1"                           )
	register_forward                              ( FM_TraceLine , "fwTraceLine"  ,      1                            )
	register_event                                ( "SetFOV"     , "Event_SetFOV" ,     "b"                           )
	register_event                                ( "CurWeapon"  , "Cross_Mode"   ,     "b"     , "1=1"               )

	register_message(get_user_msgid("HideWeapon"), "msg_hideweapon")
	
	static szWeaponName [ 32 ] , NOSHOT_BITSUM = ( 1<<CSW_KNIFE ) | ( 1<<CSW_HEGRENADE ) | ( 1<<CSW_FLASHBANG ) | ( 1<<CSW_SMOKEGRENADE )
	for ( new iId = CSW_P228; iId <= CSW_P90; iId++ )
	{
		if ( ~NOSHOT_BITSUM & 1<<iId && get_weaponname ( iId , szWeaponName , charsmax ( szWeaponName ) ) )
			RegisterHam ( Ham_Weapon_PrimaryAttack , szWeaponName , "Recoil_Control" , 1 )
	}
}

public msg_hideweapon()
	set_msg_arg_int(1, ARG_BYTE, get_msg_arg_int(1) | HUD_HIDE_MONEY)

public grenade_throw ( id , grenadeIndex , weaponId )
{
	if ( num ( g_pcvar_a_realism ) && weaponId == CSW_FLASHBANG )
	{
		set_task ( 1.5 , "Generic_Flashed" )
		set_task ( 1.7 , "Generic_No_Flashed" )
	}
}

public Generic_Flashed ( )

	FLASHED = true

public Generic_No_Flashed ( )

	FLASHED = false

public fwTraceLine ( const Float: start [ 3 ] , Float: dest [ 3 ] , HITZONE , id , ptr )
{
	if ( !num    ( g_pcvar_a_realism )
	||   !ALIVE  ( id )
	||    HITZONE       != DONT_IGNORE_MONSTERS
	||    WEAPON ( id ) == CSW_KNIFE )
	return

	static button; button = pev ( id , pev_button )

	if ( button && IN_ATTACK && FLASHED != true )
	{
		if ( !SHOTGUN )
		{
			velocity_by_aim ( id , 9999 , dest )
			xs_vec_add ( start , dest , dest )
		}

		if ( SHOTGUN && get_user_aiming ( id , target , body , 2000 ) && target )
		{
			velocity_by_aim ( id , num ( g_pcvar_a_shotguns_accuracy ) , dest )
			xs_vec_add ( start , dest , dest )
		}

		engfunc ( EngFunc_TraceLine , start , dest , HITZONE , id , ptr )
	}
}

public Recoil_Control ( ent , Float: push [ 3 ] )
{
	if ( num ( g_pcvar_a_realism ) )
	{
		new id = pev ( ent , pev_owner )
		pev ( id , pev_punchangle , push )
		xs_vec_mul_scalar ( push , get_pcvar_float ( g_pcvar_a_recoil ) , push )
		set_pev ( id , pev_punchangle , push )
	}
}

public Event_SetFOV ( id )

	ON_SCOPE [ id ] = ( read_data ( 1 ) < 55 )

public Cross_Mode ( id )
{	
	if ( !ON_SCOPE [ id ] )
	{
		new SNIPER = WEAPON ( id ) == CSW_AWP
				  || WEAPON ( id ) == CSW_SCOUT
				  || WEAPON ( id ) == CSW_G3SG1
				  || WEAPON ( id ) == CSW_SG550 , CM = 64

		if ( num ( g_pcvar_a_standard_cross      ) &&  ALIVE ( id )
		||   num ( g_pcvar_a_standard_cross_spec ) && !ALIVE ( id ) )
			 CM =  0

		message_begin(MSG_ONE, get_user_msgid("HideWeapon"), _, id)
		write_byte(HUD_HIDE_MONEY)
		message_end();

		if ( ALIVE ( id ) && num ( g_pcvar_a_static_cross       ) && !SNIPER
		||   ALIVE ( id ) && num ( g_pcvar_a_cross_snipers      ) &&  SNIPER
		||  !ALIVE ( id ) && num ( g_pcvar_a_static_cross_spec  ) && !SNIPER
		||  !ALIVE ( id ) && num ( g_pcvar_a_snipers_cross_spec ) &&  SNIPER ) {
			 message_begin ( MSG_ONE_UNRELIABLE , get_user_msgid ( "Crosshair" ) , { 0 , 0 , 0 } , id ); write_byte ( 1 ); message_end
		}
	}
}
Благодаря ти много перфектно стана.. :hooray: :lock:
Изображение

Заключено
  • Подобни теми
    Отговори
    Преглеждания
     Последно мнение

Обратно към “Заявки за плъгини”

Кой е на линия

Потребители разглеждащи този форум: 0 регистрирани и 3 госта