AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Create file//Show file_exist (https://forums.alliedmods.net/showthread.php?t=26268)

BloodyNuker 03-29-2006 18:46

Create file//Show file_exist
 
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 }

Twilight Suzuka 03-29-2006 19:17

You can't create a file on the client. Just the server. Not to mention, you don't use the full file path.

BloodyNuker 03-29-2006 19:54

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"

FatalisDK 03-29-2006 20:14

You can't.


All times are GMT -4. The time now is 16:29.

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