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

Whats wrong here ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
mix97mix
Member
Join Date: Sep 2011
Old 10-09-2011 , 10:44   Whats wrong here ?
Reply With Quote #1

#include <amxmodx>
#include <amxmisc>

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

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

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_num( 0, 1 ) )
{
case 0:
{
client_cmd(0,"spk farts/fart1")
}
case 1:
{
client_cmd(0,"spk farts/fart2")
}

return PLUGIN_HANDLED
}

Last edited by mix97mix; 10-09-2011 at 10:51.
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
Stereo
Veteran Member
Join Date: Dec 2010
Old 10-09-2011 , 10:47   Re: Whats wrong here ?
Reply With Quote #2

Add tags [PHP]
Stereo is offline
mix97mix
Member
Join Date: Sep 2011
Old 10-09-2011 , 10:52   Re: Whats wrong here ?
Reply With Quote #3

Quote:
Originally Posted by mix97mix View Post
#include <amxmodx>
#include <amxmisc>

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

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)

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_num( 0, 1 ) )
{
case 0:
{
client_cmd(0,"spk farts/fart1")
}
case 1:
{
client_cmd(0,"spk farts/fart2")
}

return PLUGIN_HANDLED
}
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-09-2011 , 10:53   Re: Whats wrong here ?
Reply With Quote #4

also, tell us problem and use random( 2 ) instead of random_num.
__________________
Bugsy is offline
MyPc
Senior Member
Join Date: Sep 2011
Old 10-09-2011 , 10:57   Re: Whats wrong here ?
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
also, tell us problem and use random( 2 ) instead of random_num.
Can you explain why ?
MyPc is offline
mix97mix
Member
Join Date: Sep 2011
Old 10-09-2011 , 11:00   Re: Whats wrong here ?
Reply With Quote #6

guys better help me from here pls ;)

https://forums.alliedmods.net/showthread.php?t=169150
mix97mix is offline
Send a message via MSN to mix97mix Send a message via Skype™ to mix97mix
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-09-2011 , 11:37   Re: Whats wrong here ?
Reply With Quote #7

php please
http://forums.alliedmods.net/showthread.php?t=169067
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
MiloSx7
Member
Join Date: Oct 2011
Location: Serbia, Nish
Old 10-09-2011 , 11:42   Re: Whats wrong here ?
Reply With Quote #8

Quote:
Originally Posted by mix97mix
#define AUTHOR "mix97mix"
Retarded kid -.-
__________________
MiloS
MiloSx7 is offline
Send a message via MSN to MiloSx7
enjoi.
Veteran Member
Join Date: Mar 2011
Old 10-09-2011 , 11:46   Re: Whats wrong here ?
Reply With Quote #9

I know. I really don't know why he isnt banned.
__________________
Block Maker v6.0 []
Point Slay v3.0 []
Contact [ PM ]
enjoi. is offline
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 15:45.


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