Raised This Month: $ Target: $400
 0% 

Create file//Show file_exist


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BloodyNuker
Member
Join Date: Jan 2006
Old 03-29-2006 , 18:46   Create file//Show file_exist
Reply With Quote #1

I donīt know why this donīt create the file in the player pc (c:\Archivos de programa\Valve\cstrike\jj.ini)
Code:
#include <amxmodx> #include <amxmisc> new Plugin_Author[] = "<*[ZOO]*> - Lobo"; new Plugin_Version[] = "V 4.0"; new Plugin_Name[] = "A.C.A Anti cheat Acomerla, Server - Plugin" #define client_models_password "gordon" public plugin_init() { register_plugin(Plugin_Name,Plugin_Version,Plugin_Author); register_concmd("amx_aca","client_info",ADMIN_ALL,"ACA Server-Side Plugin"); register_cvar("acafile", "jj.ini") } public client_info(id) { client_print(id,print_console,"%s %s | Autor: %s", Plugin_Name, Plugin_Version, Plugin_Author); } public client_putinserver(id) { set_task(1.0, "client_createfile", id, "b") } public client_createfile(id) { if( !is_user_connected(id) ) { return PLUGIN_HANDLED; } new szFilename[64] get_cvar_string("acafile",szFilename,63) if (!file_exists(szFilename)) { write_file(szFilename,"; lalalalallalala",-1) server_print("[ACA] Created file jj.ini", szFilename) } return PLUGIN_HANDLED }
BloodyNuker is offline
Twilight Suzuka
bad
Join Date: Jul 2004
Location: CS lab
Old 03-29-2006 , 19:17  
Reply With Quote #2

You can't create a file on the client. Just the server. Not to mention, you don't use the full file path.
__________________
Twilight Suzuka is offline
Send a message via AIM to Twilight Suzuka Send a message via MSN to Twilight Suzuka
BloodyNuker
Member
Join Date: Jan 2006
Old 03-29-2006 , 19:54  
Reply With Quote #3

And I can see if a file in the PC of player exists (in the directory "csrtike")? I can delete files in the PC of the client? for
example config.cfg

"c:\Archivos de programa\Valve\cstrike\config.cfg"
BloodyNuker is offline
FatalisDK
Senior Member
Join Date: Mar 2006
Location: bacon
Old 03-29-2006 , 20:14  
Reply With Quote #4

You can't.
__________________
FatalisDK 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 16:29.


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