View Full Version : stats.sma
Hi guys
Iam trying to modify that stats code that comes with the basic amx mod. I want to add more sounds to a knife kill. Atm the line that calls the humiliation sound looks like this:
if ( KnifeKillSound ) client_cmd(0,"spk misc/humiliation") //Line 690 Amxmodx version 1.76d
Well its quite simple to "switch" the sound but how do i add more of them so it will play a random sound? I have 3 sounds i want to add for now.
This plugin looks a bit complex tho, but i hope its possible with a "easy" fix. Plz help..
Thx in advance....
diamond-optic
02-07-2008, 01:43 PM
could try:
if ( KnifeKillSound )
{
switch(random_num(1,3))
{
case 1: client_cmd(0,"spk misc/humiliation")
case 2: client_cmd(0,"spk misc/new_sound01")
case 3: client_cmd(0,"spk misc/new_sound02")
}
}
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(257) : error 017: undefined symbol "displayStats_steam"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(267) : error 017: undefined symbol "getTop15_steam"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(274) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(278) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(359) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(393) : error 017: undefined symbol "displayRank_steam"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(396) : error 017: undefined symbol "displayStats_steam"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(434) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(458) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(466) : error 017: undefined symbol "isDSMActive"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(699) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(721) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(767) : warning 217: loose indentation
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(767) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(767) : error 017: undefined symbol "showDoubleKill"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(770) : warning 209: function "client_death" should return a value
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(791) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(791) : error 017: undefined symbol "checkKills"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(792) : error 017: undefined symbol "param"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(792) : warning 215: expression has no effect
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(792) : error 001: expected token: ";", but found "]"
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(792) : error 029: invalid expression, assumed zero
/home/groups/amxmodx/tmp3/phpb09Ar2.sma(792) : fatal error 107: too many error messages on one line
Compilation aborted.
18 Errors.
Guess that plugin is to complex to do it that way. Thx anyway D-O
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.