Raised This Month: $ Target: $400
 0% 

Suicide


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-06-2008 , 13:21   Re: Suicide
Reply With Quote #6

Use:
PHP Code:
if(killer == victim && weapon == CSW_HEGRENADE && get_pcvar_num(sc) == 1
Or, without csx:
PHP Code:
public plugin_init() register_event("DeathMsg","hook_death","a");
public 
hook_death()
{
    new 
killer read_data(1);
    new 
victim read_data(2);
    new 
kname[32],vname[32];
    
get_user_name(killer,kname,31);
    
get_user_name(victim,vname,31);
    new 
weapon[3]; read_data(4,weapon,2);
    if(
killer == victim && weapon[1] = 'r' /* && youre cvar */)
    {
        
// sucide with grenade
    
}

__________________

anakin_cstrike 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 23:50.


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