Results 1 to 5 of 5
  1. #1
    Vaelio's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0

    Question 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
    Last edited by Vaelio; 07-09-2012 at 02:11 PM.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    Quote Originally Posted by Vaelio View Post
    1st EDIT : ive found an epic website giving lots of stuff : ZeRoY's Call Of Duty Script Reference and it seem i get my answer XD but the bigger part isn't yet done :P
    Old as old :P
    http://www.mpgh.net/forum/323-call-d...s-modding.html
    Linked here

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following User Says Thank You to Jorndel For This Useful Post:

    Vaelio (07-09-2012)

  4. #3
    Vaelio's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    :S i'm sorry then . ( i'm sure i've look this thread but didn't see that -.- ) i'mdumbguy => EXIT

  5. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,675
    Reputation
    905
    Thanks
    18,544
    My Mood
    Angelic
    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)

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. The Following User Says Thank You to Jorndel For This Useful Post:

    Vaelio (07-09-2012)

  7. #5
    Vaelio's Avatar
    Join Date
    Jun 2011
    Gender
    male
    Posts
    4
    Reputation
    10
    Thanks
    0
    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
    Last edited by Vaelio; 07-09-2012 at 05:09 PM.

Similar Threads

  1. [Help] How do you store a file in exe and extract at runtime
    By _corn_ in forum C++/C Programming
    Replies: 7
    Last Post: 01-10-2012, 04:04 PM
  2. [Info] Store settings (no data file!)
    By .Aeon in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 4
    Last Post: 03-25-2011, 03:37 AM
  3. File Scan here
    By Neogaidenx in forum Spammers Corner
    Replies: 4
    Last Post: 08-14-2008, 12:30 PM
  4. Free File Hosts
    By Paolo1993 in forum Spammers Corner
    Replies: 5
    Last Post: 04-12-2008, 09:33 PM
  5. Looking for the old Warrock Game Files
    By Zededarian in forum WarRock - International Hacks
    Replies: 2
    Last Post: 01-10-2006, 03:30 PM