Hello,
have u find it out? If so please contact me I try it the last 3 days also on my server ... When i will find a way i will contact you.
I will wait
Hello,
have u find it out? If so please contact me I try it the last 3 days also on my server ... When i will find a way i will contact you.
I will wait
Hello. In the file configuration.sqf is worth the initial sum of 30000. But when logging in 2500. Help please.
Do somebody have any ideas?
Hi. I'm trying to get this script, written by Kevin Webb. I was sad to learn that he ceased to maintain this script.
Directly to the cause.
1. I added the button itself in chop shop menu:
class BtnSteal : Life_RscButtonMenu
{
idc = -1;
text = "Make Yours";
colorBackground[] = {0,0.2235294117647059,0.3725490196078431,1};
onButtonclick = "[] spawn life_fnc_stealVehicle;";
x = 0.1 + (((6.25 / 40) + (1 / 250 / (safezoneW / safezoneH)))*2);
y = 0.8 - (1 / 25);
w = (6.25 / 40);
h = (1 / 25);
};
Alles anzeigen
2. fn_stealVehicle.sqf
/*
File: fn_stealVehicle.sqf
Author: Kevin Webb
Description: Allows the player to put a stolen vehicle in his garage.
*/
disableSerialization;
private["_control","_price","_vehicle","_nearVehicles","_color","_pid","_check"];
_control = ((findDisplay 39400) displayCtrl 39402);
_price = _control lbValue (lbCurSel _control);
_price = _price*0.65;
_pid = getPlayerUID player;
if(life_cash < _price) exitWith {hint format["We require a fee of %1 to make that vehicle yours",_price]; };
_vehicle = _control lbData (lbCurSel _control);
_vehicle = call compile format["%1", _vehicle];
_nearVehicles = nearestObjects [getMarkerPos life_chopShop,["Car","Truck"],25];
_vehicle = _nearVehicles select _vehicle;
_vehicleName = getText(configFile >> "CfgVehicles" >> (typeOf _vehicle) >> "displayName");
if(isNull _vehicle) exitWith {};
_check = false;
{if(player distance _x < 200 && side _x == west) then { _check = true; };} forEach playableUnits;
if(_check) exitWith {hint "The cops are too close to complete this action!";};
//EDIT HERE
if(typeOf _vehicle == "B_MRAP_01_F") exitWith {hint "Unfortunately, you can not make that type of vehicle yours! You will have to sell it instead."; };
_color = 0;
if(typeOf _vehicle in["C_Offroad_01_F"]) then { _color = floor(random 12); };
while {typeOf _vehicle in["C_Offroad_01_F"] && _color in [6,7,8]} do {_color = floor(random 12); };
if(typeOf _vehicle in["C_Hatchback_01_F"]) then { _color = floor(random 7); };
if(typeOf _vehicle in["C_Hatchback_01_sport_F"]) then { _color = floor(random 6); };
if(typeOf _vehicle in["C_SUV_01_F"]) then { _color = floor(random 8); };
while {typeOf _vehicle in["C_SUV_01_F"] && _color in[1,4,5]} do { _color = floor(random 8); };
if(typeOf _vehicle in["B_Quadbike_01_F"]) then { _color = floor(random 9); };
_upp = format["Interrupting a... %1",_vehicleName];
5 cutRsc ["life_progress","PLAIN"];
_ui = uiNameSpace getVariable "life_progress";
_progress = _ui displayCtrl 38201;
_pgText = _ui displayCtrl 38202;
_pgText ctrlSetText format["%2 (1%1)...","%",_upp];
_progress progressSetPosition 0.01;
_cP = 0;
while{true} do
{
sleep 0.2;
_cP = _cP + 0.003;
_progress progressSetPosition _cP;
_pgText ctrlSetText format["%3 (%1%2)...",round(_cP * 100),"%",_upp];
if(speed player > 1 OR !alive player OR life_istazed OR vehicle player != player OR life_knockout OR life_interrupted) exitWith {_check = true;};
if(_cP >= 1) exitWith {};
};
5 cutText ["","PLAIN"];
if(_check) exitWith {hint "Cutaway interrupted";};
hint format["You have been charged %1 for this transaction and the vehicle has been added to your garage",_price];
[[_vehicle],"TON_fnc_vehicleIsDead",false,false] spawn life_fnc_MP;
sleep 0.05;
[[(getPlayerUID player),playerSide,_vehicle,_color,1],"TON_fnc_vehicleCreate",false,false] spawn life_fnc_MP;
closeDialog 0;
sleep 0.5;
sleep 0.5;
if(!isNil "_vehicle" && !isNull _vehicle) then { deleteVehicle _vehicle; };
Alles anzeigen
3. server file fn_vehicleIsDead.sqf
/*
File: fn_vehicleIsDead.sqf
Author: Kevin Webb
Description:
Used for the copCrush function: deletes the vehicle from the database.
*/
private["_vehicle","_plate","_uid","_query","_sql","_dbInfo","_thread"];
_vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
if(isNull _vehicle) exitWith {}; //NULL
_dbInfo = _vehicle getVariable["dbInfo",[]];
if(count _dbInfo == 0) exitWith {};
_uid = _dbInfo select 0;
_plate = _dbInfo select 1;
_query = format["UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'",_uid,_plate];
waitUntil {!DB_Async_Active};
_thread = [_query,1] call DB_fnc_asyncCall;
sleep 0.6;
if(!isNil "_vehicle" && {!isNull _vehicle}) then {
deleteVehicle _vehicle;
};
Alles anzeigen
Data files ordered in Functions and config.cpp.
Now the very principle of work. Deletes the vehicle from the old owner's garage, creates a new one in the new owner's garage.
I have just lost a car (and should be). According to venture, it must appear in the garage, but it's not. Record in the database appears.
Forgot to say. After you restart the server machine has appeared at the civilian and police. Although must immediately retire civil police and be added.
Ja moin^^ Habe Polizei Nachricht an alle eingefügt der Knopf und alles ist auch da schön und gut.. Aber wenn ich jetzt einen Text eingebe und den abschicke steht oben rechts ich soll etwas eingeben obwohl ich einen Text reingeschrieben habe.. Weiss jemand woran es liegt verwende 3.1.4.8
Mfg
hier mal die Functions.sqf von dem Life Server ordner
Can your smartphone.hpp
Alles anzeigenHallo ich bekomme einfach die Markt Icons nicht eingefügt
Habe alles genau nach dem TUT hier gemacht : http://www.altisliferpg.com/topic/8319-t…al-items-icons/
Desweiteren habe ich da noch ein problem und zwar wenn ich in die
fn_virt_shops.sqf gehe und im Markt die Lockpicks rausnehme werden sie
trotzdem noch im normalen Markt angezeigt.
Ich hoffe ihr könnt mir helfen, wäre Euch sehr dankbar.
Gruss Red
I think the problem is in the economy that is associated with the database.
I can see your files if you don't decide your problem. Sorry for my English)
But as you have opened the car model to find the coordinates for the location of the light.
You have to delete the source of "lockpick" from the database-array.
Ok. But I have lost the goods which had been through the database. Or then create a section under the stores in the file fn_weaponShopCfg.sqf. Or are there other options?
The reason for your problem dates from the marked-system of Sealdrop. I recommend you to use the Notepad ++ search_ function to find all sources of this_ item.
-Xylometachlorid
I found a source. Case in the database. For each subject there prints the type of store, trying to make a type 2 fails. How can I get rid of this?
Wich Altis Life version do you use?
3.1.4.8 SealDrop
The Google translator is dude.
Ok! The bottom line is that I can not remove the product from the market (handcuffs). I go to the file fn_virt_shops.sqf and delete ID handcuffs, but they do not disappear from the store.
Hallo Welt. Entfernen die Sperre und Handschellen mit zivilen Informationsspeicher kann nicht gestartet werden. Gelöschte Elemente aus der Datei-ID fn_virt_shops.sqf, aber sie noch bleiben. Bitte helfen.
Please help!Please help!
Hallo Freunde. Ich habe ein Problem. Versuchen Sie, eine Schaltfläche zum Senden einer Nachricht an alle Polizei zu machen. Schaltfläche erscheint und sendet eine Nachricht, die beinhaltet:
C:\Arma 3 Server\mpmissions\Altis_Life.Altis\core\pmenu\fn_newMsg.sqf
Meine Dateien: Download
Ein großes Dankeschön an alle! Die Linie 96, alles in Ordnung.
if(license_civ_rebel) then
{
_return set[count _return,
["B_G_Offroad_01_armed_F",750000]];
_return set[count _return,
["I_Heli_Transport_02_F",2000000]];
_return set[count _return,
["O_Heli_Light_02_unarmed_F",750000]];
_return set[count _return,
["O_Heli_Transport_04_box_F",1250000]];
};
};
Alles anzeigen
Hallo Welt. Heruntergeladen SealDrop AltisLife | Version: 3.1.4.8. Den Server installiert. Es gab ein Problem. In Wasser keine Schildkröten und Fische. Helfen Sie, das Problem zu lösen. Dateien werden nicht entfernt und werden nicht korrigiert. Weitere Skripte habe nicht.