Raised This Month: $ Target: $400
 0% 

Please Remove This Post !


Post New Thread Reply   
 
Thread Tools Display Modes
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-26-2006 , 21:34   Re: CTs_Defusing_Bomb
Reply With Quote #21

So i think i did this already, didn't i ?
NowakFilip is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-26-2006 , 21:44   Re: CTs_Defusing_Bomb
Reply With Quote #22

Quote:
Originally Posted by devicenull
Use the cstrike, engine, and fun modules instead.
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
VEN
Veteran Member
Join Date: Jan 2005
Old 10-27-2006 , 05:18   Re: CTs_Defusing_Bomb
Reply With Quote #23

I'd like to see this in the trash.
You do not respect the author, the rules, the community.
VEN is offline
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-27-2006 , 06:45   Re: CTs_Defusing_Bomb
Reply With Quote #24

I added those things:
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <engine>
#include <fun>

#define PLUGIN "Cts_are_defusing"
#define AUTHOR "NowakFilip"
If you see anything that needs to be changed or added, please let me know.
Thank's.

Last edited by NowakFilip; 10-27-2006 at 07:27.
NowakFilip is offline
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 10-27-2006 , 09:27   Re: CTs_Defusing_Bomb
Reply With Quote #25

I even pointed out the only module (besides amxx and amxmisc) that you needed to use, and you still added them all...

And I still see no credit to the author.

Quote:
Originally Posted by VEN
I'd like to see this in the trash.
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
NowakFilip
BANNED
Join Date: Oct 2006
Location: United States
Old 10-27-2006 , 17:03   Re: CTs_Defusing_Bomb
Reply With Quote #26

Here is the .sma file, that i have created, but i'm stock because i don't know what else i have to add to .sma file.

PHP Code:
#include  <amxmodx>
#include <amxmisc>
#include  <cstrike>
#include <engine>
#include  <fun>

#define PLUGIN "Cts_are_defusing"
#define AUTHOR  "NowakFilip"

// Taken from amxmodx
#define OFFSET_DEFUSE_PLANT  193
#define HAS_DEFUSE_KIT (1<<16)

new bool:defusing[33]
new  
bool:planting[33]
new 
planter

public  plugin_init()
{
  
register_plugin("CTs are  defusing","0.2","KRoTaL")
  
register_cvar("cts_are_defusing",  "1")
  
register_cvar("ts_are_planting",  "1")

  
register_event("ResetHUD""reset_hud",  "be")
  
register_event("DeathMsg",  "death_event","a")
  
register_event("StatusIcon""got_bomb""be""1=1",  "1=2""2=c4")
  
register_event("TextMsg""remove_bartime""a",  "2&#Game_C""2&#Game_w")
  
register_event("SendAudio",  "remove_bartime""a""2=%!MRAD_terwin""2=%!MRAD_ctwin",  "2=%!MRAD_rounddraw")
  
register_event("SendAudio""bomb_planted""a",  "2&%!MRAD_BOMBPL")
  
register_event("BarTime""event_defusing""be",  "1=10""1=5","1=3")
  
register_event("BarTime""event_stopdefusing""be",  "1=0")
}

public 
reset_hud(id)
{
  
defusing[id] =  false
  planting
[id] = false
}

public  
death_event()
{
  if(
get_cvar_num("cts_are_defusing") == &&  get_cvar_num("ts_are_planting") == 0)
    return 
PLUGIN_CONTINUE

  
new  victim read_data(2)
  if(
defusing[victim] || planting[victim])
  {
     
remove_bartime()
    
set_hudmessage(255255255, -1.00.7000.00.1,  0.00.53)
    
show_hudmessage(0"")
  }
  else
  {
     
message_beginMSG_ONE108, {0,0,0}, victim )
    
write_byte)
     
write_byte)
    
message_end()
    
set_hudmessage(255255255, -1.0,  0.7000.00.10.00.53)
    
show_hudmessage(victim,  "")
  }

  return 
PLUGIN_CONTINUE
}

public  
event_defusing(id)
{
  new 
players[32], inumi
  
if(read_data(1) !=  3)
  {
    new 
cts_are_defusing get_cvar_num("cts_are_defusing")
     if(
cts_are_defusing == 0)
      return 
PLUGIN_CONTINUE

     set_hudmessage
(255255255, -1.00.7000.04.00.00.53)
     if(
cts_are_defusing == 1)
    {
      
get_players(playersinum"ae",  "TERRORIST")
    }
    else if(
cts_are_defusing == 2)
    {
       
get_players(playersinum"a")
    }

    if(
get_offset_int(id,  OFFSET_DEFUSE_PLANT) & HAS_DEFUSE_KIT)
    {
      for(
<  inum i++)
      {
        
message_beginMSG_ONE108, {0,0,0},  players[i] )
        
write_byte)
        
write_byte)
         
message_end()
        
show_hudmessage(players[i], "A CT IS DEFUSING THE  BOMB!")
      }
    }
    else
    {
      for(
<  inum i++)
      {
        
message_beginMSG_ONE108, {0,0,0},  players[i] )
        
write_byte10 )
        
write_byte)
         
message_end()
        
show_hudmessage(players[i], "A CT IS DEFUSING THE  BOMB!")
      }
    }
    
defusing[id] =  true
  
}
  else
  {
    new 
ts_are_planting =  get_cvar_num("ts_are_planting")
    if(
ts_are_planting == 0)
      return  
PLUGIN_CONTINUE

    set_hudmessage
(255255255, -1.00.7000.0,  4.00.00.53)
    if(
ts_are_planting == 1)
    {
       
get_players(playersinum"ae""CT")
    }
    else if(
ts_are_planting  == 2)
    {
      
get_players(playersinum"a")
    }

     for(
inum i++)
    {
      
message_beginMSG_ONE108,  {0,0,0}, players[i] )
      
write_byte)
      
write_byte)
       
message_end()
      
show_hudmessage(players[i], "A TERRORIST IS PLANTING THE  BOMB!")
    }
    
planting[id] = true
  
}

  return  
PLUGIN_CONTINUE
}

public  
event_stopdefusing(id)
{
  if(
get_cvar_num("cts_are_defusing") == 0  && get_cvar_num("ts_are_planting") == 0)
    return  
PLUGIN_CONTINUE

  set_hudmessage
(255255255, -1.00.7000.00.1,  0.00.53)
  
show_hudmessage(0"")
  new 
players[32],  inum
  get_players
(playersinum)
  for(new 
inum ;  i++)
  {
    
message_beginMSG_ONE108, {0,0,0}, players[i] )
     
write_byte)
    
write_byte)
     
message_end()
  }
  
defusing[id] = false
  planting
[id] =  false

  
return PLUGIN_CONTINUE
}

public  
got_bomb(id)
{
  
planter id
}

public  
bomb_planted()
{
  
planting[planter] = false
}

public  
remove_bartime()
{
  if(
get_cvar_num("cts_are_defusing") == &&  get_cvar_num("ts_are_planting") == 0)
    return 
PLUGIN_CONTINUE

  
new  players[32], inum
  get_players
(playersinum)
  for(new 
<  inum i++)
  {
    
message_beginMSG_ONE108, {0,0,0}, players[i]  )
    
write_byte)
    
write_byte)
     
message_end()
  }

  return 
PLUGIN_CONTINUE

NowakFilip is offline
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 22:11.


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