no death sound?
well, im trying to make a plugin and i need to avoid the death sound only when a specific person dies, is this possible?
http://forums.alliedmods.net/showthread.php?t=16684 |
Code:
|
thx alot for your help :)
but it didnt work for me, i must do something wrong :( this is my attempt: Code:
something like this should work, no? that should make admins cause no death sound when they die... but i can still hear death sound when i die :( maybe you can look into this again and tell me what im doing wrong? |
a) Your variable should be size 33, not 32
b) Code:
|
then i must have got the comment wrong there..
Code:
so, it would also play the sound when the user is not connected anymore? but -- i thought 32 is just the definition of size - the players id would go from 0 to 31, so having 32 possible players, no? |
Yes, you got the comment wrong, I said if their death should NOT be blocked, if stealth[id] is true it SHOULD be blocked, so instead you have to check for !stealth[id].
Also, players go from 1 to 32, an array of size 32 has a max index number of 31. |
ok, i will do the ! thingy.
Quote:
EDIT: oooh :o forgot the karma up :? fixed now :) |
| All times are GMT -4. The time now is 14:33. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.