Raised This Month: $ Target: $400
 0% 

1 Simple Question About TE_DLIGHT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Excalibur.007
Veteran Member
Join Date: Sep 2009
Location: Singapore
Old 12-27-2009 , 22:28   Re: 1 Simple Question About TE_DLIGHT
Reply With Quote #2

Aura? from mah witch ?
EDIT: Put in inside FM_PlayerPreThink
Code:
public fw_PlayerPreThink( id )
{
    if( !is_user_alive( id ) || !zp_get_user_zombie( id ) || zp_get_user_zombie_class( id ) != g_zclass_witch || zp_get_user_nemesis( id ) )
        return FMRES_IGNORED
    
    if( is_user_alive( id ) && zp_get_user_zombie( id ) && zp_get_user_zombie_class( id ) == g_zclass_witch && !zp_get_user_nemesis( id ) )
    {
        if( HasASD[ id ] == 1 )
        {
            static origin[ 3 ]
            get_user_origin( id, origin )
        
            message_begin( MSG_PVS, SVC_TEMPENTITY, origin )
            write_byte( TE_DLIGHT )
            write_coord( origin[0] ) 
            write_coord( origin[1] )
            write_coord( origin[2] )
            write_byte( 10 )
            write_byte( 180 )
            write_byte( 0 )
            write_byte( 0 )
            write_byte( 2 )
            write_byte( 0 )
            message_end( )
        }
    }
    return FMRES_IGNORED
}
You don't have to return 0... It will automatically check when it becomes 0. Look inside my witch code.

Last edited by Excalibur.007; 12-27-2009 at 22:34.
Excalibur.007 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 04:16.


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