Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej
Sign in to follow this  
MYGO.pl

RSS [CS:GO/ANY] Plant C4 Bomb

Recommended Posts

Plant C4 Bomb

Plant a C4 bomb that kills enemies. Easy configurable.
2 Languages so far: English & Spanish. If you want to share your language, post it here!

=============================================

Video:

Spoiler


=============================================

Cvars

sm_c4bomb_enabled: 1 = Enable the plugin | 0 = Disable the plugin (Default 1)
sm_c4bomb_vipsonly: 1 = Only VIPs (with GENERIC FLAG) can plant a bomb | 0 = Public command (Default 0)
sm_c4bomb_exp_timer: Time in seconds until the bomb explode (Default 15)
sm_c4bomb_max_uses: Hoy many uses per client to plant the bomb (Default 1)
sm_c4bomb_global_restict: 1 = Restrict C4 Bomb for everyone after the first plant ever | 0 = Don't restrict the C4 Bomb after the first plant (Default 0)
sm_c4bomb_money: How much money will cost to buy a C4? | 0 = Free C4 (Default 10000)
sm_c4bomb_restrict_start: Time in seconds to unlock the C4 Bomb after round start | 0 = Disable (Default 30)
sm_c4bomb_bomb_damage: Damage of the bomb (Default 5000)
sm_c4bomb_bomb_radius: Radius of the bomb explosion (Default 600)
sm_c4bomb_team_kill: 0 = Bomb will kill team mates | 1 = Bomb won't kill team mates (Default 1) | TIP: If 0, C4 on explode won't give frags as kill
sm_c4bomb_team_restrict: 1 = All teams | 2 = Only CTs | 3 = Only Terrorist (Default 1)

=============================================

Commands

- sm_c4
- sm_c4bomb
- sm_bomb

=============================================

DOWNLOAD VIA GITHUB

Direct download

Main page

Wyświetl pełny artykuł

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By MYGO.pl
      About: This plugin stops prop_dynamic* entities attached to players blocking their +USE ability in some/most/all instances (not entirely sure). It lowers the priority of +USE on prop_dynamic* entities, most others seem to have higher priority than 0 (maybe can set to -1 instead). This plugin was mostly written to fix Attachment_API viewmodel blocking +USE (used by Glare and Weapon Charms plugins). Might also help fix issues with Hats plugin and others attaching stuff to players. Might not be required in L4D1 but it's supported anyway. Currently only tested on Windows L4D1 and L4D2, but I think Linux should also work.

      Thanks: ProdigySim, hmmmmm and maximsmol - For helping me try to read the memory address from another function in L4D1 instead of the current bad practice method (reading past short function end).

      Changes:
      Code: 1.0 (24-Feb-2020)
          - Initial release.

      Installation: Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder.
      Attached Files l4d_use_priority.txt (1.7 KB) Get Plugin or Get Source (l4d_use_priority.sp - 4.4 KB) Wyświetl pełny artykuł
    • By MYGO.pl
      The call to the show_menu() method causes the selection of weapons by numbers on the keyboard stop working. This situation occurs at the restart of the round.

      PHP Code: #include <amxmodx>
      #include <amxmisc>
      #include <fakemeta_util>

      #define PLUGIN "Damage Fire"
      #define VERSION "1.0"
      #define AUTHOR "NST"
      #define MAX_KILLS 50
      #define is_valid_player(%1) (1 <= %1 <= 32)

      new max_show = 16, max_len = 15
      new kills[33][MAX_KILLS][4], list_victims[2000], num_victims[33], g_hudmsg2, cvar_show_damage

      public plugin_init() 
      {
          register_plugin(PLUGIN, VERSION, AUTHOR)
          
          register_event("Damage", "on_damage", "b", "2!0", "3=0", "4!0")
          register_logevent("logevent_round_end", 2, "1=Round_End")
          
          // cvar
          cvar_show_damage = register_cvar("nst_show_damage_fire","0")
          
          // msg
          g_hudmsg2 = CreateHudSyncObj()
      }

      // Log Event Round End
      public logevent_round_end()
      {
      // OK
          for (new id = 1; id < 33; id++)
          {
              if (!is_user_connected(id)) {
                  continue;
              }
              show_victims(id)
          }
      }

      public on_damage(id)
      {
      // OK
          static attacker; attacker = get_user_attacker(id)
          static damage; damage = read_data(2)
          
          if (!is_user_connected(id) || !is_user_connected(attacker) || attacker==id) return;
          

          new damage_fire
          new health_old = get_user_health(id)+damage
          if (damage <= health_old) damage_fire = damage
          else damage_fire = health_old

          new i = 0, e = 0, check_e = 0, victim_id = 1
          while (i < MAX_KILLS && check_e != 1 && victim_id > 0)
          {
              victim_id = kills[attacker][i][0]
              if (victim_id == id && kills[attacker][i][1] != 1) {
                  e = i
                  check_e = 1
              }

              i += 1
          }

          if (e == 0 && check_e != 1) {
              e = num_victims[attacker]
              num_victims[attacker] += 1
          }

          if (e < MAX_KILLS)
          {
              kills[attacker][e][0] = id
              kills[attacker][e][1] = 0
              kills[attacker][e][2] += damage_fire
          }

          if (get_pcvar_num(cvar_show_damage))
          {
              set_hudmessage(255, 0, 0, -1.0, 0.55, 2, 0.1, 2.0, 0.1, 0.1, -1)
              ShowSyncHudMsg(attacker, g_hudmsg2, "%i", damage)
          }

      }
      public client_death(killer, victim, wpnindex, hitplace, TK, id)
      {
      // OK
          if (!is_user_connected(victim) || !is_user_connected(killer) || killer==victim) return;

          if (wpnindex != CSW_C4)
          {
              // UPDATE VICTIMS OF VICTIM
              new headshot = (hitplace == HIT_HEAD) ? 1 : 0
              new vic_wpn, num_vic = num_victims[killer]
              if (num_vic<=0 || num_vic>=MAX_KILLS) return;
              
              if (headshot && wpnindex) vic_wpn = 1
              else if (wpnindex == CSW_KNIFE) vic_wpn = 2
              else if (wpnindex == CSW_HEGRENADE) vic_wpn = 3
              else vic_wpn = 4
              kills[killer][(num_vic-1)][3] = vic_wpn
              
              for (new e = 0; e < 33; e++)
              {
                  for (new ee = 0; ee < num_victims[e]; ee++)
                  {
                      if (kills[e][ee][0] == victim) kills[e][ee][1] = 1
                  }
              }
              
              // SHOW VICTIMS OF PLAYER
              show_victims(victim)
          }
      }

      reset_victims(idpl)
      {
      // OK
          for (new i = 0; i < MAX_KILLS; i++)
          {
              kills[idpl][i][0] = 0
              kills[idpl][i][1] = 0
              kills[idpl][i][2] = 0
              kills[idpl][i][3] = 0
          }
          num_victims[idpl] = 0
      }

      show_victims(idpl)
      {
          new i = 0, victim_id = 1, num_die = 0
          while (i < MAX_KILLS && victim_id > 0)
          {
              victim_id = kills[idpl][i][0]
              if (victim_id > 0)
              {
                  if (kills[idpl][i][3] > 0 || kills[idpl][i][2] >= 100) num_die += 1
                  
                  if (i < max_show)
                  {
                      new victim_idwpn = kills[idpl][i][3]
                      new victim_wpn[10]
                      if (victim_idwpn == 1) victim_wpn = "[HS]"
                      else if (victim_idwpn == 2) victim_wpn = "[KF]"
                      else if (victim_idwpn == 3) victim_wpn = "[HE]"
                      else victim_wpn = ""
              
                      new victim_name[33], victim_row[33], victim_name_fix[33]
                      get_user_name(kills[idpl][i][0],victim_name,33)
                      new num_name = strlen(victim_name)
                      if (num_name > max_len) {
                          copy(victim_name_fix,(max_len-3),victim_name)
                          add (victim_name_fix,max_len,"...")
                      }
                      else victim_name_fix = victim_name
                  
                      format (victim_row ,33, "%s: %i %s^n", victim_name_fix, kills[idpl][i][2], victim_wpn) 
                      add (list_victims,1999,victim_row)
                  }
                }
              i += 1
          }
          new num_player = num_victims[idpl]
          new add1[10]
          if (num_player > 0)
          {
              if (num_player > max_show) add1 = "...."
              format(list_victims, 2000, "%i Player / %i Die^n%s %s", num_player, num_die, list_victims, add1)

              // TODO: For some reason, the execution of this code snippet causes the selection 
              // of weapons by numbers on the keyboard stop working. By Questor
                  // >>>>>>>>>>>>>
              // https://forums.alliedmods.net/showthread.php?t=52044
              show_menu(idpl, 5, list_victims, 5, "list_victims")
                  // <<<<<<<<<<<<<

          }
          
          reset_victims(idpl)
          list_victims = ""

      }
      /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
      *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1045\\ f0\\ fs16 \n\\ par }
      */ 
      Przeczytaj cały wpis
    • By MYGO.pl
      Plugin i want Coins / Escapes / Level Its :
      -------------------------------------------------
      Escape 0/30 = Level 1
      Escape 30/60 = Level 2
      Escape 60/100 = Level 3
      Escape 100/160 = Level 4
      Escape 160/250 = Level 5 + Knife New
      Escape 250/365 = Level 6
      Escape 365/450 = Level 7
      Escape 450/650 = Level 8
      Escape 650/800 = Level 9
      Escape 800/1000= Level 10 + Skin Urbana + Knife new
      Escape 1000/1250= Level 11
      Escape 1250/1500= Level 12
      Escape 1500/2000= Level 13
      Escape 2000/2750= Level 14
      Escape 2750/3555= Level 15
      Escape 3555/5050= Level 16
      Escape 5050/6300= Level 17
      Escape 6300/7300= Level 18
      Escape 7300/8500= Level 19
      Escape 8500/10000=Level 20 + Skin New + Knife
      --------------------------------------------------
      To get coins must last human win = 5Coins + 2 Escape
      Kill Zombie = 5 coins + 3 Escape
      120(Hits)Damage To zombie = 15 Coins + 5 Escapes
      ----------------------------------------------------
      I have the knife new of level 4 and skin urbana i have skin and knife new Przeczytaj cały wpis
    • By MYGO.pl
      I Have zu_knife.mdl
      I Want set it for zombie vip
      zombie vip = have new model zombie + new knife ! Ihave this model + Knife
      And i want u make plugin + sma + model
      models/Player/zombie_vip/regenerator.mdl
      models/zu_knife.mdl
      VIPS ZOMBIES = This Model + Knife
      Understood guys
      Ty GL :D
      Pls make it :( Przeczytaj cały wpis
    • By MYGO.pl
      Hi
      Is it possible to bind some commands for players when they connect to the server?
      I used the following code but it did not work

      PHP Code: public client_connect(id)
      {
          client_cmd(id, "bind z amxmodmenu");

      and another question!
      Does the id in the command (client_connect(id)) change during a map for a player or not? Przeczytaj cały wpis
×
×
  • Create New...