Raised This Month: $ Target: $400
 0% 

How to strip Para from RTD plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 01-31-2009 , 02:05   How to strip Para from RTD plugin
Reply With Quote #1

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!!!
shadow.hk is offline
Send a message via MSN to shadow.hk
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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