Raised This Month: $ Target: $400
 0% 

1 Simple Question About TE_DLIGHT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Merc3y
Member
Join Date: Dec 2009
Old 12-28-2009 , 01:19   Re: 1 Simple Question About TE_DLIGHT
Reply With Quote #3

Quote:
Originally Posted by Excalibur.007 View Post
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.
I took it from zombieplague source code ?
__________________
How I Wish That I Can Host Without Any Problem.
Merc3y 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