Help❓ Store XUID in a file

Posts 1–5 of 5 · Page 1 of 1
❓ Store XUID in a file
Hi guys ,
I'm not an epic modder but i still did my own isnipe without copy paste xD with perk changer , fov changer , custom killstreaks ...
A few days ago i decided to make a new feature , custom stuff for people connected X time . For that i need to store some XUID , and the number of connections in a file and after hours of searching i saw it's possible with logPrint and a little if ( self ishost() ) . but i dunno how i can read / write on another file than my own games_mp.log :/

I think it's an recursive question but i cant find any answer .

Regards .
Vaelio

( if i find something i'll post here to help some newbie like meh )

1st EDIT : ive found an epic website giving lots of stuff : http://www.zeroy.com/script/ and it seem i get my answer XD but the bigger part isn't yet done :P
:S i'm sorry then . ( i'm sure i've look this thread but didn't see that -.- ) i'mdumbguy => EXIT
Your question, I think this can only be done in FourDeltaOne.
You could in AlterIW but they are now 4D1 (FourDeltaOne)

Go look on their forum

/Moving your thread as well. (To help section)
Okay thanks =)

Edit :
Now my problem is that i need to search in the file , and with the function on ZeRoY's cod script ref , i'm kinda lost . i've wrote this :

Code:
onplayerconnect();
{
//normal stuff here 
self thread filestuff();
}

filestuff()
{
		if (self ishost())
	{
// i stock in filenum beause those function such as openfile fgetarg etc are working with file
// number  ( why ? idk either . -.-)
		filenum = openfile("playerlist.txt","read"); //open the file where is stored all guid 
//and number of connections . guid , connections.
		continue = true;
			while (continue)
		{
			id = fgetarg(filenum, 1);// search in GUID list until it match
				if (self.guid == id)
			{
				continue = false; // id matched with guid , no need to search anymore
				co = fgetarg(filenum,2);
				co++;
				fclose(filenum);//close file to open it in write mode
				filenum = openfile("playerlist.txt","write");// open in write mode
				fprintfields(filenum, id,co);//print new value
			}
		}
	}
}
1.but i think it wont work since i dunno how to go to the next line in the file and how to delete previous value of co
2. i've just seen that i've one more error in my script : i need to do this for every player probably with for each players in level.players or something like that ,and keep the .txt only on the server side to prevent cheats.
3. it's a server , not private match , so i dont know really how i can make my function because if(self ishost() ) wont work if i'm not here . i need to do some test with the function to see if it works only on server side by default or all client side.
4. Tryed to just see if those commands work , mod wont load because i need developper access ? WTF ?


i need help seriously guys
Posts 1–5 of 5 · Page 1 of 1

Post a Reply

Similar Threads

Tags

Talk with us