Raised This Month: $ Target: $400
 0% 

lol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BodyBuilder
BANNED
Join Date: Jun 2011
Location: Europa-USA-Moon
Old 01-18-2013 , 15:20   lol
Reply With Quote #1

lol

Last edited by BodyBuilder; 01-21-2013 at 02:47.
BodyBuilder is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-18-2013 , 20:08   Re: what's wrong ?
Reply With Quote #2

Are you sure it is detecting the sound? Have you tried putting a print statement inside the IF to see if it even gets in there?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
Old 01-19-2013, 01:58
BodyBuilder
This message has been deleted by BodyBuilder.
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-19-2013 , 02:21   Re: what's wrong ?
Reply With Quote #3

Quote:
Originally Posted by BodyBuilder View Post
how detecting the sound?
He is asking if your code is even detecting any sounds. You have to answer that question first.
__________________
fysiks is offline
Old 01-19-2013, 03:56
BodyBuilder
This message has been deleted by BodyBuilder.
NiHiLaNTh
Way Past Expiration
Join Date: May 2009
Location: Latvia
Old 01-19-2013 , 04:00   Re: what's wrong ?
Reply With Quote #4

I dont think that Longjump sound is even being played by EmitSound.
__________________


Last edited by NiHiLaNTh; 01-19-2013 at 04:00.
NiHiLaNTh is offline
Send a message via Skype™ to NiHiLaNTh
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2013 , 04:15   Re: what's wrong ?
Reply With Quote #5

Try :

PHP Code:
if( equal(sample"fvox/blip blip(p130) powermove_on") ) 
or

PHP Code:
if( contain(sample"powermove_on") != -
If it is not working, it means that "!SOME_NUMBER" is passed, just print to yourself what is passed to emitSound when you pickup a longjump.
In that case, try :
PHP Code:
#include <amxmodx>
#include <fakemeta>

#define PLUGIN "LongJump Pickup Sound Block"
#define VERSION "0.0.1"

new g_fwEmitSoundLj

public plugin_init()
{
    
register_pluginPLUGINVERSION"ConnorMcLeod" )

    
register_event("ItemPickup""Event_ItemPickup_LongJump""b""1=item_longjump")
}

public 
Event_ItemPickup_LongJump()
{
    
g_fwEmitSoundLj register_forward(FM_EmitSound"EmitSound_HEV_A1")
}

public 
EmitSound_HEV_A1()
{
    
unregister_forward(FM_EmitSoundg_fwEmitSoundLj)
    return 
FMRES_SUPERCEDE

__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-19-2013 at 04:26.
ConnorMcLeod is offline
Old 01-19-2013, 05:40
BodyBuilder
This message has been deleted by BodyBuilder.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-19-2013 , 06:07   Re: what's wrong ?
Reply With Quote #6

What is working ??
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Old 01-19-2013, 07:48
BodyBuilder
This message has been deleted by BodyBuilder.
Reply


Thread Tools
Display Modes

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 13:43.


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