Raised This Month: $ Target: $400
 0% 

[HELP] Getting details about who killed and dead. using Hamsandwich lib.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
unSeen
Member
Join Date: Sep 2008
Old 02-18-2009 , 06:16   [HELP] Getting details about who killed and dead. using Hamsandwich lib.
Reply With Quote #1

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(idszKillershouldgib)
{
    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.
__________________
List of important things:
1. Respect you'r mother.
2. Respect you'r father.
3. Do not hit anyone.
4. Do not steal.
5. Do not flame.
7. You didn't see that there is no number 6.
8. You checked if number 7 is true.
9. You are laughing now.
10. You are double laughing because you understand the joke ;)

Last edited by unSeen; 02-18-2009 at 06:41.
unSeen is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:00.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode