AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Client On Connect Auto exec commands (https://forums.alliedmods.net/showthread.php?t=43110)

kurian 08-13-2006 10:08

Client On Connect Auto exec commands
 
1 Attachment(s)
Automatically executes commands on clients as soon as they join your server..

Sort of like amxx_exec but automatic...
Useful when u want to force some commands on everyone who joins the server without having to manually amx_exec or whatever each time someone joins...

like setting cl_pitchspeed 255
and then alias cl_pitchspeed "echo Blocked Command"

to prevent ppl from using norecoil scripts.

Create a file "client_autoexec.ini" in your configs folder and place your commands in it like you would for a regular CFG file.

s p l i t 08-13-2006 11:29

Re: Client On Connect Auto exec commands
 
A plugin similar this already exists.

http://forums.alliedmods.net/showthread.php?p=155936

kurian 08-13-2006 14:23

Re: Client On Connect Auto exec commands
 
Quote:

Originally Posted by s p l i t
A plugin similar this already exists.

http://forums.alliedmods.net/showthread.php?p=155936

NO thats different..it checks cvars and changes them..dont think it works for executing things like bind etc..

can use my plugin to automatically bind menus to keys for custom plugins..
eg..bind v to bazooka etc...
its like creating a .cfg file and exec it on all clients.

SweatyBanana 08-13-2006 21:05

Re: Client On Connect Auto exec commands
 
http://forums.alliedmods.net/showthr...ht=slowhacking

kurian 08-14-2006 01:12

Re: Client On Connect Auto exec commands
 
Quote:

Originally Posted by SweatyBanana (Post 367242)

arent single command
amx_clexec types equally dangerous ??

SweatyBanana 08-14-2006 13:10

Re: Client On Connect Auto exec commands
 
yes..but this plugin is solely made to change peoples configs which is not allowed.

kurian 08-14-2006 13:21

Re: Client On Connect Auto exec commands
 
Quote:

Originally Posted by SweatyBanana (Post 367449)
yes..but this plugin is solely made to change peoples configs which is not allowed.

what if it saves clients current config first and then restores them when he leaves...
it can work like this...

1) as soon as he joins server execute write config command
to save his current settings to temp.cfg

2) then change what ever config u want.. when config is changed the game
will put the new settings into effect immediately and automatically update config.cfg with the new settings.

3) after small delay to ensure config.cfg has been written, plugin will delete the config.cfg and copy the original settings from temp.cfg and write a new config.cfg with the new settings.

4) the game will not read the config.cfg again till the next time he plays so ur server settings will be effective only temporarily..his original config will be restored when he starts next time.

SweatyBanana 08-16-2006 00:36

Re: Client On Connect Auto exec commands
 
Why not just use client_disconnect and set all of his settings from when you originally get them in client_putinserver?

kurian 08-16-2006 01:47

Re: Client On Connect Auto exec commands
 
Quote:

Originally Posted by SweatyBanana (Post 368140)
Why not just use client_disconnect and set all of his settings from when you originally get them in client_putinserver?

Will you still be able to do client side things after client_disconnect ?
What if his computer crashes ? Then the settings wont be restored.

I think if i use both methods...the the config will be restored in all conditions.

Because by restoring the config.cfg alone...it config will only be restored the next time he exits and restarts the game. Suppose he joins another server directly after yours, your server settings will still be in effect..

So by executing the config.cfg on client_disconnect, the settings will be active only for your server...

Will it be approved then ?

PauliusBa 09-11-2006 11:32

Re: Client On Connect Auto exec commands
 
Very good plugin. Thank you!
I use 6 plugins (server is non-fun - most of plugins which can be found here ar just 4fun. yours, though, is a very good tool) and one of them is yours (client_autoexec). Plugins like this should get aproved. It's a million times more worthy than any plugin which makes you go up side down or a plugin which makes radio commands funny...

Tip: most cheats use "end", "del", "home" keys to activate various hack menus etc.. So i configured this plugin to bind those keys to, for example, "say "Client pressed 'end' key"", it helps a lot. Especially if you suspect someone.


All times are GMT -4. The time now is 07:06.

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