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 12-30-2008 , 06:58   Re: change zoom mode
Reply With Quote #3

You are only allowed to bump after 2 weeks(read the rules). I haven't done with these zooms but if you wanted that user can't zoom, I guess it would be...
Code:
if(cs_get_user_zoom(id) != 1)
       cs_set_user_zoom(id, 1, 0);
Edit: Oh, you wanted it with awp cvar... Then you do (with pcvars, you should use them)
Code:
new my_cvar;
 
public plugin_init()
    my_cvar = register_cvar("awp_cvar", "1");
public function()
//When you use it here, read it like this:
new value = get_pcvar_num(my_cvar);
if(value == 1)
  //do your thingys

Last edited by SnoW; 12-30-2008 at 07:05.
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