Raised This Month: $51 Target: $400
 12% 

Save Binds


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management        Approver:   devicenull (200)
DarkShadowST
Member
Join Date: Apr 2004
Location: Texas
Old 02-06-2005 , 22:14   Save Binds
Reply With Quote #1

Should work for most mods...I think writecfg is a HL cmd

Code:
/*     Save Binds v0.1 - Created by DarkShadowST         Just a handly plugin to make sure a player's binds aren't changed forever.     Don't feel bad about messing w/ a players binds in game anymore :)         CVARS:         sb_mode <0|1> - Enable Bind Saving? */ #include <amxmodx> public plugin_init() {         register_plugin("Save Binds","0.1","DarkShadowST");     register_cvar("sb_mode","1"); } public client_authorized(id) {         if(get_cvar_num("sb_mode") == 1)         client_cmd(id,"writecfg BindBackup");         return PLUGIN_CONTINUE; } public client_disconnect(id) {         if(get_cvar_num("sb_mode") == 1)         client_cmd(id,"exec BindBackup.cfg");         return PLUGIN_CONTINUE; }
Attached Files
File Type: sma Get Plugin or Get Source (savebinds.sma - 2343 views - 684 Bytes)
__________________
My Current Desktop:
Entire

DONT WATCH ME!!! Evil...People...
DarkShadowST is offline
Send a message via AIM to DarkShadowST Send a message via MSN to DarkShadowST Send a message via Yahoo to DarkShadowST
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 02-06-2005 , 22:16  
Reply With Quote #2

Hmm, I do a lot of clexec commands on my server, this could be useful!
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
jackass2
Junior Member
Join Date: May 2007
Old 05-27-2007 , 05:33   Re: Save Binds
Reply With Quote #3

thx



can i use that for client command


Ex :-

amx_exec playername "bind mouse1 kill"


i need something to bind more thing auto!!


that what am talking about, Ex :-

amx_exec playername "exec jack.cfg"


-------------------------------------------------



jack.cfg have insaid

bind mouse1 kill
bind mouse2 kill
bind mouse3 kill
bind .... kill
bind .... kill
bind .... kill
fps_model 1

-------------------


Like That :"(
jackass2 is offline
diamond-optic
Veteran Member
Join Date: May 2005
Old 10-14-2007 , 15:39   Re: Save Binds
Reply With Quote #4

just out of curiosity since this plugin is approved..

does it actually work? how do you exec a command on a client on client_disconnect.. doesnt that forward get called once a player leaves.. and once they do.. they are already gone since it cant 'predict' when a player is about to disconnect???
__________________
diamond-optic is offline
kp_uparrow
Penalized Member
Join Date: Jun 2006
Location: 192.168.0.1
Old 10-15-2007 , 00:33   Re: Save Binds
Reply With Quote #5

Quote:
Originally Posted by diamond-optic View Post
just out of curiosity since this plugin is approved..

does it actually work? how do you exec a command on a client on client_disconnect.. doesnt that forward get called once a player leaves.. and once they do.. they are already gone since it cant 'predict' when a player is about to disconnect???
does it work? on disconnect server still can get the player's name, id, authid, ip, but i dont think you can exec something on them after they disconnected

is there the disconnect part works?
__________________
I USED A SECOND ACCOUNT TO DO MORE KARMA UPS AND DOWNS UNTIL GREENTRYST CAUGHT ME
kp_uparrow is offline
purple_pixie
Veteran Member
Join Date: Jun 2007
Location: Winchester, England
Old 10-15-2007 , 05:49   Re: Save Binds
Reply With Quote #6

Does this have any messages to tell clients this is in place?

There is always a chance that they might want to make changes to their own configs and *not* have it rolled back afterwards ;-)

But definitely a very neat idea.
purple_pixie 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 18:19.


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