Raised This Month: $ Target: $400
 0% 

change zoom mode


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
SnoW
Veteran Member
Join Date: Oct 2008
Location: Finland WisdomNuggets: 8
Old 01-24-2009 , 16:47   Re: change zoom mode
Reply With Quote #10

Quote:
Originally Posted by abē View Post
could you give an example for use prethink - would be great!
Are we sure there isn't better way?
Code:
/*
 Who said I should use engine?!
*/
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fakemeta>
#define PLUGIN "Ab2's AWESOME zoom plugin"
#define VERSION "1.0"
#define AUTHOR "What a hey"
public plugin_init() 
{
 register_plugin(PLUGIN, VERSION, AUTHOR);
 register_forward(FM_PlayerPreThink, "PreThink");
}
public PreThink(id)
{
 if(!is_user_alive(id))
  return FMRES_IGNORED;
 new dummy, more_dummy, weapon;
 weapon = get_user_weapon(id, dummy, more_dummy);
 if(weapon != CSW_AWP)
  return FMRES_IGNORED;
 /* If you wanted that awp zooms like aug*/
 if(cs_get_user_zoom(id) == CS_SET_FIRST_ZOOM || cs_get_user_zoom(id) == CS_SET_SECOND_ZOOM)
  cs_set_user_zoom(id, CS_SET_AUGSG552_ZOOM, 1); 
 return FMRES_IGNORED;
}
SnoW is offline
Send a message via MSN to SnoW
 



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 09:16.


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