AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Whats wrong here ? (https://forums.alliedmods.net/showthread.php?t=169157)

mix97mix 10-09-2011 10:44

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
}

Stereo 10-09-2011 10:47

Re: Whats wrong here ?
 
Add tags [PHP]

mix97mix 10-09-2011 10:52

Re: Whats wrong here ?
 
Quote:

Originally Posted by mix97mix (Post 1571491)
#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
}


Bugsy 10-09-2011 10:53

Re: Whats wrong here ?
 
also, tell us problem and use random( 2 ) instead of random_num.

MyPc 10-09-2011 10:57

Re: Whats wrong here ?
 
Quote:

Originally Posted by Bugsy (Post 1571499)
also, tell us problem and use random( 2 ) instead of random_num.

Can you explain why ?

mix97mix 10-09-2011 11:00

Re: Whats wrong here ?
 
guys better help me from here pls ;)

https://forums.alliedmods.net/showthread.php?t=169150

enjoi. 10-09-2011 11:37

Re: Whats wrong here ?
 
php please
http://forums.alliedmods.net/showthread.php?t=169067

MiloSx7 10-09-2011 11:42

Re: Whats wrong here ?
 
Quote:

Originally Posted by mix97mix
#define AUTHOR "mix97mix"

Retarded kid -.-

enjoi. 10-09-2011 11:46

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.