Raised This Month: $32 Target: $400
 8% 

[CSS & CSGO] Buy C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Plugin ID:
2192
Plugin Version:
1.0
Plugin Category:
Fun Stuff
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Terrorists can buy C4 Bomb from buy zone
    Old 01-27-2011 , 06:05   [CSS & CSGO] Buy C4
    Reply With Quote #1

    [CSS & CSGO] Buy C4 Fun Stuff
    - Terrorists can buy C4 Bomb from buy zone

    [REQ][CS:S]Buy c4

    Allow TERRORIST buy C4 as any other weapon from buy zone within buy time.
    When OrangeBox update came in Counter-Strike:source, can only plant 1 bomb.

    - When round start, chat announced show only players what are terrorist and have access to use sm_buyc4 command
    looks:
    !buyc4 cost 13000$
    or when free
    !buyc4 now FREE!

    CVARS
    - Plugin not generate own config file, add cvars in server.cfg (and do map configs in future if you like)
    Quote:
    buyc4_enabled "1"
    // When enabled, TERRORIST can buy C4 bomb

    buyc4_cost "13000"
    // Set price to weapon C4 bomb

    buyc4_chatannounce "1"
    // Print in chat announce to terrorist when round start

    buyc4_onlybombmaps "1"
    // Works only maps where bomb site

    buyc4_limit "0"
    // Limit the number of bombs, 0 = unlimited
    Admin Command
    Quote:
    sm_buyc4
    - adminflag "f" (Slay)
    - Terrorist can buy C4 from buy zone
    - Use in chat !buyc4 or /buyc4
    - From console sm_buyc4

    - Override command to public from ...addons/sourcemod/admin_overrides.cfg
    Code:
    Overrides
    {
        /**
         * By default, commands are registered with three pieces of information:
         * 1)Command Name         (for example, "csdm_enable")
         * 2)Command Group Name    (for example, "CSDM")
         * 3)Command Level        (for example, "changemap")
         *
         * You can override the default flags assigned to individual commands or command groups in this way.
         * To override a group, use the "@" character before the name.  Example:
         * Examples:
         *        "@CSDM"            "b"                // Override the CSDM group to 'b' flag
         *         "csdm_enable"    "bgi"            // Override the csdm_enable command to 'bgi' flags
         *
         * Note that for overrides, order is important.  In the above example, csdm_enable overwrites
         * any setting that csdm_enable previously had.
         *
         * You can make a command completely public by using an empty flag string.
         */
        
        "sm_buyc4"        ""
    }
    To do: add bomb limit
    Code:
        25.1.2011 Version 0.1
        - released
        26.1.2011 Version 0.2
        - Added chat announce to Terrorist when round start
        - Added work only bomb maps or all maps
        27.1.2011 Version 0.3
        - Add few PrintCenterText notified
        28.1.2011 Version 0.4
        - Little fix, not show "You are not in a buy zone." to dead people
        - Bomb limit added
        29.1.2011 Version 0.5
        - Little fix when work only bomb maps and it have disabled to not show chat announce
        12.2.2016 Version 1.0
        - Little update for CSGO
        - fixed mp_buytime duration for csgo and prevent player collect more c4 than one
    Credits: Alliedmodders developers, others plugin developers
    I have rip, copy/paste, duplicate from them
    Attached Files
    File Type: sp Get Plugin or Get Source (buyc4.sp - 542 views - 6.8 KB)

    Last edited by Bacardi; 02-12-2016 at 07:56.
    Bacardi is offline
    blue zebra
    BANNED
    Join Date: Jun 2010
    Old 02-21-2011 , 07:29   Re: [CSS] Buy C4
    Reply With Quote #2

    Sorry. Its my fault. The plugin works fine for me.
    Thanks for your work.

    Can you do this:
    - Free bomb for all terrorists automatically, when spawned?

    Last edited by blue zebra; 03-04-2011 at 05:47.
    blue zebra is offline
    thx_you
    Senior Member
    Join Date: Feb 2009
    Old 06-24-2011 , 10:37   Re: [CSS] Buy C4
    Reply With Quote #3

    how change C4 with HEGrenade and make for all team ct and terr When type !he buy HEGrenade quickly
    and make Price 3500
    i want use it in zombie mode
    it's possible
    thx_you is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 12-19-2012 , 23:21   Re: [CSS] Buy C4
    Reply With Quote #4

    Under CSGO, you can buy c4, but as in CSS, it can't be planted (unless for a short moment, between round restart and a bomb that just got defused) when another one is.

    Also, you can hold more than one at a time, which is strange.

    Sometimes, the bomb doesn't respond to the "slot5" key binding, but it does to the invnext/invprev.

    Also, only one player at a time is shown with the bomb in the menu. I'm sure SDKHook could solve that. (I think it stops at the first it finds, then print it to the leaderboard currently)

    If you'd like to give a peak and fix those holes )>^.^)>

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 12-19-2012 at 23:22.
    RedSword is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 12-21-2012 , 10:44   Re: [CSS] Buy C4
    Reply With Quote #5


    Sorry guys! The thing is...
    I got tired of playing games, especially Counter-Strike... & coding.

    Now I have replaced computer games to woman, and started play with her.

    I don't know, will I make comeback to here.

    For now, everyone can do what ever they like, unapprove my plugins or else.
    I will keep a long break here.

    fck google trans.
    Merry christmas
    __________________
    Do not Private Message @me

    Last edited by Bacardi; 12-21-2012 at 10:47.
    Bacardi is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 12-21-2012 , 19:06   Re: [CSS] Buy C4
    Reply With Quote #6

    Quote:
    Originally Posted by Bacardi View Post

    Sorry guys! The thing is...
    I got tired of playing games, especially Counter-Strike... & coding.

    Now I have replaced computer games to woman, and started play with her.

    I don't know, will I make comeback to here.

    For now, everyone can do what ever they like, unapprove my plugins or else.
    I will keep a long break here.

    fck google trans.
    Merry christmas
    Ah... well goodbye =| ; you were making good plugins =3. Have good holidays.
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work
    RedSword is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 01-02-2013 , 18:35   Re: [CSS] Buy C4
    Reply With Quote #7

    I did approve, as it works fine for CSS (and as long as a plugin work, it can be approved, even if author leaves).

    I do not consider the fact that it can be planted on round end (as said in my previous post; to the other bombsite) a bug, since I believe it's more an engine/mod specific thing.

    Red
    __________________
    My plugins :
    Red Maze
    Afk Bomb
    RAWR (per player/rounds Awp Restrict.)
    Kill Assist
    Be Medic

    You can also Donate if you appreciate my work

    Last edited by RedSword; 01-02-2013 at 18:36.
    RedSword is offline
    cangncan
    New Member
    Join Date: Feb 2014
    Old 02-13-2014 , 07:41   Re: [CSS] Buy C4
    Reply With Quote #8

    Add please possibility to use a file "translations" to use russian language!!!

    Last edited by cangncan; 02-13-2014 at 07:53.
    cangncan is offline
    Bacardi
    Veteran Member
    Join Date: Jan 2010
    Location: mom's basement
    Old 02-12-2016 , 07:56   Re: [CSS & CSGO] Buy C4
    Reply With Quote #9

    tiny update for csgo game
    __________________
    Do not Private Message @me
    Bacardi 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 09:34.


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