Raised This Month: $ Target: $400
 0% 

Set view


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-07-2013 , 06:23   Set view
Reply With Quote #1

Is it possible to set the view when you are ducking (pressing CTRL)

all the time?



I dont want to force CTRL i just want to set the view
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
kiki33hun
Veteran Member
Join Date: Jul 2011
Location: Magyarország
Old 09-07-2013 , 07:05   Re: Set view
Reply With Quote #2

Try:

PHP Code:
public client_PreThink(id)
{
       if(
is_user_alive(id))
       {
                if(
pev(id,pev_button) & IN_DUCK)
        {
            
//Set your view while ducking
                 
}
                 else 
                 {
                      
//reset view to normal
                 
}
      }

__________________

Last edited by kiki33hun; 09-07-2013 at 07:30. Reason: fix
kiki33hun is offline
ironskillz1
AlliedModders Donor
Join Date: Jul 2012
Location: Sweden
Old 09-07-2013 , 07:22   Re: Set view
Reply With Quote #3

I didnt want 3rd person view.......


I want to set the view when you duck all the time




So if you stand up you got the view when you ducking
__________________
I have many private and unique plugins for Jailbreak and Hide'N'Seek. PM me for more info.

Pm me.

Check out my roulette site.
ironskillz1 is offline
Send a message via Skype™ to ironskillz1
Reply



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


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