Raised This Month: $51 Target: $400
 12% 

[Request] Revive full flashed cts that died


Post New Thread Reply   
 
Thread Tools Display Modes
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-17-2018 , 22:05   Re: [Request] Revive full flashed cts that died
Reply With Quote #11

If(!spec)...
iceeedr is offline
Send a message via Skype™ to iceeedr
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-18-2018 , 04:57   Re: [Request] Revive full flashed cts that died
Reply With Quote #12

Make set_task call time lower and call it some times (0.1/40)
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
Old 07-18-2018, 06:07
klippy
This message has been deleted by klippy. Reason: goofed
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-18-2018 , 07:57   Re: [Request] Revive full flashed cts that died
Reply With Quote #13

Quote:
Originally Posted by KliPPy View Post
You are all missing what the OP actually wants:

You all just respawn the flashed CT in your codes.
Yes we respawn but when is not alive only.
About that way, you need to use Ham_Killed forward and you cant get player flash amount so its useless. But anyway he wants revive players who died with flash, actually you can't target with 100% accuracy cause theres chance that he may jumped too badly before flashbang flashed his screen.
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM
Ghosted is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-18-2018 , 08:21   Re: [Request] Revive full flashed cts that died
Reply With Quote #14

Quote:
Originally Posted by KliPPy View Post
You are all missing what the OP actually wants:

You all just respawn the flashed CT in your codes.
PHP Code:
public Respawn(id)
{
    if(!
is_user_connected(id) || is_user_alive(id))
        return
        
    
ExecuteHamB(Ham_CS_RoundRespawnid)

I have to disagree ..
iceeedr is offline
Send a message via Skype™ to iceeedr
D4rkSiD3Rs
Senior Member
Join Date: Jan 2018
Location: Morocco
Old 07-18-2018 , 08:28   Re: [Request] Revive full flashed cts that died
Reply With Quote #15

PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 
#include <fakemeta>
#include <hamsandwich> 

#define PLUGIN "New Plug-In" 
#define VERSION "1.0" 
#define AUTHOR "author" 

new bool:bFlashed[33

public 
plugin_init()  

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_message(get_user_msgid"ScreenFade" ), "MessageScreenFade"


public 
MessageScreenFade(iMsgIdiDestid

    if(
get_msg_arg_int) == 255 && get_msg_arg_int) == 255 && get_msg_arg_int) == 255
    { 
        new 
iAlpha get_msg_arg_int); 
        if( 
iAlpha == 200 || iAlpha == 255 && cs_get_user_team(id) == CS_TEAM_CT
        { 
            new 
spec pev(idpev_iuser2);
            
bFlashed[spec] = true 
            set_task
(2.0"Respawn"spec)
        } 
    } 


public 
Respawn(id

    if(!
is_user_connected(id) || is_user_alive(id)) 
        return 
         
    
ExecuteHamB(Ham_CS_RoundRespawnid
    
bFlashed[id] = false 


public 
client_putinserver(id

    
bFlashed[id] = false 


public 
client_disconnect(id

    
bFlashed[id] = false 

D4rkSiD3Rs is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-18-2018 , 08:36   Re: [Request] Revive full flashed cts that died
Reply With Quote #16

Quote:
Originally Posted by iceeedr View Post
PHP Code:
public Respawn(id)
{
    if(!
is_user_connected(id) || is_user_alive(id))
        return
        
    
ExecuteHamB(Ham_CS_RoundRespawnid)

I have to disagree ..
Oh sorry, don't mind me, totally missed that.
__________________
klippy is offline
Snake.
Senior Member
Join Date: Jul 2017
Old 07-18-2018 , 09:49   Re: [Request] Revive full flashed cts that died
Reply With Quote #17

Quote:
Originally Posted by D4rkSiD3Rs View Post
PHP Code:
#include <amxmodx> 
#include <amxmisc> 
#include <cstrike> 
#include <fakemeta>
#include <hamsandwich> 

#define PLUGIN "New Plug-In" 
#define VERSION "1.0" 
#define AUTHOR "author" 

new bool:bFlashed[33

public 
plugin_init()  

    
register_plugin(PLUGINVERSIONAUTHOR
    
register_message(get_user_msgid"ScreenFade" ), "MessageScreenFade"


public 
MessageScreenFade(iMsgIdiDestid

    if(
get_msg_arg_int) == 255 && get_msg_arg_int) == 255 && get_msg_arg_int) == 255
    { 
        new 
iAlpha get_msg_arg_int); 
        if( 
iAlpha == 200 || iAlpha == 255 && cs_get_user_team(id) == CS_TEAM_CT
        { 
            new 
spec pev(idpev_iuser2);
            
bFlashed[spec] = true 
            set_task
(2.0"Respawn"spec)
        } 
    } 


public 
Respawn(id

    if(!
is_user_connected(id) || is_user_alive(id)) 
        return 
         
    
ExecuteHamB(Ham_CS_RoundRespawnid
    
bFlashed[id] = false 


public 
client_putinserver(id

    
bFlashed[id] = false 


public 
client_disconnect(id

    
bFlashed[id] = false 

Still does not work bro
Snake. is offline
Send a message via Skype™ to Snake.
Ghosted
Veteran Member
Join Date: Apr 2015
Location: Georgia
Old 07-18-2018 , 10:31   Re: [Request] Revive full flashed cts that died
Reply With Quote #18

Code:
#include <amxmodx>  
#include <amxmisc>  
#include <cstrike>  
#include <fakemeta> 
#include <hamsandwich>  

#define PLUGIN "New Plug-In"  
#define VERSION "1.0"  
#define AUTHOR "missing author"  

public plugin_init()   
{  
    register_plugin(PLUGIN, VERSION, AUTHOR)  
    register_message(get_user_msgid( "ScreenFade" ), "MessageScreenFade")  
}  

public MessageScreenFade(iMsgId, iDest, id)  
{  
    if(get_msg_arg_int( 4 ) == 255 && get_msg_arg_int( 5 ) == 255 && get_msg_arg_int( 6 ) == 255)  
    {  
        if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)  
        {  
            set_task(0.1, "Respawn", id, _, _, "a", 40) 
        }  
    }  
}  

public Respawn(id)  
{  
    if(!is_user_connected(id) || is_user_alive(id))  
        return  
          
    ExecuteHamB(Ham_CS_RoundRespawn, id)  
}
__________________

[MOD] CS Weapon Mod V1.7.1
[MM] MetaMod-C V1.0
[MOD] CS NPC Mod (5%)


Probably Left AM

Last edited by Ghosted; 07-18-2018 at 11:18.
Ghosted is offline
iceeedr
Veteran Member
Join Date: Apr 2017
Location: Brazil
Old 07-18-2018 , 11:10   Re: [Request] Revive full flashed cts that died
Reply With Quote #19

Try this bro.

Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fakemeta> #include <hamsandwich> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" new bool:bFlashed[33] public plugin_init()  {     register_plugin(PLUGIN, VERSION, AUTHOR)     register_message(get_user_msgid( "ScreenFade" ), "MessageScreenFade") } public MessageScreenFade(iMsgId, iDest, id) {     if(get_msg_arg_int( 4 ) == 255 && get_msg_arg_int( 5 ) == 255 && get_msg_arg_int( 6 ) == 255)     {         new iAlpha = get_msg_arg_int( 7 );         if( iAlpha == 200 || iAlpha == 255 && cs_get_user_team(id) == CS_TEAM_CT)         {             new spec = pev(id, pev_iuser2);             if(spec)                 return                         bFlashed[id] = true             set_task(2.0, "Respawn", id)         }     } } public Respawn(id) {     if(!is_user_connected(id) || is_user_alive(id))         return         ExecuteHamB(Ham_CS_RoundRespawn, id)     bFlashed[id] = false } public client_putinserver(id) {     bFlashed[id] = false } public client_disconnect(id) {     bFlashed[id] = false }
iceeedr is offline
Send a message via Skype™ to iceeedr
sekac
Senior Member
Join Date: Nov 2016
Old 07-18-2018 , 13:39   Re: [Request] Revive full flashed cts that died
Reply With Quote #20

Why revive the CTs instead of making CTs immune to flashbangs?
sekac 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 11:42.


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