Raised This Month: $ Target: $400
 0% 

Disable all effects on specified player


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 05-21-2013 , 12:44   Disable all effects on specified player
Reply With Quote #1

My problem is that I need some methods to disable all effects on specified players

by "effects" I mean:
glows ( set_user_rendering(tempid, kRenderFxGlowShell, 255, 140, 0, kRenderNormal, 20) of fakemeta.. )

ligthing for example in de aztec ( maybe it is only cl_weather but I'm not sure ).

beampoints and any other effect called by:

Code:
stock Create_TE_Smoke(originSight[3], position[3], iSprite, scale, framerate){
    message_begin( MSG_PVS, SVC_TEMPENTITY, originSight )
    write_byte( TE_SMOKE )
    write_coord( position[0] )            // Position
    write_coord( position[1] )
    write_coord( position[2] )
    write_short( iSprite )                // Sprite index
    write_byte( scale )                    // scale * 10
    write_byte( framerate  )            // framerate
    message_end()
}
Code:
stock Create_TE_EXPLOSION( origin[3], origin2[3], iSprite, scale, frameRate, flags ){

    message_begin( MSG_PVS, SVC_TEMPENTITY, origin )
    write_byte( TE_EXPLOSION )
    write_coord( origin2[0] )            // position (X)
    write_coord( origin2[1] )            // position (Y)
    write_coord( origin2[2]    )            // position (Z)
    write_short( iSprite )                // sprite index
    write_byte( scale )                    // scale in 0.1's
    write_byte( frameRate )                // framerate
    write_byte( flags )                    // flags
    message_end()
}
and any other that called by message_begin ... except maybe for text messages (green,team,..)

maybe it is possible to doesn't show it at specified player.

like this
stop_effects(id)
{
//
message_end(id);
}
or
/* Message flags for set_msg_block() */
#define BLOCK_NOT 0
#define BLOCK_ONCE 1
#define BLOCK_SET 2
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 05-26-2013 , 09:03   Re: Disable all effects on specified player
Reply With Quote #2

Interesting!
Is possible to do this with orpheu?
__________________
sorry my bad english...

Last edited by alonelive; 05-26-2013 at 09:04.
alonelive is offline
President
Member
Join Date: May 2013
Old 05-26-2013 , 09:08   Re: Disable all effects on specified player
Reply With Quote #3

FM_AddToFullPack
President is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 05-26-2013 , 09:27   Re: Disable all effects on specified player
Reply With Quote #4

dreams
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 05-26-2013 , 10:25   Re: Disable all effects on specified player
Reply With Quote #5

trying with nothing..
Code:
#include <amxmodx>
#include <amxmisc>

#include <fakemeta>

public plugin_init() 
{
 register_forward(FM_AddToFullPack, "func_AddToFullPack", 1)
}
 
 
public func_AddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
 return FMRES_SUPERCEDE
}
as about dreams..

what if i will send message buy using msg_one
not msg_all.
and send it for each player, except defined?
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT

Last edited by AngeIII; 05-26-2013 at 10:25.
AngeIII is offline
Send a message via Skype™ to AngeIII
President
Member
Join Date: May 2013
Old 05-26-2013 , 10:27   Re: Disable all effects on specified player
Reply With Quote #6

Quote:
Originally Posted by AngeIII View Post
Code:
public func_AddToFullPack(es_handle, e, ent, host, hostflags, player, pSet)
{
 return FMRES_SUPERCEDE
}
WTF?
President is offline
AngeIII
Senior Member
Join Date: Sep 2007
Location: Latvia
Old 05-26-2013 , 10:29   Re: Disable all effects on specified player
Reply With Quote #7

and what is your advice to use it?
__________________
skype: pavle_ivanof
-=ThQ=-
PRIVATE SUPPORT = PAID SUPPORT
AngeIII is offline
Send a message via Skype™ to AngeIII
President
Member
Join Date: May 2013
Old 05-26-2013 , 13:32   Re: Disable all effects on specified player
Reply With Quote #8

PHP Code:
public func_AddToFullPack(es_handleeenthosthostflagsplayerpSet)
     if(
get_es(es_handleES_RenderFx) == kRenderFxGlowShell)
          
set_es(es_handleES_RenderFxkRenderFxNone);
          
// This will remove the glow of all entities 

Last edited by President; 05-26-2013 at 13:34.
President is offline
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 16:22.


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