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

How can I edit files in the 'Half Life' directory?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
@MajnuN
New Member
Join Date: Jun 2014
Old 06-09-2014 , 16:54   How can I edit files in the 'Half Life' directory?
Reply With Quote #1

for ex. - if I want to remove file from the directory.

thanks for answering.

Last edited by @MajnuN; 06-09-2014 at 17:00.
@MajnuN is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 06-09-2014 , 16:58   Re: How can I edit files in the 'cstrike' directory?
Reply With Quote #2

IIRC the initial directory is cstrike, so something like
PHP Code:
write_file("server.cfg", ...); 
should work.
__________________
hleV is offline
@MajnuN
New Member
Join Date: Jun 2014
Old 06-09-2014 , 16:59   Re: How can I edit files in the 'cstrike' directory?
Reply With Quote #3

Quote:
Originally Posted by hleV View Post
IIRC the initial directory is cstrike, so something like
PHP Code:
write_file("server.cfg", ...); 
should work.
oh my bad, I mean Files in the 'Half Life' directory. (the one before 'cstrike').

Last edited by @MajnuN; 06-09-2014 at 17:01.
@MajnuN is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2014 , 17:11   Re: How can I edit files in the 'Half Life' directory?
Reply With Quote #4

You can't access beyond the mod directory from a plugin.
__________________
fysiks is offline
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 06-09-2014 , 17:16   Re: How can I edit files in the 'Half Life' directory?
Reply With Quote #5

../ doesn't work anymore?
__________________
Black Rose is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 06-09-2014 , 17:19   Re: How can I edit files in the 'Half Life' directory?
Reply With Quote #6

Quote:
Originally Posted by Black Rose View Post
../ doesn't work anymore?
I sure hope not. I hope it never did.
__________________

Last edited by fysiks; 06-09-2014 at 17:20.
fysiks is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 06-09-2014 , 17:26   Re: How can I edit files in the 'Half Life' directory?
Reply With Quote #7

Quote:
Originally Posted by fysiks View Post
I sure hope not. I hope it never did.
Works on server-side(writing to files on server FTP), but not at client. Although, i think you can precache files that contain "../" in their path.
klippy is offline
@MajnuN
New Member
Join Date: Jun 2014
Old 06-09-2014 , 17:27   Re: How can I edit files in the 'Half Life' directory?
Reply With Quote #8

Quote:
Originally Posted by Black Rose View Post
../ doesn't work anymore?
thanks work.

Quote:
Originally Posted by fysiks View Post
I sure hope not. I hope it never did.
...
@MajnuN is offline
Reply


Thread Tools
Display Modes

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 17:58.


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