AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Remove Helmet a vest (https://forums.alliedmods.net/showthread.php?t=141065)

Tonda 10-19-2010 05:43

Remove Helmet a vest
 
Hi i need simply code for player. Remove his vest and helm.

reinert 10-19-2010 06:16

Re: Remove Helmet a vest
 
set_user_armor ? :)

Tonda 10-19-2010 06:53

Re: Remove Helmet a vest
 
ok i try it, and how can i remove glow efect from player ?

zirualas 10-19-2010 07:17

Re: Remove Helmet a vest
 
set_user_rendering

Tonda 10-19-2010 08:35

Re: Remove Helmet a vest
 
and last question. Why mine sound ( client_cmd(0, "spk sound/1.wav")
have cycle? I need play only once this sound

zirualas 10-19-2010 10:12

Re: Remove Helmet a vest
 
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" 


mottzi 10-19-2010 11:05

Re: Remove Helmet a vest
 
You precache sound.wav then you use 1.wav :D

Tonda 10-19-2010 11:38

Re: Remove Helmet a vest
 
i have precache, but mine sound play still but i need play only once.

fysiks 10-19-2010 18:16

Re: Remove Helmet a vest
 
Quote:

Originally Posted by Tonda (Post 1329281)
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)?


All times are GMT -4. The time now is 10:26.

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