Quote:
Originally Posted by ConnorMcLeod
Should set pdata m_iFOV instead of sending the message
Code:
#define XO_PLAYER 5</p><p>#define m_iFOV &nb sp; 363</p><p> </p><p>SetUserFov(id, iFOV)</p><p>{</p><p> set_pdata_int(id, m_iFOV, iFOV, XO_PLAYER)</p><p> 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;