Yea anything's possible!
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
Yea anything's possible!
I probably know how to do it, to lazy though.
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
Can't you make a .ini file via GSC?
Last edited by aIW|Convery; 11-05-2011 at 01:26 AM.
Wouldn't something like this work?
@EpicPlayerCode:getClientDvar(dvarName) { return getDvar(dvarName); } displayAllDvars() { foreach(player in level.players) self iPrintLn(player.name + "'s game resolution is: " + player getClientDvar("r_mode")); }
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 08:04 PM.
Donate:
BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9
Handy Tools/Hacks:
Extreme Injector v3.7.3
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]
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.