AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   help with sound and set models (https://forums.alliedmods.net/showthread.php?t=100668)

Zapdos1 08-16-2009 19:00

help with sound and set models
 
Well, I did that when you select an option from a menu, you will hear a sound and set you a player model
but it doesn't work

PHP Code:

new const example_sound[] = "misc/example/sound.wav"
new const example_model[] = "models/example/model.mdl"

public plugin_precache()
    
    
precache_sound(example_sound)
    
engfunc(EngFunc_PrecacheModelexample_model)

//...
        
case 1:
        {
            
client_cmd(id"spk ^"%s^""example_sound)  
            
cs_set_user_model(id"example_model")
        } 

sorry, for my english

crazyeffect 08-16-2009 19:05

Re: help with sound and set models
 
Is that the code you're using? :O

Zapdos1 08-16-2009 19:06

Re: help with sound and set models
 
yeah xD

crazyeffect 08-16-2009 19:18

Re: help with sound and set models
 
i should learn how to script if i were you :/

Zapdos1 08-16-2009 19:25

Re: help with sound and set models
 
plz, help T_T

crazyeffect 08-16-2009 19:45

Re: help with sound and set models
 
You are really IceShot nr2

meTaLiCroSS 08-16-2009 20:29

Re: help with sound and set models
 
Quote:

Originally Posted by crazyeffect (Post 902793)
You are really IceShot nr2

It's my friend... from Chile :evil:


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

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