AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Approved Plugins (https://forums.alliedmods.net/forumdisplay.php?f=8)
-   -   Suicide (https://forums.alliedmods.net/showthread.php?t=75447)

faTal_eXtreMe 08-05-2008 19:02

Suicide
 
2 Attachment(s)
Suicide Plugin

Basic Plugin, with some different functions, but useful. :mrgreen:

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

djnilo 08-05-2008 19:43

Re: Suicide
 
Quote:

Originally Posted by faTal_eXtreMe (Post 665224)
Suicide Plugin

Basic Plugin, with some different functions, but useful. :mrgreen:

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.

YamiKaitou 08-05-2008 19:47

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

anakin_cstrike 08-05-2008 20:23

Re: Suicide
 
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 ? :lol:

faTal_eXtreMe 08-05-2008 20:43

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

Now 100% working. :up:

anakin_cstrike 08-06-2008 13:21

Re: Suicide
 
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
    
}



faTal_eXtreMe 08-06-2008 15:46

Re: Suicide
 
Oh, really, i don't reminded of the module csx!. :up:

faTal_eXtreMe 08-13-2008 21:59

Re: Suicide
 
Thanks v3x!!!!

Self-Serve 08-14-2008 00:21

Re: Suicide
 
Do you have a screenshot?

fezh 01-03-2009 14:11

Re: Suicide
 
Good job, i'm going to try it ^^


All times are GMT -4. The time now is 17:41.

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