Whats wrong here ?
#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 } |
Re: Whats wrong here ?
Add tags [PHP]
|
Re: Whats wrong here ?
Quote:
|
Re: Whats wrong here ?
also, tell us problem and use random( 2 ) instead of random_num.
|
Re: Whats wrong here ?
Quote:
|
Re: Whats wrong here ?
|
Re: Whats wrong here ?
|
Re: Whats wrong here ?
Quote:
|
Re: Whats wrong here ?
I know. I really don't know why he isnt banned.
|
All times are GMT -4. The time now is 03:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.