Getting headshot.
Hi, I'm updating my easyinfo plugin. I was trying to add headshots. (I thought it was read_data(3) in the CurWeapon event, maybe I'm wrong.)
Here's what I got, and it always displays 0 for headshots. Code:
|
|
Use this as a guide....
add this to plugin init Code:
add this to the bottom Code:
Rember you can use the code..just put it in the proper place...i too tired to tell you right now :/ [/small] |
Code:
EDIT: Just saw Zenith's code which is similar to mine but sucks. a) don't need three lines for three variables, b) you can't get the attacker of a non-existant player, c) using defines is much more human-readable than pure numbers |
hehe..whoops...made to many errors..i half asleep right now :/
|
This makes it not show up..
Code:
|
cuz the way you have it your adding one headshot to the person who got shot not the attacker.
so change Code:
Code:
|
Still nothing -- the whole damn hud message doesnt show. (the pluggie is running tho)
|
Code:
thats the lines i was refering too which you still left. |
Oh, Well thanks [v3x pointed it out to me on AIM too, though.]
|
| All times are GMT -4. The time now is 14:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.