Raised This Month: $ Target: $400
 0% 

SetFOV and kick


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Tonda
Senior Member
Join Date: Aug 2009
Old 11-24-2010 , 09:35   Re: SetFOV and kick
Reply With Quote #7

Quote:
Originally Posted by ConnorMcLeod View Post
Should set pdata m_iFOV instead of sending the message


Code:
#define XO_PLAYER&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;5</p><p>#define m_iFOV&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;363</p><p>&nbsp;</p><p>SetUserFov(id, iFOV)</p><p>{</p><p>&nbsp;&nbsp;&nbsp;&nbsp;set_pdata_int(id, m_iFOV, iFOV, XO_PLAYER)</p><p>&nbsp;&nbsp;&nbsp;&nbsp;set_pev(id, pev_fov, iFOV)</p><p>}
So, what you say, this is the same with better way ?

Code:
if (cs_get_user_team(id) == CS_TEAM_CT)
        {
        new gmsg_SetFOV     = get_user_msgid("SetFOV");
        if(is_user_alive(id))
        {
        message_begin( MSG_ONE, gmsg_SetFOV, { 0, 0, 0 }, id );
        write_byte( 0 );
        message_end( );
        }
        }
        return PLUGIN_HANDLED;
Tonda 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 11:18.


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