Raised This Month: $32 Target: $400
 8% 

red Screen headshot of sniper


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abaskime
Junior Member
Join Date: Dec 2020
Old 09-25-2022 , 19:08   red Screen headshot of sniper
Reply With Quote #1

Can someone help me make this plugin screen headshot of sniper?
abaskime is offline
Old 09-25-2022, 20:29
000
This message has been deleted by 000.
abaskime
Junior Member
Join Date: Dec 2020
Old 09-26-2022 , 05:31   Re: red Screen headshot of sniper
Reply With Quote #2

Quote:
Originally Posted by 000 View Post
Hi,

People need more informations.
When I kill someone with a headshot of awp, a red screen will appear
abaskime is offline
Old 09-26-2022, 16:56
000
This message has been deleted by 000.
abaskime
Junior Member
Join Date: Dec 2020
Old 09-26-2022 , 17:34   Re: red Screen headshot of sniper
Reply With Quote #3

Quote:
Originally Posted by 000 View Post
https://forums.alliedmods.net/showpo...94&postcount=3

remove the cvars, change plugin name, check on player death if headshot, get client weapon and check if it awp, change rgb color to red.

Can you?
I found this but I want it to work with awp only can you modify it ?

Quote:
#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_iMaxPlayers, msgScreenFade, amx_kill_fade_amount, amx_kill_health

public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

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(iKiller, get_pcvar_num(amx_kill_fade_amount))
set_user_health(iKiller, get_user_health(iKiller) + get_pcvar_num(amx_kill_health))
}
}



stock fadegreen(id, ammount)
{
//FADE OUT FROM GREEN
if (ammount > 255)
ammount = 255

message_begin(MSG_ONE_UNRELIABLE, msgScreenFade, {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()
}

Last edited by abaskime; 09-26-2022 at 17:43. Reason: add file sma
abaskime is offline
Old 09-27-2022, 04:14
000
This message has been deleted by 000.
abaskime
Junior Member
Join Date: Dec 2020
Old 09-27-2022 , 14:12   Re: red Screen headshot of sniper
Reply With Quote #4

Quote:
Originally Posted by 000 View Post
test it.
It work thank you
abaskime is offline
Old 10-16-2022, 19:31
abaskime
This message has been deleted by abaskime. Reason: mistake
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 03:38.


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