Hey everybody,
Before i start with my question, i wanna say SORRY about my English..
It's now me it's the English teachers in my country ;-)
So, i heard about Hamsandwich, and i want to make a plugin that doing something after some one killed.
I so in one of the plugins here, that someone used HamSandwich there,
Something like this:
PHP Code:
public plugin_init()
RegisterHam(Ham_Killed, "player", "death_func", 1)
public death_func(id, szKiller, shouldgib)
{
new a,b,c
id = a
szKiller = b
shouldgib = c
....
....
}
Now I have
2 questions:
1. What the third parameter in the death_func function says? (I have problem on my server so i couldn't check it alone)
2. How can i get the id of the Killer?
And one more thing,
If i want to write each time in the server memory when some one killed somebody, how would i save it if i want to save more then one parameter?
I mean, i want to make something like a table:
PHP Code:
authid killed died
STEAM_X:X:X 5 2
And last thing,
How can i check if the death is an headshot?
Thanks,
Elad.
__________________