|
Member
|

02-03-2007
, 19:18
Re: Advanced Roll The Dice - (Last Update: 05/01/2006)
|
#325
|
anyone know why this isnt playing sound, it's entered like every other sound and precached:
here are the lines:
Code:
// WIN HEALTH
else if (Roll2 == 4)
{
if (get_prize_flags(PRIZE_GOOD)&GOOD_PRIZE_WINHEALTH)
{
if(get_cvar_num("amx_dice_debug") != 0)
log_amx("DEBUG (Advanced Roll the Dice): Roll=[1], Roll2=[%d] <%s>",Roll2, User);
new current_health = get_user_health(id);
new new_health = current_health+200;
if (new_health > 255)
set_user_health(id,255);
else
set_user_health(id,new_health);
client_print(0,print_chat, "[AMXX] <Dice Dealer> %s has powered up to %d health!!!", User, get_user_health(id));
set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1);
show_hudmessage(0,"%s has powered up to %d health.",User, get_user_health(id));
client_cmd(0,"spk misc/ioripowerup.wav");
set_task(GAMBLING_DELAY_TIME,"delay_gambling");
}
else
{
bIsGambling = false;
Roll2++;
good_prizes(id,Roll2);
return PLUGIN_HANDLED;
}
}
Code:
// WIN 50 CRABS
else if (Roll2 == 10)
{
if (get_prize_flags(PRIZE_BAD)&BAD_PRIZE_WINCRABS)
{
if(get_cvar_num("amx_dice_debug") != 0)
log_amx("DEBUG (Advanced Roll the Dice): Roll=[0], Roll2=[%d] <%s>",Roll2, User);
if(get_cvar_num("amx_dice_monstermod") == 1)
{
client_print(0,print_chat, "[AMXX] <Dice Dealer> OMG! 50 crabs are jumping out of %s ballsack! ", User);
set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1);
show_hudmessage(0,"%s has got crabs! EWWWWWW!!!", User);
emit_sound(id,CHAN_VOICE, "misc/moan.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
else
{
client_print(0,print_chat, "[AMXX] <Dice Dealer> OMG! 50 crabs are jumping out of %s ballsack!", User);
set_hudmessage(200,0,0, 0.03, 0.62, 2, 0.02, 5.0, 0.01, 0.1, 1);
show_hudmessage(0,"%s has got crabs! EWWWWWW!!!", User);
}
mod_spawn2(id);
set_task(GAMBLING_DELAY_TIME,"delay_gambling");
}
else
{
bIsGambling = false;
Roll2++;
bad_prizes(id,Roll2);
return PLUGIN_HANDLED;
}
}
Last edited by Hatz; 02-03-2007 at 19:20.
|
|