May 162013
Код: fl0wer
Описание:
При выстреле в руку противника, с небольшой вероятностью принудительно делается несколько выстрелов.
#include <amxmodx> #include <hamsandwich> #include <fakemeta> public plugin_init() RegisterHam(Ham_TakeDamage, "player", "CBasePlayer__TakeDamage_Post", 1) public CBasePlayer__TakeDamage_Post(iVictim, iInflicator, iAttacker) { if (!is_user_alive(iVictim) || iVictim == iAttacker) return; new m_LastHitGroup = get_pdata_int(iVictim, 75, 5); if (m_LastHitGroup != HIT_LEFTARM || m_LastHitGroup != HIT_RIGHTARM) return; if (random_num(0, 3)) return; new iRandom = random_num(1, 5); for (new i = 0; i <= iRandom; i++) ExecuteHamB(Ham_Weapon_PrimaryAttack, get_pdata_cbase(iVictim, 373, 5)) }
Sorry, the comment form is closed at this time.