Results 1 to 6 of 6

Thread: How to save scripts?

  1. #1
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts

    How to save scripts?

    Hi Guys, i need really very soon a new control how to save stats. So if somebody join and he make money and he disconnect then the money should save if he come back. Sombody can make a tutorial about that if somebody can help?

    Thank you

  2. #2
    Assadministrator kung foo man's Avatar
    Join Date
    Jun 2012
    Location
    trailerpark
    Posts
    2,011
    Thanks
    2,102
    Thanked 1,084 Times in 753 Posts
    It's in IzNoGod's CoD4Mod: http://www.iznogod.tweak.nl/CoD4MoD.rar
    timescale 0.01

  3. The Following User Says Thank You to kung foo man For This Useful Post:

    Loveboy (9th June 2013)

  4. #3
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    Thank you kung. I will look tomorrow. Now i have no time.

  5. #4
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    Please dont try to use the full featured cod4mod for this. Find the _stattracking.gsc file i designed to give an effective account system as a plugin

  6. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    kung foo man (10th June 2013),Loveboy (10th June 2013)

  7. #5
    Private
    Join Date
    Jan 2013
    Location
    Hungary
    Posts
    113
    Thanks
    10
    Thanked 74 Times in 45 Posts
    It's from my mod, there is all functions you need.

    PHP Code:
    isFilefile )
    {
        
    openFile(file"read");

        if (
    != -1)
        {
            
    closeFile);
            return 
    true;
        }
        else
        {
            
    closeFile);
            return 
    false;
        }
    }

    writefile, var )
    {
        
    openFile(file"write");
        
    fPrintln(f, var);
        
    closeFile);
    }

    appendfile, var )
    {
        
    openFile(file"append");
        
    fPrintln(f, var);
        
    closeFile);
    }

    readfile )
    {
        
    openFile(file"read");

        if (
    == -1)
        {
            
    closeFile);
            return;
        }

        
    size fReadln);

        array = [];
        for (
    0sizei++)
            array[
    i] = fGetArg(fi);

        
    closeFile);

        return array;
    }

    read_indexfileindex )
    {
        
    openFile(file"read");

        if (
    == -1)
        {
            
    closeFile);
            return;
        }

        
    fReadln);
        
    ret fGetArg(findex);
        
    closeFile);

        return 
    ret;

    Last edited by randall; 9th June 2013 at 20:36.

  8. The Following 2 Users Say Thank You to randall For This Useful Post:

    kung foo man (10th June 2013),Loveboy (10th June 2013)

  9. #6
    Lieutenant Loveboy's Avatar
    Join Date
    Nov 2012
    Posts
    546
    Thanks
    229
    Thanked 72 Times in 46 Posts
    IzNoGod: Hi, thank you but i haven't found the file _stattracking.gsc on your cod4mod. And i have a question: On your CoD4Mod is a UAV, how did you made it? I can find this in your CoD4 Mod?

    randall: Hi, thank you for this script, but i don't know where i can set it for saving stats. Can you give a example?

  10. The Following User Says Thank You to Loveboy For This Useful Post:

    RobsoN (11th June 2013)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •