Raised This Month: $ Target: $400
 0% 

Writing/Reading File Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
stupok
Veteran Member
Join Date: Feb 2006
Old 03-04-2006 , 22:44  
Reply With Quote #5

Quote:
DETAILS

"amx_addentuser" should check to see if the target's steamid is already in the DF_admins.txt file, and if the steamid is not found, or if there is a "0" after "password;", add the target to the file or change the "0" to a "1".

The format for a user in the DF_admins.txt (Ent users file) is this:
Code:
Code:
STEAM_0:0:123456;password;1 //target's name

"amx_delentuser" should check to see if the target's steamid is already in the DF_admins.txt file, and if the steamid is found, change the "1" to a "0" in the above line (steamid;password;0).
That is what I hope to accomplish. I need help with reading txt files and writing txt files in order to write the plugin.
stupok is offline
 



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 20:16.


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