View Single Post
_EverGreen_
Junior Member
Join Date: Feb 2021
Old 02-05-2021 , 19:35   Re: CS_OnCSWeaponDrop not work?
Reply With Quote #3

Hi Bacardi and thanks for quest!!!

Sorry, i omitted lot of info

Server is SRCDS running on a Windows x64.

The code is the next:

PHP Code:
public Action:CS_OnCSWeaponDrop(iClientiWeaponIndex)
{
    
decl String:szClassName[32];
    
GetEdictClassname(iWeaponIndexszClassNamesizeof(szClassName));
    
    if(
StrEqual(szClassName"weapon_c4"false))
    {
        
g_iC4Ent iWeaponIndex;
    }

Sorry if not show formatted (i check PHP code, i hope this correct).

If you add the code on any plugin, server will crash on maps like $2000$ or any where map with weapon on floor at map start.


PS: This fragment of code is from "Dropped Bomb Defuse" plugin. The author is "SavSin"

Last edited by _EverGreen_; 02-05-2021 at 19:38.
_EverGreen_ is offline