Raised This Month: $ Target: $400
 0% 

Visuals


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Wilson [29th ID]
Veteran Member
Join Date: Nov 2005
Location: London
Old 10-09-2007 , 03:44   Re: Visuals
Reply With Quote #2

Man, I sware there was a topic just like this like a month ago, but I can't find it. If anyone knows where it is, please link it.

Anyway, for something this complex, you will have to hook AddToFullPack. There are two parameters that will guide you in that hook - ent, and host. Host is the viewer, and ent is who is being viewed.

Make sure you check that the arg "player" is true.

It'll look something like this...

Code:
public plugin_init() {    register_forward( FM_AddToFullPack, "hook_AddToFullPack_post", 1 ); } public hook_AddToFullPack_post( es_handle,e,ent,host,hostflags,player,pSet ) {    if( !player ) return FMRES_IGNORED;    if( host == person you want to be viewing && ent == person you want to be viewed )    {       // Make him glow...you can do this more proficiently with set_es()    }    return FMRES_IGNORED; }
__________________

Day of Defeat AMXX Community

FakeMeta Research . Voice Proximity . Advanced Deploy . Technician
Wilson [29th ID] is offline
Send a message via ICQ to Wilson [29th ID] Send a message via AIM to Wilson [29th ID] Send a message via MSN to Wilson [29th ID] Send a message via Yahoo to Wilson [29th ID]
 



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:13.


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