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

[REQ] CSS DM Auto Silencer


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 01-26-2010 , 01:43   [REQ] CSS DM Auto Silencer
Reply With Quote #1

i would like to know if someone could script so that the colt auto silencer on spawn during ffa dm..
noidea is offline
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 01-27-2010 , 08:27   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #2

anyone?
noidea is offline
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 01-29-2010 , 00:30   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #3

bump
noidea is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 01-30-2010 , 00:35   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #4

Sure .
Attached Files
File Type: sp Get Plugin or Get Source (AutoSilencer.sp - 2672 views - 626 Bytes)
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.

Last edited by meng; 01-30-2010 at 01:59.
meng is offline
Send a message via Yahoo to meng
noidea
AlliedModders Donor
Join Date: Jul 2006
Old 01-30-2010 , 06:49   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #5

tyvm
noidea is offline
w4rkr4f7
Member
Join Date: Dec 2008
Old 12-23-2010 , 15:56   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #6

Quote:
Originally Posted by meng View Post
Sure .
since engine is updated DEc 2010 thie plugin is not working ,can you update it ??
L 12/22/2010 - 23:263: [SM] Native "SetEntData" reported: Entity -1 (-1) is invalid
L 12/22/2010 - 23:263: [SM] Displaying call stack trace for plugin "AutoSilencer.smx":
L 12/22/2010 - 23:263: [SM] [0] Line 23, \addons\sourcemod\scripting\AutoSilencer.sp:: EventItemPickup()
w4rkr4f7 is offline
duydangle
Senior Member
Join Date: May 2010
Old 04-06-2011 , 06:20   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #7

Does this plugin work?
duydangle is offline
meng
Veteran Member
Join Date: Oct 2005
Location: us
Old 04-06-2011 , 21:42   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #8

Quote:
Originally Posted by duydangle View Post
Does this plugin work?
It works. However, if you want flawless meet, you may have to burn incense in the name of .
__________________
.
[ 1 Dumerils Boa | 1 Cali King ]...
.
I'm a lil' spirituous.
meng is offline
Send a message via Yahoo to meng
ougogo
Member
Join Date: Jul 2010
Old 04-30-2011 , 05:46   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #9

It doesn't work with new version of orangebox and CSS, can you update this script?


Cordially,

Hugo
ougogo is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 04-30-2011 , 07:02   Re: [REQ] CSS DM Auto Silencer
Reply With Quote #10

Quote:
Originally Posted by ougogo View Post
It doesn't work with new version of orangebox and CSS, can you update this script?


Cordially,

Hugo
This work on latest Cs:s.
You could check your SM logs have you any errors.

Or tell us what other mods you have on server

*edit


This use extension SDKHooks
PHP Code:
/*
    AutoSilencer by meng
        Automatically puts a silencer on the M4A1.
*/

#include <sourcemod>
#include <sdktools>
#include <sdkhooks>

public OnPluginStart()
{
    for(new 
1MaxClientsi++)
    {
        if(
IsClientInGame(i))
        {
            
OnClientPutInServer(i);
        }
    }
}

public 
OnClientPutInServer(client)
{
    
SDKHook(clientSDKHook_WeaponEquipHook_OnWeaponEquip);
}

public 
Action:Hook_OnWeaponEquip(clientweapon)
{
    
decl String:item[20]; item[0] = '\0';
    
GetEdictClassname(weaponitemsizeof(item));

    if (
StrEqual(item"weapon_m4a1")){
        
SetEntProp(weaponProp_Send"m_bSilencerOn"1);
        
SetEntProp(weaponProp_Send"m_weaponMode"1);
    }

*edit
I change SDKHook type SDKHook_WeaponSwitch to SDKHook_WeaponEquip


*update
Thanks zylius and asherk #19
Attached Files
File Type: sp Get Plugin or Get Source (AutoSilencer.sp - 1409 views - 708 Bytes)
File Type: smx AutoSilencer.smx (2.4 KB, 465 views)

Last edited by Bacardi; 09-22-2011 at 07:51.
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 10:34.


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