| jonny1990 |
05-17-2020 07:00 |
to remove Fire in the hole
PHP Code:
public plugin_init() { register_plugin("are you trying to get free?", "why?", "you're going to die anyway"); // RG_CBasePlayer_ThrowGrenade?! NO))) RegisterHookChain(RG_ThrowFlashbang, "refwd_ThrowFlashbang_Post", .post = true); RegisterHookChain(RG_ThrowHeGrenade, "refwd_ThrowHeGrenade_Post", .post = true); RegisterHookChain(RG_ThrowSmokeGrenade, "refwd_ThrowSmokeGrenade_Post", .post = true); }
public refwd_ThrowFlashbang_Post(pPlayer, Float:vecSrc[3], Float:vecVelocity[3], Float:fTime) { func_PlaySound(pPlayer, g_szFlashSounds[random(g_iMaxSndFlash)]); }
public refwd_ThrowHeGrenade_Post(pPlayer, Float:vecSrc[3], Float:vecVelocity[3], Float:fTime, team, usEvent) { func_PlaySound(pPlayer, g_szHegrenSounds[random(g_iMaxSndHe)]); }
public refwd_ThrowSmokeGrenade_Post(pPlayer, Float:vecSrc[3], Float:vecVelocity[3], Float:time, usEvent) { func_PlaySound(pPlayer, g_szSmokeSounds[random(g_iMaxSndSmoke)]); }
func_PlaySound(pPlayer, szSound[]) { new iPlayers[32], iNum; get_players(iPlayers, iNum, "ceh", (TeamName:get_member(pPlayer, m_iTeam) == TEAM_CT) ? "CT" : "TERRORIST");
for(new i; i < iNum; i++) { rh_emit_sound2(pPlayer, iPlayers[i], CHAN_AUTO, szSound, .vol = 0.5, .attn = 0.6); } }
|