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

Fall Damage Fade


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FN_Productions
Member
Join Date: Mar 2014
Old 09-04-2014 , 05:02   Fall Damage Fade
Reply With Quote #1

Hi i was wondering if someone could make me a simple plugin that flash screen red for 1 fast second when they fall from fall damage

no i am not wanting this plugin https://forums.alliedmods.net/showth...t=86110&page=3

just a simple plugin for normal server that when you fall from high building and hit ground and loose health your screen flash red for 1 second
FN_Productions is offline
Send a message via Skype™ to FN_Productions
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-04-2014 , 05:51   Re: Fall Damage Fade
Reply With Quote #2

I want this too
Syturi0 is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 09-04-2014 , 06:27   Re: Fall Damage Fade
Reply With Quote #3

Tested and works.
PHP Code:
#include <amxmodx>
#include <hlsdk_const>
#include <hamsandwich>

new g_msgScreenFade

public plugin_init() {
    
register_plugin("Fall Damage Flash""1.0""Flicker")
    
    
RegisterHam(Ham_TakeDamage"player""onHamTakeDamage"true)
    
g_msgScreenFade get_user_msgid("ScreenFade")
}

public 
onHamTakeDamage(victiminflictorattackerFloat:damagedmgbits)
{
    if(
dmgbits DMG_FALL)
    {
        
message_begin(MSG_ONE_UNRELIABLEg_msgScreenFade_victim)
        
write_short(1<<10)
        
write_short(1<<10)
        
write_short(1<<12)
        
write_byte(250)
        
write_byte(0)
        
write_byte(0)
        
write_byte(125)
        
message_end()
    }

__________________

Last edited by Flick3rR; 09-04-2014 at 13:13.
Flick3rR is offline
Send a message via Skype™ to Flick3rR
FN_Productions
Member
Join Date: Mar 2014
Old 09-04-2014 , 08:10   Re: Fall Damage Fade
Reply With Quote #4

Works Perfect Thanks! @Flick3rR
FN_Productions is offline
Send a message via Skype™ to FN_Productions
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 09-04-2014 , 09:39   Re: Fall Damage Fade
Reply With Quote #5

Code:
!is_user_connected(attacker)

Huh?
__________________
Kia is offline
Flick3rR
Veteran Member
Join Date: Feb 2014
Location: Bulgaria, Stara Zagora
Old 09-04-2014 , 13:13   Re: Fall Damage Fade
Reply With Quote #6

Quote:
Originally Posted by Kia View Post
Code:
!is_user_connected(attacker)

Huh?
Аttacker is not a player. I just found it some kind of good in that case, but it's really senseless. Will remove it.
__________________
Flick3rR is offline
Send a message via Skype™ to Flick3rR
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 01:37.


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