Quote:
Originally Posted by Arkshine
new id = directly.
|
Ok, so this will be the final version
VEN's one seems too complicated for me to understand and it has too much code...
Thanx for helping me out with this
_____________________________________________ ___________________
_____________________________________________ ___________________
I've got this until now and I think I'm stuck...
PHP Code:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>
#define PLUGIN "UnZoom"
#define VERSION "0.1"
#define AUTHOR "Connor/Arkshine/Exolent/80T"
new Ham:Ham_Player_ResetMaxSpeed = Ham_Item_PreFrame
#define m_pPlayer 41
#define m_iFOV 363
#define m_bResumeZoom 110
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR )
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_awp", "Sniper_UnScope" )
RegisterHam( Ham_Weapon_PrimaryAttack, "weapon_scout", "Sniper_UnScope" )
}
public Sniper_UnScope( iEnt )
{
new id = get_pdata_cbase( iEnt, m_pPlayer, 4 )
if( get_pdata_int( id, m_iFOV, 5 ) < 90 )
{
set_pdata_cbase( id, m_bResumeZoom, 0, 5 )
ExecuteHamB( Ham_Player_ResetMaxSpeed, id );
}
}
I can't find the player offset in this list
http://wiki.amxmodx.org/CBasePlayer_%28CS%29 and I don't know how to use it...
I should have stick to my modeling... My scripting aptitudes are 0 tending to -1
...
__________________