AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to strip Para from RTD plugin (https://forums.alliedmods.net/showthread.php?t=84729)

shadow.hk 01-31-2009 02:05

How to strip Para from RTD plugin
 
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>",Roll2User);
   
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,kRenderFxGlowShellRed,Green,BluekRenderNormal,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!!!


All times are GMT -4. The time now is 01:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.