Raised This Month: $ Target: $400
 0% 

write file


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 08-17-2022 , 17:40   write file
Reply With Quote #1

PHP Code:
format(content,charsmax(content),"^"%s^" ^"^" ^"t^" ^"ce^" ;%s",authidname)
                
write_file("addons/amxmodx/configs/users.ini",content,-1)
                
server_cmd"amx_reloadadmins" ); 
is there an easier way to add an admin like this? i'm using this in a shop plugin and if someone buys VIP, it will automatically be added to users.ini like this.. and about an ^n to not be written after the last admin in users.ini?
__________________
a simple act of caring creates an endless ripple.
Nutu_ 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 15:32.


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