Raised This Month: $ Target: $400
 0% 

Whats Wrong I had Done :(


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-19-2021 , 08:46   Re: Whats Wrong I had Done :(
Reply With Quote #6

Replace rg_get_weaponbox_id(pevAttacker) with get_user_weapon(pevAttacker).

You should probably hook DeathMsg instead, because it may happen that the victim dies to a grenade while the attacker is holding a knife.

Quote:
Originally Posted by Bugsy View Post
I've never scripted or know anything about WC3. Do some testing for yourself to see what happens in the DeathMsg event.

DeathMsg
PHP Code:
register_event"DeathMsg" "DeathMsgEvent" "a" );

public 
DeathMsgEvent()
{
     new 
iKiller read_data);
     new 
iVictim read_data);
     new 
iIsHeadshot read_data);
     new 
szWeapon20 ]; read_dataszWeapon charsmaxszWeapon ) );
     
     
client_printprint_chat "%d %d %d %s" iKiller iVictim iIsHeadshot szWeapon );

__________________








CrazY. 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 11:37.


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