Raised This Month: $ Target: $400
 0% 

Detect HS?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 03-22-2006 , 15:09   Detect HS?
Reply With Quote #1

How do i get if a player HS someone else?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
Greenberet
AMX Mod X Beta Tester
Join Date: Apr 2004
Location: Vienna
Old 03-22-2006 , 15:14  
Reply With Quote #2

Code:
public plugin_init() {     register_plugin("Message Demo", "1.0", "BAILOPAN")     //this message informs everyone of a death, so we use     // flag "a" - global event     register_event("DeathMsg", "hook_death", "a") } public hook_death() {     new Killer = read_data(1) //get the first message parameter     new Victim = read_data(2) //get the second message parameter     new headshot = read_data(3) //was this a headshot?     new weapon[32]     read_data(4, weapon, 31)  //get the weapon name }

source: AMXX WIKI
Greenberet is offline
Send a message via ICQ to Greenberet Send a message via MSN to Greenberet
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 16:45.


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