Raised This Month: $ Target: $400
 0% 

[REQ] Flash Only Other Players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TeddiBer
Senior Member
Join Date: Oct 2011
Old 06-24-2013 , 09:47   [REQ] Flash Only Other Players
Reply With Quote #1

I need a plugin that will do if a player using a FlashBang, it will only flash other players (ct+terror),
but won't flash himself.

and maybe combing it with flash color:
http://forums.alliedmods.net/showthread.php?p=128351

thanks
TeddiBer is offline
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-24-2013 , 11:13   Re: [REQ] Flash Only Other Players
Reply With Quote #2

PHP Code:
#include <amxmodx>

#define PLUGIN    "Colored Flashbangs"
#define VERSION    "1.0"
#define AUTHOR    "v3x"

new g_nMsgScreenFade

public plugin_init()
{
    
register_plugin(PLUGIN,VERSION,AUTHOR)
    
register_event("ScreenFade","FlashedEvent","be","4=255","5=255","6=255","7>199")
    
g_nMsgScreenFade get_user_msgid("ScreenFade")
    
// Cvars
    
register_cvar("amx_fb_mode""1")
    
register_cvar("amx_fb_r",    "255")
    
register_cvar("amx_fb_g",    "25")
    
register_cvar("amx_fb_b",    "25")
}

public 
FlashedEventid )
{
    new 
iMode get_cvar_num("amx_fb_mode")

    if ( !
iMode ) return PLUGIN_CONTINUE
    
if ( id ) return PLUGIN_HANDLED
    
    
new iRed,iGreen,iBlue

    
switch( iMode )
    {
        case 
1:
        {
            
iRed =   get_cvar_num("amx_fb_r")
            
iGreen get_cvar_num("amx_fb_g")
            
iBlue =  get_cvar_num("amx_fb_b")
        }
        case 
2:
        {
            
iRed =   random_num(0,255)
            
iGreen random_num(0,255)
            
iBlue =  random_num(0,255)
        }
    }

    if ( !( 
iRed ) || !( iGreen ) || !( iBlue ) )
    {
        
iRed =   100
        iGreen 
100
        iBlue 
=  100
    
}

    
message_beginMSG_ONE,g_nMsgScreenFade,{0,0,0},id )
    
write_shortread_data) )    // Duration
    
write_shortread_data) )    // Hold time
    
write_shortread_data) )    // Fade type
    
write_byte iRed )        // Red
    
write_byte iGreen )        // Green
    
write_byte iBlue )        // Blue
    
write_byte read_data) )    // Alpha
    
message_end()

    return 
PLUGIN_HANDLED

TheDS1337 is offline
quilhos
Veteran Member
Join Date: Jun 2010
Old 06-24-2013 , 21:44   Re: [REQ] Flash Only Other Players
Reply With Quote #3

Just use this plugin http://forums.alliedmods.net/showthread.php?t=74091
__________________
ELO RATING SYSTEM - SQL [COMPLETE]
Quote:
Originally Posted by Liverwiz View Post
DDDRRRRAAAAMMMMAAAAA!!!???

Put this shit on pause while i go get some popcorn!!
quilhos is offline
Reply



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 05:31.


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