Raised This Month: $ Target: $400
 0% 

Green screen after kill + HP


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Manson
Junior Member
Join Date: Sep 2010
Old 06-05-2011 , 16:13   Green screen after kill + HP
Reply With Quote #1

Hello!
I am looking a plugin for my cs 1.6 server.

Green screen after kill + 15 HP. Seen it at one good server. Plugin is very nice.
Manson is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 06-05-2011 , 17:20   Re: Green screen after kill + HP
Reply With Quote #2

yeah. I know one plugin. http://forums.alliedmods.net/showthread.php?p=819969
but it is not working for me.
Can anyone fix it?
Shadymn is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-05-2011 , 17:55   Re: Green screen after kill + HP
Reply With Quote #3

Try this:

PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "Kill Green Fade"
#define VERSION "1.0"
#define AUTHOR "AMXX Community"

#define IsPlayer(%1)    ( 1 <= %1 <= g_iMaxPlayers )

new g_iMaxPlayersmsgScreenFadeamx_kill_fade_amountamx_kill_health

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
amx_kill_fade_amount register_cvar("amx_kill_fade_amount""150")
    
amx_kill_health register_cvar("amx_kill_health""15")
    
    
register_event("DeathMsg""death_event""a""1>0")
    
    
msgScreenFade get_user_msgid("ScreenFade")
    
g_iMaxPlayers get_maxplayers()
}

public 
death_event()
{
    new 
iKiller read_data(1)

    if(
IsPlayer(iKiller) && is_user_alive(iKiller))
    {
        
fadegreen(iKillerget_pcvar_num(amx_kill_fade_amount))
        
set_user_health(iKillerget_user_health(iKiller) + get_pcvar_num(amx_kill_health))
    }
}



stock fadegreen(idammount)
{    
    
//FADE OUT FROM GREEN
    
if (ammount 255)
    
ammount 255
    
    message_begin
(MSG_ONE_UNRELIABLEmsgScreenFade, {0,0,0}, id)
    
write_short(ammount 100)    //Durration
    
write_short(0)        //Hold
    
write_short(0)        //Type
    
write_byte(0)    //R
    
write_byte(0)    //G
    
write_byte(200)    //B
    
write_byte(ammount)    //B
    
message_end()

__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 06-05-2011 , 21:37   Re: Green screen after kill + HP
Reply With Quote #4

thx bibu it's very useful for me.
Screen will fade only player do head shot?
Can you fix this plugin?
Shadymn is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 06-05-2011 , 21:38   Re: Green screen after kill + HP
Reply With Quote #5

Quote:
Originally Posted by Shadymn View Post
yeah. I know one plugin. http://forums.alliedmods.net/showthread.php?p=819969
but it is not working for me.
Can anyone fix it?
you need to compile it locally
__________________
ANTICHRISTUS is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 06-05-2011 , 22:18   Re: Green screen after kill + HP
Reply With Quote #6

i know compile plugins locally. But i don't know how to change screen fade to headshot screen fade.
Shadymn is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 06-06-2011 , 02:11   Re: Green screen after kill + HP
Reply With Quote #7

I will do it when I come home.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu is offline
Shadymn
Senior Member
Join Date: Sep 2010
Old 06-06-2011 , 02:28   Re: Green screen after kill + HP
Reply With Quote #8

yeah hurry man, I have no time for waste.
Shadymn is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 06-06-2011 , 08:36   Re: Green screen after kill + HP
Reply With Quote #9

Headshots only:
PHP Code:
#include <amxmodx>
#include <fun>

#define PLUGIN "Kill Green Fade"
#define VERSION "1.0"
#define AUTHOR "AMXX Community"

#define IsPlayer(%1)    ( 1 <= %1 <= g_iMaxPlayers )

new g_iMaxPlayersmsgScreenFadeamx_kill_fade_amountamx_kill_health

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
amx_kill_fade_amount register_cvar("amx_kill_fade_amount""150")
    
amx_kill_health register_cvar("amx_kill_health""15")
    
    
register_event("DeathMsg""death_event""a""1>0""3=1")
    
    
msgScreenFade get_user_msgid("ScreenFade")
    
g_iMaxPlayers get_maxplayers()
}

public 
death_event()
{
    new 
iKiller read_data(1)

    if(
IsPlayer(iKiller) && is_user_alive(iKiller))
    {
        
fadegreen(iKillerget_pcvar_num(amx_kill_fade_amount))
        
set_user_health(iKillerget_user_health(iKiller) + get_pcvar_num(amx_kill_health))
    }
}



stock fadegreen(idammount)
{    
    
//FADE OUT FROM GREEN
    
if (ammount 255)
    
ammount 255
    
    message_begin
(MSG_ONE_UNRELIABLEmsgScreenFade, {0,0,0}, id)
    
write_short(ammount 100)    //Durration
    
write_short(0)        //Hold
    
write_short(0)        //Type
    
write_byte(0)    //R
    
write_byte(0)    //G
    
write_byte(200)    //B
    
write_byte(ammount)    //B
    
message_end()

__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
bibu
Veteran Member
Join Date: Sep 2010
Old 06-06-2011 , 12:34   Re: Green screen after kill + HP
Reply With Quote #10

Quote:
Originally Posted by Shadymn View Post
yeah hurry man, I have no time for waste.
Best sentence ever. Do it yourself next time.
__________________
Selling tons of my own private works.
Accepting paid work for clans and communities.
Don't hesitate to contact me.
bibu 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:39.


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