EventDeathMsg error
PHP Code:
PHP Code:
|
Re: EventDeathMsg error
Check if player is connected first.
|
Re: EventDeathMsg error
You should do that as well as add a condition to your DeathMsg event so it will only fire if the killer is a player. Below I made those 2 fixes and also made a few other efficiency adjustments. Also, I don't understand why you subtract 300 from the awarded money? Why not just reduce the cvar value by that amount?
PHP Code:
|
Re: EventDeathMsg error
Thanks. : )
This is what i made from it now. : ) PHP Code:
|
Re: EventDeathMsg error
This will eliminate a few native calls and the last line of your code.
Untested PHP Code:
|
Re: EventDeathMsg error
Thank you. : )
|
| All times are GMT -4. The time now is 07:03. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.