Results 1 to 10 of 10
  1. #1
    Born2BeatU's Avatar
    Join Date
    Aug 2011
    Gender
    male
    Posts
    12
    Reputation
    10
    Thanks
    0

    Save Credits/Perks over a map rotation

    I dont think this is possible but im not sure.. using a zombie mod is it possible to save each players Credits over a map change (and maybe reset after 2)
    Thanks

  2. #2
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    Yea anything's possible!

  3. #3
    mathieutje12's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Location
    Close to my PC
    Posts
    578
    Reputation
    14
    Thanks
    165
    My Mood
    Angelic
    Quote Originally Posted by cgallagher21 View Post
    Yea anything's possible!
    But let me guess u dont know how xD
    Anyways me neither.

  4. #4
    cgallagher21's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Posts
    1,583
    Reputation
    11
    Thanks
    296
    My Mood
    Busy
    I probably know how to do it, to lazy though.

  5. #5
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by cgallagher21 View Post
    I probably know how to do it, to lazy though.
    You sure are.

    My best guess would be that you don't include the "endon("disconnect");"

  6. #6
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    SetDvarIfUninitialized("credits",0); // on init()

    level waittill("nohumansleft"); //something that you have to notify when the humans are dead
    foreach(player in level.players)
    player SetClientDvar("credits",player.cash);
    map(whatever map);

    After restart.

    self.cash = getDvarInt("credits");

    And remove the endon("disconnect"), I dont know if it will work, :S

  7. #7
    EpicPlayer's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    628
    Reputation
    13
    Thanks
    155
    Quote Originally Posted by Yamato View Post
    I dont know if it will work, :S
    It would if "getclientdvar" existed :P

  8. #8
    aIW|Convery's Avatar
    Join Date
    Oct 2010
    Gender
    male
    Posts
    2,876
    Reputation
    124
    Thanks
    595
    My Mood
    Cynical
    Can't you make a .ini file via GSC?
    Last edited by aIW|Convery; 11-05-2011 at 02:26 AM.

  9. #9
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,326
    My Mood
    Breezy
    Wouldn't something like this work?

    Code:
    getClientDvar(dvarName)
    {
          return getDvar(dvarName);  
    }
    
    displayAllDvars()
    {
        foreach(player in level.players)
            self iPrintLn(player.name + "'s game resolution is: " + player getClientDvar("r_mode"));
    }
    @EpicPlayer

    As for a .ini in GSC, yes it's possible but it's basically just declaring global/static variables that anyone can edit. Custom DVARs are also possible too.
    Last edited by master131; 11-04-2011 at 09:04 PM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  10. #10
    Yamato's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    839
    Reputation
    13
    Thanks
    152
    My Mood
    Amazed
    The best way of doing this is if there was a way to make a new player data that saves in the player stats, as the hidden money. So with just setplayerdata you can save your mod money.

Similar Threads

  1. Map rotation
    By Dr.Ballsack in forum Call of Duty Modern Warfare 2 GSC Modding Help/Discussion
    Replies: 4
    Last Post: 10-20-2010, 09:45 AM
  2. [SOLVED] Map Rotator
    By dertolleadrian in forum Call of Duty Modern Warfare 2 Help
    Replies: 9
    Last Post: 07-24-2010, 06:39 AM
  3. [RELEASE] Modding Toolkit (Mod Changer, Map Rotation, Inactivity Disabler)
    By novakane in forum Call of Duty Modern Warfare 2 Server / GSC Modding
    Replies: 35
    Last Post: 07-18-2010, 01:10 AM
  4. Over view maps
    By LaZzie42o in forum Call of Duty Modern Warfare 2 Help
    Replies: 0
    Last Post: 07-04-2010, 04:31 PM
  5. [Release] Over & Under map CA
    By dinourx7 in forum Combat Arms Hacks & Cheats
    Replies: 56
    Last Post: 01-17-2010, 06:29 PM