Raised This Month: $95 Target: $400
 23% 

Suicide


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Event Related        Approver:   v3x (159)
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-05-2008 , 20:02   Suicide
Reply With Quote #1

Suicide Plugin

Basic Plugin, with some different functions, but useful.

Thanks! All comments or criticisms are welcome!

Cvars

Only one... xD

sc_on 1|0 enable|active (default "1")

This plugin... When someone is suicidal with nade (HE), a message will be sent to screen, easy ...

The difference is to include funny messages when someone is killing in the case put the name of the suicide and then add, example:

"Player was killed ... Admin: Ban Player permanently"

Thanks anakin for details!

SS
http://img398.**************/img398/6...hudmessxa0.png
Attached Files
File Type: rar sounds.rar (135.4 KB, 1906 views)
File Type: sma Get Plugin or Get Source (sc_en.sma - 2774 views - 1.4 KB)

Last edited by Brad; 09-20-2009 at 12:37. Reason: /sighface. unbolded everything
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
djnilo
Member
Join Date: Jun 2008
Location: Sweden
Old 08-05-2008 , 20:43   Re: Suicide
Reply With Quote #2

Quote:
Originally Posted by faTal_eXtreMe View Post
Suicide Plugin

Basic Plugin, with some different functions, but useful.

Thanks! All comments or criticisms are welcome!

Pending the approval!
I'm going to try it on my server.
You should make a small list of what makes this plugin.
__________________
www.djnilo.swedish.nu <-New Website




djnilo is offline
Send a message via MSN to djnilo
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 08-05-2008 , 20:47   Re: Suicide
Reply With Quote #3

Please provide a better description. Make sure you include cvars and commands that you use. Also, might be wise to spell check your hudmessages
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (intervening in a thread, asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
anakin_cstrike
Veteran Member
Join Date: Nov 2007
Location: Romania
Old 08-05-2008 , 21:23   Re: Suicide
Reply With Quote #4

1. Use deathmsg instead of csx. However, you forgot to include.
2.
Quote:
When someone is suicidal with nade (HE)
and
Quote:
if(killer == victim && get_pcvar_num(sc) == 1)
so....where is the grenade suicide ?
3. Why are you sending 2 messages and sounds ? 1 is enough
4.
Quote:
Credits: faTal_eXtreMe & KeNnE X LoOP */
you give credit to youreself ?
__________________

anakin_cstrike is offline
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-05-2008 , 21:43   Re: Suicide
Reply With Quote #5

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

Oh, really, i don't reminded of the module csx!.
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
faTal_eXtreMe
Junior Member
Join Date: May 2008
Location: Brazil
Old 08-13-2008 , 22:59   Re: Suicide
Reply With Quote #8

Thanks v3x!!!!
faTal_eXtreMe is offline
Send a message via MSN to faTal_eXtreMe
Self-Serve
Member
Join Date: Jul 2008
Old 08-14-2008 , 01:21   Re: Suicide
Reply With Quote #9

Do you have a screenshot?
__________________
Self-Serve is offline
Send a message via AIM to Self-Serve
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 01-03-2009 , 15:11   Re: Suicide
Reply With Quote #10

Good job, i'm going to try it ^^
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 01-03-2009 at 15:22.
fezh is offline
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 14:28.


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