Hey, I'm using
rollthedice plugin for a knife arena server and I need one thing changed. After the countdown for the Rambo prize (para for around ~20secs) it'll give you you're glock back and you keep the rambo.
So all I want is a simple
strip weapon type function after the timer reaches 0. This is part of the code (the part with the Para)
PHP Code:
// PARA ACTION (RAMBO)
else if (Roll2 == 12)
{
if (get_prize_flags(PRIZE_GOOD)&GOOD_PRIZE_PARAACTION)
{
if(get_cvar_num("amx_dice_debug") != 0)
log_amx("DEBUG (Advanced Roll the Dice): Roll=[1], Roll2=[%d] <%s>",Roll2, User);
strip_user_weapons(id);
give_item(id,"weapon_m249");
give_item(id,"ammo_556natobox");
give_item(id,"ammo_556natobox");
give_item(id,"ammo_556natobox");
give_item(id,"ammo_556natobox");
g_Hasuammo[id] = 1;
set_user_rendering(id,kRenderFxGlowShell, Red,Green,Blue, kRenderNormal,16);
client_print(0,print_chat, "[AMXX] <Dice Dealer> %s got a PARA!", User);
HasPrize[id][0] = PRIZE_PARA;
if( get_cvar_num("amx_dice_statictimes") == 0)
{
HasPrize[id][1] = random_num(15,25);
}
else
{
HasPrize[id][1] = get_cvar_num("amx_dice_rambotime");
}
oldspeed[id] = get_user_maxspeed(id);
client_cmd(0,"spk x/x_pain2.wav");
}
else
{
bIsGambling = false;
random_prize(id);
return PLUGIN_HANDLED;
}
}
client_print(id,print_chat, "[AMXX] <Dice Dealer> You rolled [2] [%d]", Roll2+1);
LastGambleTime[id] = get_gametime();
return PLUGIN_CONTINUE;
}
Any help would be greatly appreciated!!!