[Help needed]Exclusive damage rate
Hi, I am trying to make a VIP/ADMINS exclusive plugin for our fun server and it does work but meanwhile it generates errorlogs about get_user_weapon() function.
Can someone take a look at the code about what's wrong? Code:
Detailed error log: Quote:
|
Re: [Help needed]Exclusive damage rate
You should use attacker here, not inflictor. Inflictor is not always the same as attacker, in the case of grenade damage, and possibly C4, it is the entity index of the grenade. I also fixed and improved other things that were done incorrectly.
Code:
PHP Code:
|
Re: [Help needed]Exclusive damage rate
Tested and works perfectly without any errors, thank you sir for the help :D
|
| All times are GMT -4. The time now is 17:56. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.