Raised This Month: $51 Target: $400
 12% 

HeadShot and Gun


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Unu
Senior Member
Join Date: Dec 2007
Old 05-27-2008 , 17:22   HeadShot and Gun
Reply With Quote #1

I want a plugin or ... to tell me how to modify in miscstats to get the headshot and the weapon of the attackers ...

Eg : X give headshot Y ... I want to be :
X give headshot usp ( or the respective gun ) Y

I will wait
__________________
connorr , X-olent , alka , SAMURAI16 , YamiKaitou , arkshine , styles , v3x , ZombieMan , hleV ... only the best here
Unu is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 06:34   Re: HeadShot and Gun
Reply With Quote #2

PHP Code:
/* Include File generated by Pawn Studio */

#include <amxmodx>
#include <fun>

public plugin_init()
{
    
register_plugin("Headshot Gun","1.0","Neo Hazard")
    
register_event("On_Death","EDeathmsg","a")
}
public 
EDeathmsg(victim_id,killer_id,killer_weapon)
{
    
read_data(victim_id)
    
read_data(killer_id)
    
read_data(killer_weapon)
    if(
killer_id != victim_id && get_user_team(killer_id) != get_user_team(victim_id) && get_user_hitzones(victim_id2))
    {
        
client_print(0,print_chat,"%s killed %s with a headshot with %s",killer_id,victim_id,killer_weapon)
    }
    return 
PLUGIN_HANDLED

It's 60 in the morning, it may not work. I'll test / edit it when I get back.
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend

Last edited by hazard1337; 05-28-2008 at 11:26.
hazard1337 is offline
Send a message via Skype™ to hazard1337
Unu
Senior Member
Join Date: Dec 2007
Old 05-28-2008 , 07:50   Re: HeadShot and Gun
Reply With Quote #3

Thx ... resolved and ... +karma
__________________
connorr , X-olent , alka , SAMURAI16 , YamiKaitou , arkshine , styles , v3x , ZombieMan , hleV ... only the best here

Last edited by Unu; 05-28-2008 at 08:59.
Unu is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 11:25   Re: HeadShot and Gun
Reply With Quote #4

so it worked?
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
Unu
Senior Member
Join Date: Dec 2007
Old 05-28-2008 , 11:29   Re: HeadShot and Gun
Reply With Quote #5

yeap
__________________
connorr , X-olent , alka , SAMURAI16 , YamiKaitou , arkshine , styles , v3x , ZombieMan , hleV ... only the best here
Unu is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 11:36   Re: HeadShot and Gun
Reply With Quote #6

cool, Uh I did notice a stupid mistake of mine, I switched victim and killer so it will say the victim killed the killer I edited the post so recompile and it'll be how it should be
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
Unu
Senior Member
Join Date: Dec 2007
Old 05-28-2008 , 11:39   Re: HeadShot and Gun
Reply With Quote #7

I 've been modifyed that
__________________
connorr , X-olent , alka , SAMURAI16 , YamiKaitou , arkshine , styles , v3x , ZombieMan , hleV ... only the best here
Unu is offline
hazard1337
Senior Member
Join Date: Sep 2006
Old 05-28-2008 , 11:39   Re: HeadShot and Gun
Reply With Quote #8

kk sorry for that, like I said: early morning
__________________
[IMG]http://img139.**************/img139/1530/2sejaewg1.gif[/IMG]
If you +/- my K, leave your name.
I do not take requests VIA PM
Click on this before requesting/suggesting
This is your best friend
hazard1337 is offline
Send a message via Skype™ to hazard1337
Unu
Senior Member
Join Date: Dec 2007
Old 05-28-2008 , 11:44   Re: HeadShot and Gun
Reply With Quote #9

yeap i read that and i understood thx alot ;) can you help me at the second plugin ( bomb defusing ,planting )
__________________
connorr , X-olent , alka , SAMURAI16 , YamiKaitou , arkshine , styles , v3x , ZombieMan , hleV ... only the best here
Unu is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 09-25-2008 , 11:33   Re: HeadShot and Gun
Reply With Quote #10

hi, I got this error

Code:
L 09/25/2008 - 16:25:37: Invalid event (name "On_Death") (plugin "headshot_log.amxx")
L 09/25/2008 - 16:25:37: [AMXX] Displaying debug trace (plugin "headshot_log.amxx")
L 09/25/2008 - 16:25:37: [AMXX] Run time error 10: native error (native "register_event")
L 09/25/2008 - 16:25:37: [AMXX]    [0] headshot_log.sma::plugin_init (line 7)
`666 is offline
Reply



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 15:22.


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