Raised This Month: $ Target: $400
 0% 

to remove Fire in the hole


Post New Thread Reply   
 
Thread Tools Display Modes
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
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-17-2020 , 12:15   Re: to remove Fire in the hole
Reply With Quote #2

If you want help with your code, include what exactly doesn't work so people can help you better. Also, wrap your code in php tags.

Try this:
http://forums.alliedmods.net/showthread.php?p=466271
__________________

Last edited by Bugsy; 05-17-2020 at 12:16.
Bugsy is offline
jonny1990
Senior Member
Join Date: Apr 2020
Old 05-17-2020 , 17:12   Re: to remove Fire in the hole
Reply With Quote #3

Quote:
Originally Posted by Bugsy View Post
If you want help with your code, include what exactly doesn't work so people can help you better. Also, wrap your code in php tags.

Try this:
http://forums.alliedmods.net/showthread.php?p=466271
great, but you can help with this please

https://forums.alliedmods.net/showthread.php?t=324433
jonny1990 is offline
Reply



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