AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Is it possible? (https://forums.alliedmods.net/showthread.php?t=168789)

Evaldas.Grigas 10-04-2011 00:30

Is it possible?
 
Is it possible to make client binds when they log into server and when they leave binds are disabled?

ConnorMcLeod 10-04-2011 00:30

Re: Is it possible?
 
No, and next time chose more descriptive title thanks.

Evaldas.Grigas 10-04-2011 00:33

Re: Is it possible?
 
Ok. Sorry for the title. Thanks.

Unkolix 02-20-2013 10:56

Re: Is it possible?
 
It isn't? What if on player connect, check what that key is binded to, save it and bind it to what you want, and on player disconnect bind it to default?

hleV 02-20-2013 11:36

Re: Is it possible?
 
Quote:

Originally Posted by Unkolix (Post 1898325)
It isn't? What if on player connect, check what that key is binded to, save it and bind it to what you want, and on player disconnect bind it to default?

You can't do anything to the client upon their disconnect.

fysiks 02-20-2013 20:58

Re: Is it possible?
 
Quote:

Originally Posted by Unkolix (Post 1898325)
It isn't? What if on player connect, check what that key is binded to, save it and bind it to what you want, and on player disconnect bind it to default?

In addition to what hleV said, it's not possible to know what players' binds are to begin with so even if it was possible to send commands after disconnection, you wouldn't know what binds to set them back to.

Unkolix 02-21-2013 03:21

Re: Is it possible?
 
Well... I saw an event client_disconnect... If it would be possible, is it possible to force player to execc a file with those binds and on disconnect exec the old file?

YamiKaitou 02-21-2013 03:28

Re: Is it possible?
 
The client has already disconnected by the time client_disconnect is called.

hypheni 02-21-2013 03:47

Re: Is it possible?
 
I see many servers which binds several client keys with ads or some other spam. It is not recommended that you play with client's binding.


All times are GMT -4. The time now is 19:35.

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