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

Crazy Crosshair


Post New Thread Reply   
 
Thread Tools Display Modes
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 07-16-2005 , 13:40  
Reply With Quote #21

Easy fix:

writecfg backup.cfg on connect

exec backup.cfg on disconnect.
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-16-2005 , 14:30  
Reply With Quote #22

Quote:
Originally Posted by devicenull
Easy fix:

writecfg backup.cfg on connect

exec backup.cfg on disconnect.
Done.
__________________
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
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-18-2005 , 15:36  
Reply With Quote #23

Quote:
Originally Posted by v3x
Quote:
Originally Posted by devicenull
Easy fix:

writecfg backup.cfg on connect

exec backup.cfg on disconnect.
Done.
so you're telling me that the person recieves this last command right before they leave the server. i always believe that u dont recieve any command after u leave the server. This sounds like an oppertunity to test "public client_disconnect"
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-18-2005 , 16:52  
Reply With Quote #24

Yo, tested the client_disconnect public. as i suspected, the command aint executed as the person desconnects. It does seem to work when the user is connected and the map changes, or the server reloads.

try this:
Code:
if(file_exists("autoexec.cfg")
{
    write_file(^, defaults here)
}
else
{
    create file, write it
}
handled
then setting would be restored once they startup again.
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-23-2005 , 23:47  
Reply With Quote #25

Code:
public client_connect( id )
{
	set_task( 20.0,"CrossHairInit",id )
	client_cmd( id,"writecfg backup.cfg" )
}
even if the disconnect did work, when u use the writecfg command, you do not add the .cfg on the end or it will make the file backup.cfg.cfg
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-23-2005 , 23:59  
Reply With Quote #26

Well.. Then they can change their settings back to normal, it takes a whole 3 seconds to do that.
__________________
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
kentor
Junior Member
Join Date: Nov 2004
Old 07-25-2005 , 18:50  
Reply With Quote #27

is it possible for admins to stop/pause this plugin?
kentor is offline
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-25-2005 , 19:19  
Reply With Quote #28

Quote:
Originally Posted by kentor
is it possible for admins to stop/pause this plugin?
Cvar added.

NOTE: It will NOT change your crosshair settings back to the original ones you had before, it will stay on the ones that were run from the loop last.
__________________
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
GHW_Chronic
SourceMod Donor
Join Date: Sep 2004
Location: Texas
Old 07-25-2005 , 23:31  
Reply With Quote #29

Quote:
Originally Posted by v3x
Quote:
Originally Posted by kentor
is it possible for admins to stop/pause this plugin?
Cvar added.

NOTE: It will NOT change your crosshair settings back to the original ones you had before, it will stay on the ones that were run from the loop last.
Why? Y not amx_crazyoff 1 will client_cmd(i,"exec config.cfg")? (Genius, i know)
GHW_Chronic is offline
Send a message via AIM to GHW_Chronic
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 07-26-2005 , 06:25  
Reply With Quote #30

Already thought about it.
__________________
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
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 21:01.


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