View Single Post
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