View Single Post
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-20-2018 , 04:31   Re: req grenade kill
Reply With Quote #4

Hook deathmsg event check if the 3rd argument is equal to grenade.

PHP Code:

#include <amxmodx>

public plugin_init()
{
      
register_event("DeathMsg""DeathMsg""a")
}

public 
DeathMsg()
{
      new 
szW[32]
      
read_data(4szWcharsmax(szW))
 
      if(
equal(szW"grenade")) client_print(read_data(1), print_chat"You killed someone with hegrenade");


__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-20-2018 at 04:38.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh