AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect HS? (https://forums.alliedmods.net/showthread.php?t=25877)

SweatyBanana 03-22-2006 15:09

Detect HS?
 
How do i get if a player HS someone else?

Greenberet 03-22-2006 15:14

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


All times are GMT -4. The time now is 16:45.

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