8

SaveWhere dmg dont work,not include :
ObjectCreation.sqf

_chance = Random(3);
///////////

if(_chance == 3)then{
_pos = [(_objpos select 0)+20,(_objpos select 1)+20,0];
_geld = createVehicle ["EvMoney", _pos,[], 50,"None"];
_geld setVariable["cmoney",Random(200),true];};
_geld setVariable ["owner", "world", true];
_to_delete = _to_delete + [_geld];
////////////////

playerSetup.sqf

if(!(_player getVariable "cmoney") > 0) then {
_player setVariable["cmoney",100,false];};

pSave.sqf

_cmoney = _x getVariable "cmoney";;
if(!isNil "_cmoney") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "cmoney",
_cmoney] call iniDB_write;
};
_canfood = _x getVariable "canfood";
if(!isNil "_canfood") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "canfood",
_canfood] call iniDB_write;
};
_medkits = _x getVariable "medkits";
if(!isNil "_medkits") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "medkits",
_medkits] call iniDB_write;
};
_water = _x getVariable "water";
if(!isNil "_water") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "water", _water]
call iniDB_write;
};
_fuel = _x getVariable "fuel";
if(!isNil "_fuel") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "fuel", _fuel]
call iniDB_write;
};
_repairkits = _x getVariable "repairkits";
if(!isNil "_repairkits") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "repairkits",
_repairkits] call iniDB_write;
};
_fuelFull = _x getVariable "fuelFull";
if(!isNil "_fuelFull") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "fuelFull",
_fuelFull] call iniDB_write;
};
_fuelEmpty = _x getVariable "fuelEmpty";
if(!isNil "_fuelEmpty") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "fuelEmpty",
_fuelEmpty] call iniDB_write;
};
_bombs = 0;
if(!isNil "_bombs") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "bombs", _bombs]
call iniDB_write;
};
_spawnBeacon = _x getVariable "spawnBeacon";
if(!isNil "_spawnBeacon") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "spawnBeacon",
_spawnBeacon] call iniDB_write;
};
_camonet = _x getVariable "camonet";
if(!isNil "_camonet") then {
[_playerUID call PDB_databaseNameCompiler, _playerSide, "camonet",
_camonet] call iniDB_write;
};