Raised This Month: $ Target: $400
 0% 

Best way for a !hide Command


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gh0$t
Senior Member
Join Date: Mar 2010
Location: Germany at 127.0.0.1
Old 03-24-2012 , 12:47   Best way for a !hide Command
Reply With Quote #1

Hello!
I need a command it names !hide - It should hide other players.
What is the best way to do that?
__________________
Gh0$t is offline
-Absolute-
Member
Join Date: Mar 2010
Old 03-24-2012 , 13:15   Re: Best way for a !hide Command
Reply With Quote #2

Use SDKHooks and create a SetTransmitHook, stopping players from being transmitted to others.
-Absolute- is offline
Gh0$t
Senior Member
Join Date: Mar 2010
Location: Germany at 127.0.0.1
Old 03-24-2012 , 22:09   Re: Best way for a !hide Command
Reply With Quote #3

Okay thanks, works good.
But when all players are hided and i shoot with a weapon, other player can hear that.
How can i disable it?
__________________
Gh0$t is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 03-29-2012 , 17:51   Re: Best way for a !hide Command
Reply With Quote #4

use a soundhook to block the weapon_* sounds or whatever sample is playing.
http://docs.sourcemod.net/api/index....d=show&id=789&
__________________
Peace-Maker 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 08:33.


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