Raised This Month: $ Target: $400
 0% 

[solved] pev effect viewable only to player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-13-2009 , 15:04   [solved] pev effect viewable only to player
Reply With Quote #1

PHP Code:
set_pev(idpev_effectsEF_BRIGHTLIGHT
How can I make this effect only viewable to the player that is set on ?
__________________

Last edited by Hunter-Digital; 03-14-2009 at 17:59. Reason: solved
Hunter-Digital is offline
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-13-2009 , 15:10   Re: pev effect viewable only to player
Reply With Quote #2

You can use FM_AddToFullPack

PHP Code:
#include <amxmodx>
#include <fakemeta>

new special_effect[33]

public 
plugin_init() 
{
    
register_forward(FM_AddToFullPack"addToFullPack"1)
}


public 
addToFullPack(eseenthosthostflagsplayerpSet)
{
    if(
player)
    {
        if( ( 
<= host <= 32 ) && ( <= ent <= 32 ) && host != ent )
        {
            if( 
special_effect[ent] )
            {
                
set_es(esES_EffectsEF_BRIGHTLIGHT)
            }
        }
    }
    
    return 
FMRES_IGNORED

__________________

Last edited by AntiBots; 03-13-2009 at 15:11. Reason: Paste Code with Firefox
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
Hunter-Digital
Veteran Member
Join Date: Aug 2006
Location: In the Game [ro]
Old 03-13-2009 , 17:19   Re: pev effect viewable only to player
Reply With Quote #3

hmm, interesting, thanks
__________________
Hunter-Digital 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 09:00.


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