Raised This Month: $ Target: $400
 0% 

Remove Helmet a vest


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 10-19-2010 , 05:43   Remove Helmet a vest
Reply With Quote #1

Hi i need simply code for player. Remove his vest and helm.
Tonda is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 10-19-2010 , 06:16   Re: Remove Helmet a vest
Reply With Quote #2

set_user_armor ?
reinert is offline
Tonda
Senior Member
Join Date: Aug 2009
Old 10-19-2010 , 06:53   Re: Remove Helmet a vest
Reply With Quote #3

ok i try it, and how can i remove glow efect from player ?
Tonda is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-19-2010 , 07:17   Re: Remove Helmet a vest
Reply With Quote #4

set_user_rendering
__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
Tonda
Senior Member
Join Date: Aug 2009
Old 10-19-2010 , 08:35   Re: Remove Helmet a vest
Reply With Quote #5

and last question. Why mine sound ( client_cmd(0, "spk sound/1.wav")
have cycle? I need play only once this sound
Tonda is offline
zirualas
Senior Member
Join Date: Jun 2010
Location: Lithuania
Old 10-19-2010 , 10:12   Re: Remove Helmet a vest
Reply With Quote #6

First you need precache him.
PHP Code:
public plugin_precache()
{
        
precache_sound("folder/sound.wav")

Then add it there you want
PHP Code:
client_cmd(0"spk sound/1.wav" 
__________________
Still studying scripting...
zirualas is offline
Send a message via Skype™ to zirualas
mottzi
Veteran Member
Join Date: May 2010
Location: Switzerland
Old 10-19-2010 , 11:05   Re: Remove Helmet a vest
Reply With Quote #7

You precache sound.wav then you use 1.wav
__________________
Quote:
#define true ((rand() % 2)? true: false) //Happy debugging suckers
mottzi is offline
Send a message via MSN to mottzi
Tonda
Senior Member
Join Date: Aug 2009
Old 10-19-2010 , 11:38   Re: Remove Helmet a vest
Reply With Quote #8

i have precache, but mine sound play still but i need play only once.
Tonda is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-19-2010 , 18:16   Re: Remove Helmet a vest
Reply With Quote #9

Quote:
Originally Posted by Tonda View Post
and last question. Why mine sound ( client_cmd(0, "spk sound/1.wav")
have cycle? I need play only once this sound
It should only play once. Is this code in a loop of some sort? Does the sound file sound correct when you just play it normally through Windows Media Player (or other media player)?
__________________
fysiks 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:26.


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