Raised This Month: $ Target: $400
 0% 

Check when player minimize cs1.6 :)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 13:53   Check when player minimize cs1.6 :)
Reply With Quote #1

Hello

Is it possible to check this.

In my mod there are some problems like the rain ambience, it stop when client minimize cs and rain ambience sound start again when plugin call this client_cmd spk dir/file.wav

So if i know how to check this then i can do , when player minimize cs1.6 then he restore it and then is client_cmd Callrainamb

and

register_clcmd("Callrainamb", "pl_ambstart")

And rain sound working again

I found a one way

client_cmd(id, "bind h ^"+commandmenu;Callrainamb^"")

But this is slow hack and very crab, when client press h then he lisen 2 rain sound

Please help me
.Dare Devil. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-15-2011 , 14:12   Re: Check when player minimize cs1.6 :)
Reply With Quote #2

I don't think it's possible to get when he minimized it
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 14:18   Re: Check when player minimize cs1.6 :)
Reply With Quote #3

Just write console bind h ^"+commandmenu;say i minimized cs"
and minimized, this works but there is some bind on cs what players cant press?
.Dare Devil. is offline
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 14:38   Re: Check when player minimize cs1.6 :)
Reply With Quote #4

I found a way how to check when client minimize cs1.6

Just bind % "+commandmenu; Call_effects"

You cant press %
This is nohting key ( i dont have this key )

And when you minimize cs1.6 then this bind % call this "call_effects"

But the problem is the steam, client must write this console , server cant do this.
This sucks :S
.Dare Devil. is offline
drekes
Veteran Member
Join Date: Jul 2009
Location: Vault 11
Old 05-15-2011 , 15:21   Re: Check when player minimize cs1.6 :)
Reply With Quote #5

You can inform clients to bind it
__________________

Quote:
Originally Posted by nikhilgupta345 View Post
You're retarded.
drekes is offline
Send a message via MSN to drekes
.Dare Devil.
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 15:30   Re: Check when player minimize cs1.6 :)
Reply With Quote #6

Yes put, someone do not bind and then is bug : )

But i have one question ( i dont know so much steam cs engine )

If client are steam then client_cmd bind key command not working?
.Dare Devil. is offline
bibu
Veteran Member
Join Date: Sep 2010
Old 05-15-2011 , 15:57   Re: Check when player minimize cs1.6 :)
Reply With Quote #7

Remove dproto. Go away. Thanks.
bibu is offline
minimiller
Veteran Member
Join Date: Aug 2007
Location: United Kingdom
Old 05-15-2011 , 16:02   Re: Check when player minimize cs1.6 :)
Reply With Quote #8

when you tab out the engine forces you to do - commands i think
is it possible to hook -forward, -moveleft, -moveright or -back?
__________________
minimiller is offline
Send a message via MSN to minimiller
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 05-15-2011 , 18:05   Re: Check when player minimize cs1.6 :)
Reply With Quote #9

Quote:
Originally Posted by .Dare Devil. View Post
I found a way how to check when client minimize cs1.6

Just bind % "+commandmenu; Call_effects"

You cant press %
This is nohting key ( i dont have this key )

And when you minimize cs1.6 then this bind % call this "call_effects"
Does NOT work.
__________________
fysiks is offline
ARES[ro]
Senior Member
Join Date: Apr 2010
Old 05-15-2011 , 18:22   Re: Check when player minimize cs1.6 :)
Reply With Quote #10

also, when a player is alt-tabbed IN_JUMP has no effect on him... maybe you can create a test for it... like make a player jump and if he really jumps then he is ingame, or else hes minimized
__________________
okay
ARES[ro] is offline
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 04:29.


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