Raised This Month: $ Target: $400
 0% 

plz help with this


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 08-17-2009 , 22:21   plz help with this
Reply With Quote #1

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")
        } 
plz, help.
when i selected a menu option, i can't hear the sound, and the model
didn't set.
plz help
sorry for my english

Last edited by Zapdos1; 08-17-2009 at 22:24.
Zapdos1 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 08-17-2009 , 23:45   Re: plz help with this
Reply With Quote #2

I believe it should be like this for the model, I don't know much about the sound.:

Code:
new const example_sound[] = "misc/example/sound.wav" new const example_model[] = "models/example/example.mdl" public plugin_precache()         precache_sound(example_sound)     engfunc(EngFunc_PrecacheModel, example_model) //...         case 1:         {             client_cmd(id, "spk ^"%s^"", example_sound)               cs_set_user_model(id, "example")         }
__________________
fysiks is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 08-18-2009 , 05:38   Re: plz help with this
Reply With Quote #3

You tested with:

PHP Code:
client_cmd(id"spk %s"example_sound
?

I am not sure becouse i dont remember what is ^"%s^" but for example:

PHP Code:
#define BLOCK_SOUND "/items/medshotno1.wav"

//...

client_cmd(id"spk %s"BLOCK_SOUND
This work perfect for me, but dont know.. maybe with "const" is different.
__________________
Approved Plugins - Steam Profile

Public non-terminated projects:
All Admins Menu, HLTV parameters, Subnick,
Second Password (cool style), InfoZone,
Binary C4 plant/defuse, and more...

Private projects:
NoSpec (+menu), NV Surf Management,
PM Adanved System, KZ longjump2, and more...
Alucard^ is offline
Send a message via Skype™ to Alucard^
Zapdos1
BANNED
Join Date: Jul 2009
Location: Chile - La Serena
Old 08-18-2009 , 17:36   Re: plz help with this
Reply With Quote #4

thanks fysiks, the problem was solved

@Alucard^

still hear the sound.
thanks anyway

sorry, for my bad english
Zapdos1 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 15:04.


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