PHP Code:
else if (Roll2 == 1)
{
if (get_prize_flags(PRIZE_BAD)&BAD_PRIZE_NIGHTCLUB)
{
if(get_cvar_num("amx_dice_debug") != 0)
log_amx("DEBUG (Advanced Roll the Dice): Roll=[0], Roll2=[%d] <%s>",Roll2, User);
client_print(0,print_chat, "[AMXX] <Dice Dealer> %s is dancing at the NightClub!", User);
HasPrize[id][0] = PRIZE_NIGHTCLUB;
if( get_cvar_num("amx_dice_statictimes") == 0)
{
HasPrize[id][1] = random_num(8,14);
}
else
{
HasPrize[id][1] = get_cvar_num("amx_dice_nightclubtime");
}
set_user_rendering(id,kRenderFxGlowShell, Red,Green,Blue, kRenderNormal,16);
new tid[2];
tid[0] = id;
tid[1] = 1;
client_cmd(id, "cl_forwardspeed 500");
set_task(0.1,"single_knife",0,tid,2,"a",((HasPrize[id][1]+2)*10)-10);
emit_sound(id,CHAN_VOICE, "misc/blade1.wav", 1.0, ATTN_NORM, 0, PITCH_NORM);
}
else
{
bIsGambling = false;
Roll2++;
bad_prizes(id,Roll2);
return PLUGIN_HANDLED;
}
}
This code is not this in any function
__________________