|
Senior Member
|
10-08-2011
, 15:39
Re: Whats Wrong? :D
|
#11
|
Quote:
Originally Posted by enjoi.
PHP Code:
#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("farts/fart1.wav") precache_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") } } }
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(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") } } }
|
I can't see a difference between the two codes can you tell me what is the difference ?
|
|
|
|