Raised This Month: $32 Target: $400
 8% 

Client On Connect Auto exec commands


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
kurian
Member
Join Date: Aug 2005
Old 08-13-2006 , 10:08   Client On Connect Auto exec commands
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (client_autoexec.sma - 10212 views - 970 Bytes)
kurian is offline
s p l i t
Senior Member
Join Date: May 2006
Location: US, NC
Old 08-13-2006 , 11:29   Re: Client On Connect Auto exec commands
Reply With Quote #2

A plugin similar this already exists.

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

Last edited by s p l i t; 08-13-2006 at 11:54.
s p l i t is offline
Send a message via AIM to s p l i t Send a message via MSN to s p l i t
kurian
Member
Join Date: Aug 2005
Old 08-13-2006 , 14:23   Re: Client On Connect Auto exec commands
Reply With Quote #3

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.
kurian is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-13-2006 , 21:05   Re: Client On Connect Auto exec commands
Reply With Quote #4

http://forums.alliedmods.net/showthr...ht=slowhacking
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
kurian
Member
Join Date: Aug 2005
Old 08-14-2006 , 01:12   Re: Client On Connect Auto exec commands
Reply With Quote #5

Quote:
Originally Posted by SweatyBanana View Post
arent single command
amx_clexec types equally dangerous ??
kurian is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-14-2006 , 13:10   Re: Client On Connect Auto exec commands
Reply With Quote #6

yes..but this plugin is solely made to change peoples configs which is not allowed.
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
kurian
Member
Join Date: Aug 2005
Old 08-14-2006 , 13:21   Re: Client On Connect Auto exec commands
Reply With Quote #7

Quote:
Originally Posted by SweatyBanana View Post
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.
kurian is offline
SweatyBanana
BANNED
Join Date: Sep 2005
Location: LOL
Old 08-16-2006 , 00:36   Re: Client On Connect Auto exec commands
Reply With Quote #8

Why not just use client_disconnect and set all of his settings from when you originally get them in client_putinserver?
SweatyBanana is offline
Send a message via AIM to SweatyBanana Send a message via Yahoo to SweatyBanana
kurian
Member
Join Date: Aug 2005
Old 08-16-2006 , 01:47   Re: Client On Connect Auto exec commands
Reply With Quote #9

Quote:
Originally Posted by SweatyBanana View Post
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 ?
kurian is offline
PauliusBa
Senior Member
Join Date: Aug 2006
Location: Lithuania
Old 09-11-2006 , 11:32   Re: Client On Connect Auto exec commands
Reply With Quote #10

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.
PauliusBa 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 12:58.


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