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

Whats wrong here ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 01:47.


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