Raised This Month: $ Target: $400
 0% 

to remove Fire in the hole


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
jonny1990
Senior Member
Join Date: Apr 2020
Old 05-17-2020 , 07:00   to remove Fire in the hole
Reply With Quote #1

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(pPlayerFloat:vecSrc[3], Float:vecVelocity[3], Float:fTime) {
    
func_PlaySound(pPlayerg_szFlashSounds[random(g_iMaxSndFlash)]);
}

public 
refwd_ThrowHeGrenade_Post(pPlayerFloat:vecSrc[3], Float:vecVelocity[3], Float:fTimeteamusEvent) {
    
func_PlaySound(pPlayerg_szHegrenSounds[random(g_iMaxSndHe)]);
}

public 
refwd_ThrowSmokeGrenade_Post(pPlayerFloat:vecSrc[3], Float:vecVelocity[3], Float:timeusEvent) {
    
func_PlaySound(pPlayerg_szSmokeSounds[random(g_iMaxSndSmoke)]);
}

func_PlaySound(pPlayerszSound[]) {
    new 
iPlayers[32], iNum;
    
get_players(iPlayersiNum"ceh", (TeamName:get_member(pPlayerm_iTeam) == TEAM_CT) ? "CT" "TERRORIST");

    for(new 
iiNumi++) {
        
rh_emit_sound2(pPlayeriPlayers[i], CHAN_AUTOszSound, .vol 0.5, .attn 0.6);
    }


Last edited by Bugsy; 05-17-2020 at 12:12.
jonny1990 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:49.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode