playing a sound when a player die
how do i play a certain sound when a player die in a certain model?
soo far: Code:
public fdeath(id) {L 03/28/2005 - 19:09:48: [AMXX] Native error in "cs_get_user_model" on some line (file "test.sma"). L 03/28/2005 - 19:09:48: [CSTRIKE] Player out of range (0) any help or example would be greatly appreciated :wink: |
a) WTF is the else statement there for? I certainly don't see anything in it. Why is it there?
b) When you registered the event you register it as global ("a"), this means that all players receive it at once, meaning the id is going to be 0, and 0 is not a valid entity so you can't emit a sound from it. You have to use read_data(2) (if I recall correctly) to get the victim. |
can you help me out? I dont know how to use read_data
|
new id = read_data(2)
|
i got this
Code:
public death() { |
Did you precache the sound file?
|
| All times are GMT -4. The time now is 10:01. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.