Counter-Strike 1.6
HH-GaminG.EU #GunGame
91.134.123.43:27015
gg_aztec_vs_dust
Играчи: 9/28
gg_aztec_vs_dust
Counter-Strike 1.6
[BG] GODLIKE # Dust2 / Classic + VIP 45.144.155.164:27015 de_dust2 Играчи: 11/32
Counter-Strike 1.6
CS1.BG | DUST2 NOSHTA GARMI [RANKED PLAY] 45.144.155.113:27015 de_dust2 Играчи: 0/31
Counter-Strike 1.6
Cs-PlovdiV.com - Aim Attack 93.123.16.4:27022 fy_snow Играчи: 4/16
Counter-Strike 1.6
VIP
45.144.155.171:27015 ★ [ZM]ImperialCS Zombie Plague Mega|Fast SaveAP Jetpack+GoldenAK zm_ice_attack5 12/32

Double Damage

В този раздел можете да подавате всякакви заявки за намиране, изработка или преработка на плъгини/модове.
Аватар
L.O.F.I
Извън линия
Foreigner
Foreigner
Мнения: 36
Регистриран на: 03 Фев 2020, 19:01
Местоположение: Algeria
Се отблагодари: 2 пъти
Обратна връзка:

Double Damage

Мнение от L.O.F.I » 18 Юни 2020, 01:40

Hey !

i want a plugin that can double damage on a weapon or give me an example how to double damage on any weapon or knife.

can anyone help me ? :huh: :lock:
𝕊𝕖𝕣𝕧𝕖𝕣 𝕄𝕠𝕕 : 𝔽𝕌ℝ𝕀𝔼ℕ ℂ𝕝𝕒𝕤𝕤𝕚𝕔
ℂ.𝔼.𝕆 : 𝕐𝕦𝕤𝕠ℂ𝕙𝕒𝕟-
𝕀ℙ : 𝟡𝟛.𝟙𝟙𝟝.𝟝𝟛.𝟙𝟞𝟠:𝟚𝟟𝟘𝟙𝟟

Аватар
OciXCrom
Извън линия
Администратор
Администратор
Мнения: 7206
Регистриран на: 06 Окт 2016, 19:20
Местоположение: /resetscore
Се отблагодари: 117 пъти
Получена благодарност: 1309 пъти
Обратна връзка:

Double Damage

Мнение от OciXCrom » 18 Юни 2020, 21:29

Example for AWP:

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

#include <amxmodx>

public plugin_init()
{
	register_plugin("MyPlugin", "1.0", "OciXCrom")
	RegisterHam(Ham_TakeDamage, "player", "PreTakeDamage", 0)
}

public PreTakeDamage(iVictim, iInflictor, iAttacker, Float:fDamage, iDamageBits)
{
	if(iAttacker == iInflictor)
	{
		if(get_user_weapon(iAttacker) == CSW_AWP)
		{
			SetHamParamFloat(4, fDamage * 2)
		}
	}
}

Аватар
atmax
Извън линия
Потребител
Потребител
Мнения: 492
Регистриран на: 22 Мар 2018, 15:06
Се отблагодари: 37 пъти
Получена благодарност: 43 пъти

Double Damage

Мнение от atmax » 18 Юни 2020, 21:35

Then just replace CSW_AWP in these lines:

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

		if(get_user_weapon(iAttacker) == CSW_AWP)
		{
			SetHamParamFloat(4, fDamage * 2)
		}
With other weapons. Here is the list:

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

CSW_P228           1          give_item(id,"ammo_357sig")       give_item(id, "weapon_p228")  CLIP SIZE/BP SIZE: 13/52
==================================================================================================================================
CSW_SCOUT          3          give_item(id,"ammo_762nato")      give_item(id, "weapon_scout")  CLIP SIZE/BP SIZE: 10/90
==================================================================================================================================
CSW_XM1014         5          give_item(id,"weapon_buckshot")     give_item(id, "weapon_xm1014")  CLIP SIZE/BP SIZE: 7/32
==================================================================================================================================
CSW_MAC10          7          give_item(id,"ammo_45acp")        give_item(id, "weapon_mac10")  CLIP SIZE/BP SIZE: 30/100
==================================================================================================================================
CSW_AUG            8          give_item(id,"ammo_556nato")      give_item(id, "weapon_aug")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_ELITE          10         give_item(id,"ammo_9mm")          give_item(id, "weapon_elite")  CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_FIVESEVEN      11         give_item(id,"ammo_57mm")         give_item(id, "weapon_fiveseven") CLIP SIZE/BP SIZE: 20/100
==================================================================================================================================
CSW_UMP45          12         give_item(id,"ammo_45acp")        give_item(id, "weapon_ump45")  CLIP SIZE/BP SIZE: 25/100
==================================================================================================================================
CSW_SG550          13         give_item(id,"ammo_556nato")      give_item(id, "weapon_sg550")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_GALI           14         give_item(id,"ammo_556nato")      give_item(id, "weapon_gali")  CLIP SIZE/BP SIZE: 35/90
==================================================================================================================================
CSW_FAMAS          15         give_item(id,"ammo_556nato")      give_item(id, "weapon_famas")  CLIP SIZE/BP SIZE: 25/90
==================================================================================================================================
CSW_USP            16         give_item(id,"ammo_45acp")        give_item(id, "weapon_usp")  CLIP SIZE/BP SIZE: 12/100
==================================================================================================================================
CSW_GLOCK18        17         give_item(id,"ammo_9mm")          give_item(id, "weapon_glock18")  CLIP SIZE/BP SIZE: 20/120 
==================================================================================================================================
CSW_AWP            18         give_item(id,"ammo_338magnum")    give_item(id, "weapon_awp")  CLIP SIZE/BP SIZE: 10/30
==================================================================================================================================
CSW_MP5NAVY        19         give_item(id,"ammo_9mm")          give_item(id, "weapon_mp5navy")  CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_M249           20         give_item(id,"ammo_556nato")      give_item(id, "weapon_m249")  CLIP SIZE/BP SIZE: 100/200
==================================================================================================================================
CSW_M3             21         give_item(id,"weapon_m3")         give_item(id, "ammo_buckshot")  CLIP SIZE/BP SIZE: 8/32
==================================================================================================================================
CSW_M4A1           22         give_item(id,"ammo_556nato")      give_item(id, "weapon_m4a1")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_TMP            23         give_item(id,"ammo_9mm")          give_item(id, "weapon_tmp")  CLIP SIZE/BP SIZE: 30/120
==================================================================================================================================
CSW_G3SG1          24         give_item(id,"ammo_762nato")      give_item(id, "weapon_g3sg1")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_DEAGLE         26         give_item(id,"ammo_50ae")         give_item(id, "weapon_deagle")  CLIP SIZE/BP SIZE: 7/35
==================================================================================================================================
CSW_SG552          27         give_item(id,"ammo_556nato")      give_item(id, "weapon_sg552")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_AK47           28         give_item(id,"ammo_762nato")      give_item(id, "weapon_ak47")  CLIP SIZE/BP SIZE: 30/90
==================================================================================================================================
CSW_P90            30         give_item(id,"ammo_57mm")         give_item(id, "weapon_p90")  CLIP SIZE/BP SIZE: 50/100
==================================================================================================================================
Rest in peace my friend I always will remember you! 🖤👊

Аватар
L.O.F.I
Извън линия
Foreigner
Foreigner
Мнения: 36
Регистриран на: 03 Фев 2020, 19:01
Местоположение: Algeria
Се отблагодари: 2 пъти
Обратна връзка:

Double Damage

Мнение от L.O.F.I » 20 Юни 2020, 02:45

ty so much dude <3
𝕊𝕖𝕣𝕧𝕖𝕣 𝕄𝕠𝕕 : 𝔽𝕌ℝ𝕀𝔼ℕ ℂ𝕝𝕒𝕤𝕤𝕚𝕔
ℂ.𝔼.𝕆 : 𝕐𝕦𝕤𝕠ℂ𝕙𝕒𝕟-
𝕀ℙ : 𝟡𝟛.𝟙𝟙𝟝.𝟝𝟛.𝟙𝟞𝟠:𝟚𝟟𝟘𝟙𝟟

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

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

Кой е на линия

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