Raised This Month: $ Target: $400
 0% 

Create file//Show file_exist


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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