DeathMsg and damage problems
Hello!
I have some problems with my plugin, DeatMsg and the Damage events doesn't work on half-life. Anyone knows how to make this to work or maybe another method? the code: Code:
|
Re: DeathMsg and damage problems
Both of the events should work. Maybe this is why:
Code:
1. Don't declare a new "victim" variable, it already exists (it's passed in the function header). 2. Why do you call get_user_attacker, if you don't use it? 3. Since extra_damage is a float, all variables involved in its calculations need to be a float. So it would become: Code:
As for DeathMsg, it needs to be registered with the "a" flag instead of the "b" flag. |
Re: DeathMsg and damage problems
thank you:
1. I belived cause it's better to declare the victim again(but you are right) 2. I wanted to declare the attacker, but I did that in the rest of code 3. This was the problem, thank you very much. -ps- something doesn't work good, I'll pm you on msn. 4. The flag a to deathmsg fixed the deathmsg event. ------------------edited---------------------- XxAvalanchexX fixed my plugin, topic can be closed. Thank you xxAvalanchexx +karma because you fixed. |
Re: DeathMsg and damage problems
PHP Code:
|
| All times are GMT -4. The time now is 00:42. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.