AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Check when player minimize cs1.6 :) (https://forums.alliedmods.net/showthread.php?t=157058)

.Dare Devil. 05-15-2011 13:53

Check when player minimize cs1.6 :)
 
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 :)

drekes 05-15-2011 14:12

Re: Check when player minimize cs1.6 :)
 
I don't think it's possible to get when he minimized it

.Dare Devil. 05-15-2011 14:18

Re: Check when player minimize cs1.6 :)
 
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. 05-15-2011 14:38

Re: Check when player minimize cs1.6 :)
 
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

drekes 05-15-2011 15:21

Re: Check when player minimize cs1.6 :)
 
You can inform clients to bind it

.Dare Devil. 05-15-2011 15:30

Re: Check when player minimize cs1.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?

bibu 05-15-2011 15:57

Re: Check when player minimize cs1.6 :)
 
Remove dproto. Go away. Thanks.

minimiller 05-15-2011 16:02

Re: Check when player minimize cs1.6 :)
 
when you tab out the engine forces you to do - commands i think
is it possible to hook -forward, -moveleft, -moveright or -back?

fysiks 05-15-2011 18:05

Re: Check when player minimize cs1.6 :)
 
Quote:

Originally Posted by .Dare Devil. (Post 1470008)
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.

ARES[ro] 05-15-2011 18:22

Re: Check when player minimize cs1.6 :)
 
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


All times are GMT -4. The time now is 04:29.

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