Raised This Month: $12 Target: $400
 3% 

Whats Wrong? :D


Post New Thread Reply   
 
Thread Tools Display Modes
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:39   Re: Whats Wrong? :D
Reply With Quote #11

Quote:
Originally Posted by enjoi. View Post
PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /fart""Fart")
    
register_clcmd("say_team /fart""Fart")
}

public 
plugin_precache()
{
    
precache_sound("farts/fart1.wav")
    
precache_sound("farts/fart2.wav")

    return 
PLUGIN_CONTINUE
}

public 
Fart( )
{
    switch( 
random_num0) )
    {
        case 
0
        {
            
client_cmd(0,"spk farts/fart1")
        }
        case 
1:
        {
            
client_cmd(0,"spk farts/fart2")
        }
    }

Make sure you have all the sounds enabled.
If doesnt work try this

PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Fart"
#define VERSION "1.0"
#define AUTHOR "mix97mix"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)

    
register_clcmd("say /fart""Fart")
    
register_clcmd("say_team /fart""Fart")
}

public 
plugin_precache()
{
    
precache_sound("sound/farts/fart1.wav")
    
precache_sound("sound/farts/fart2.wav")

    return 
PLUGIN_CONTINUE
}

public 
Fart( )
{
    switch( 
random_num0) )
    {
        case 
0
        {
            
client_cmd(0,"spk farts/fart1")
        }
        case 
1:
        {
            
client_cmd(0,"spk farts/fart2")
        }
    }

I can't see a difference between the two codes can you tell me what is the difference ?
MyPc is offline
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-08-2011 , 15:40   Re: Whats Wrong? :D
Reply With Quote #12

PHP Code:
precache_sound("farts/fart1.wav"
PHP Code:
precache_sound("sound/farts/fart1.wav"
just throwing out things.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:41   Re: Whats Wrong? :D
Reply With Quote #13

Quote:
Originally Posted by enjoi. View Post
PHP Code:
precache_sound("farts/fart1.wav"
PHP Code:
precache_sound("sound/farts/fart1.wav"
just throwing out things.
PHP Code:
precache_sound 
Is for .wav files, as i know its default directory is cstrike/sound/
MyPc is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-08-2011 , 15:45   Re: Whats Wrong? :D
Reply With Quote #14

I don't know maybe you can use other not only .wav maybe .mp3 too.
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
mix97mix
Member
Join Date: Sep 2011
Old 10-08-2011 , 15:45   Re: Whats Wrong? :D
Reply With Quote #15

thanks guys for trying to help but aint working
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:47   Re: Whats Wrong? :D
Reply With Quote #16

Quote:
Originally Posted by MyPc View Post
Were the files precached succesfully ?
If they were try typing in the console :
Code:
"spk farts/fart1"
If it doesn't work, try
Code:
"MP3Volume 5"
..
Quote:
Originally Posted by mix97mix View Post
thanks guys for trying to help but aint working
Did you try this ? ^_^ ? if you did what was the result ?
MyPc is offline
Evaldas.Grigas
Senior Member
Join Date: Sep 2011
Location: Lithuania
Old 10-08-2011 , 15:47   Re: Whats Wrong? :D
Reply With Quote #17

Maybe you don't have sounds?
Evaldas.Grigas is offline
Send a message via Skype™ to Evaldas.Grigas
MyPc
Senior Member
Join Date: Sep 2011
Old 10-08-2011 , 15:50   Re: Whats Wrong? :D
Reply With Quote #18

Quote:
Originally Posted by Evaldas.Grigas View Post
Maybe you don't have sounds?
Already asked :
Quote:
Were the files precached succesfully ?
...
MyPc is offline
mix97mix
Member
Join Date: Sep 2011
Old 10-08-2011 , 16:26   Re: Whats Wrong? :D
Reply With Quote #19

yes have everything all is precached but not working..
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
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 18:52.


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