Raised This Month: $ Target: $400
 0% 

Kill while flashbanged


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-25-2017 , 02:29   Kill while flashbanged
Reply With Quote #1

I'm trying to check if a player has killed someone while flashbanged.

Thats the best way to do this?

PHP Code:
public msgScreenFade(iMessageIDiMessageDestinityiEntity)
{    
    const 
MIN_AMMOUNT 100
    
    
if(get_msg_arg_int(4) >= MIN_AMMOUNT 
    
&& get_msg_arg_int(5) >= MIN_AMMOUNT 
    
&& get_msg_arg_int(6) >= MIN_AMMOUNT 
    
&& get_msg_arg_int(7) > 0xC7// I also don't know what it means, someone explain?
    
{
        
PlayerData[iEntity][arPlayerBlinded] = true
        
        
if(task_exists(iEntity+TASK_NOTBLIND))
            
remove_task(iEntity+TASK_NOTBLIND)
            
        
set_task(5.0,"userIsNotBlindAnymore",iEntity+TASK_NOTBLIND)
    }
}

public 
userIsNotBlindAnymore(playerID)
{
    new 
id playerID TASK_NOTBLIND
    
    PlayerData
[id][arPlayerBlinded] = false

And

PHP Code:
public DeathMsg()
{
    new 
iKiller read_data(1)

    if(
PlayerData[iKiller][arPlayerBlinded)
    {
        
// bla bla bla
    
}

__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 01-25-2017 at 02:30.
EFFx is offline
 



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 20:57.


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