AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How to read/write a certain file (https://forums.alliedmods.net/showthread.php?t=126641)

OneMoreLevel 05-11-2010 20:00

How to read/write a certain file
 
I've got a file and I want it to write someones steamid when they enter the server. How can I check if the steamid is already in the file?
PHP Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "CS Bank"
#define VERSION "1.0"
#define AUTHOR "OneMoreLevel"

new const CSBank [] = "CSBank.txt"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
}
public 
client_connect (id) {
    new 
steamid[32]
    if (
is_user_connected (id)){
        
get_user_authid(idsteamidcharsmax(steamid))
        
write_fileCSBanksteamid,-1)
    }



Exolent[jNr] 05-11-2010 20:12

Re: How to read/write a certain file
 
http://forums.alliedmods.net/showthread.php?t=46218

OneMoreLevel 05-11-2010 20:30

Re: How to read/write a certain file
 
I've read it and it's pretty hard to understand him. It also doesnt explain what I'm looking for.

Bugsy 05-11-2010 20:44

Re: How to read/write a certain file
 
http://66.228.116.138/showpost.php?p...3&postcount=15

OneMoreLevel 05-11-2010 20:46

Re: How to read/write a certain file
 
Actually, Is there a working CS Banking plugin?

SaM.ThE.MaN 05-12-2010 03:51

Re: How to read/write a certain file
 
yes there is one , just search for bank in here : http://www.amxmodx.org/compiler.php


All times are GMT -4. The time now is 03:36.

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