Raised This Month: $ Target: $400
 0% 

Grenade Bonus


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 05-08-2010 , 07:41   Re: Grenade Bonus
Reply With Quote #6

Quote:
Originally Posted by DjOptimuS View Post
"killer" is not the userid, killer is the killer's name, read through event.
Killer is the players id (not userid). To obtain the players name in DeathMsg you must use get_user_name( killer , [...] ).
  • DeathMsg
    • byte KillerID
    • byte VictimID
    • byte IsHeadshot
    • string TruncatedWeaponName

Why not check all conditions with a single if()?
PHP Code:
public client_deathiKiller iVictim iWeapon iHitplace TK )
{
    if ( ( 
iWeapon == CSW_HEGRENADE ) && !TK && is_user_aliveiKiller ) )
    {
        
give_item(iKiller"weapon_hegrenade")
    }

__________________

Last edited by Bugsy; 05-08-2010 at 07:49.
Bugsy 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 03:45.


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