Raised This Month: $51 Target: $400
 12% 

Delete C4


Post New Thread Reply   
 
Thread Tools Display Modes
Author
nynCuKaH
Member
Join Date: Apr 2012
Location: void
Plugin ID:
3202
Plugin Version:
1.0
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Forbids to plant a bomb. / Deletes C4 from map.
    Old 08-28-2012 , 23:11   Delete C4
    Reply With Quote #1

    Description:

    1. Block_use_c4 - Forbids to plant a bomb.
    2. Remove_c4 - Deletes C4 from map.
    Attached Files
    File Type: sp Get Plugin or Get Source (Remove_c4.sp - 728 views - 690 Bytes)
    File Type: sp Get Plugin or Get Source (block_use_c4.sp - 770 views - 475 Bytes)
    __________________

    Last edited by nynCuKaH; 11-17-2015 at 07:55. Reason: Optimization code
    nynCuKaH is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 08-29-2012 , 04:36   Re: Bomb stop
    Reply With Quote #2

    That code is, well, not good at all.
    Why not just deny to pickup the bomb or something like that?
    Also you don't need to attach the smx if the plugin compiles fine on the forums.

    Yours sincerely
    Impact
    __________________

    Last edited by Impact123; 08-29-2012 at 04:42.
    Impact123 is offline
    RedSword
    SourceMod Plugin Approver
    Join Date: Mar 2006
    Location: Quebec, Canada
    Old 10-16-2013 , 23:47   Re: Delete Bomb
    Reply With Quote #3

    Removed .smx

    No need to manually upload if your plugin compile on the forum.
    __________________
    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
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 10-17-2013 , 16:35   Re: Delete Bomb
    Reply With Quote #4

    Things I found wrong:
    C4Delete.sp:
    - RemoveEdict should be changed out with: AcceptEntityInput(weapon, "Kill");
    - Im not sure why you retrieve a clientindex on roundstart. As round_start does not have an userid in the event.
    - Also you check to see if the current weapon in the client's hand is a weapon_c4, if it is then it continues to check slot5 (not sure if that is c4 or not.) and remove what weapon is in slot5.
    - RemovePlayerItem... and RemoveEdict... the probably do the same thing, which is remove the weapon.
    Mitchell is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 10-17-2013 , 18:07   Re: Delete Bomb
    Reply With Quote #5

    The C4Delete attachment won't work, like Mitchell said, there is no userid in the round_start event.
    The only thing this file will do is to fill your errorlog, that's not really useful if you ask me.
    The BombStop file is okay, but can be optimized by using a static, global or decl variable in the forward, there is no need to initialize a string 66 (usually) times a second.
    If i remember correctly, GetClientWepon only returns the weapon name, means it gives you awp instead of weapon_awp, which would make this file disfunctional too.
    __________________

    Last edited by Impact123; 10-17-2013 at 18:10.
    Impact123 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 10-17-2013 , 19:17   Re: Delete Bomb
    Reply With Quote #6

    Did you even test the C4Delete plugin?
    Mitchell is offline
    Impact123
    Veteran Member
    Join Date: Oct 2011
    Location: Germany
    Old 10-18-2013 , 03:54   Re: Delete Bomb
    Reply With Quote #7

    You mean me?
    __________________
    Impact123 is offline
    Mitchell
    ~lick~
    Join Date: Mar 2010
    Old 10-18-2013 , 09:18   Re: Delete Bomb
    Reply With Quote #8

    Quote:
    Originally Posted by Impact123 View Post
    You mean me?
    No the publisher.
    Mitchell is offline
    Smffy
    Senior Member
    Join Date: Sep 2012
    Old 10-19-2013 , 16:48   Re: Delete Bomb
    Reply With Quote #9

    What is the purpose of it then you just want to remove the classic game mode? I made a simple plugin that removes all objectives like hostages and bomb zones.

    Why not just remove the zones and then there is nowhere to plant the bomb...
    Smffy 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 21:34.


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