Raised This Month: $ Target: $400
 0% 

Suicide


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-05-2008 , 20:43   Re: Suicide
Reply With Quote #1

We do not have to use csx, anyway, thank you for your guidance!

Now 100% working.
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-06-2008 , 13:21   Re: Suicide
Reply With Quote #2

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
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-06-2008 , 15:46   Re: Suicide
Reply With Quote #3

Oh, really, i don't reminded of the module csx!.
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
Reply


Thread Tools
Display Modes

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:51.


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