Funkt bei 4.4r4 ohne probleme ! und nu nochmal ne frage kann ich auch mehre siren machen shift -( r - q ) oder so ? wen ja eine erweiterung wie es geht wurde mich intressieren
Beiträge von Twinnie
-
-
Kleidung jaja man kann sich auch anstellen
Functions.H unter core\functions
initciv /initcop /initmedic/initadacund fn_civLoadout / fn_copLoadout / fn_medicLoadout / fn_adacLoadout
fn_inventoryClosed / fn_inventoryOpened / fn_respawned / fn_changeClothes / fn_buyClothes / fn_clothingMenu
und bei fn_clothingMenu zeile 170 bis 185 suchen life_clothing_filter = 0;
und den text unten bearbeiten das er genau so ausiehtCodeif (life_oldClothes != "") then {player addUniform life_oldClothes; [] call life_fnc_Uniformscolor;} else {removeUniform player};
fn_Uniformscolor
Spoiler anzeigen
/*
Custom uniforms for
Civilians, Medics and CopsCreated by: Stanley / Invision
*/#include "..\..\script_macros.hpp"
#define FETCH_CONST(var) (call var)
if(side player == independent) then {
if ((uniform player) == "U_Rangemaster") then { player setObjectTextureGlobal [0, "textures\medic\medic_uniform.jpg"]; };
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_medicLevel) == 4)) then {
player setObjectTextureGlobal [0, "textures\feuerwehr\Uniform.paa"];
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_medicLevel) == 5)) then {
player setObjectTextureGlobal [0, "textures\feuerwehr\Uniform.paa"];
};
if((backpack player) == "B_Carryall_cbr") then {
(unitBackpack player) setObjectTextureGlobal [0, ""];
};if(side player == west) then {
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 0)) then {
player setObjectTextureGlobal [0, "textures\police\Streifenpolizist.paa"];
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 1)) then {
player setObjectTextureGlobal [0, "textures\police\Streifenpolizist.paa"];
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 2)) then {
player setObjectTextureGlobal [0, "textures\police\Streifenpolizist.paa"];
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 3)) then {
player setObjectTextureGlobal [0, "textures\police\Streifenpolizist.paa"];
};
if (uniform player == "U_Rangemaster" && (FETCH_CONST(life_coplevel) == 4)) then {
player setObjectTextureGlobal [0, "textures\police\Streifenpolizist.paa"];
};
if (uniform player == "U_B_CombatUniform_mcam" && (FETCH_CONST(life_coplevel) == 5)) then {
player setObjectTextureGlobal [0, "textures\police\sek_beamter.jpg"];
};
if (uniform player == "U_B_CombatUniform_mcam" && (FETCH_CONST(life_coplevel) == 6)) then {
player setObjectTextureGlobal [0, "textures\police\sek_beamter.jpg"];
};
if (uniform player == "U_B_CombatUniform_mcam" && (FETCH_CONST(life_coplevel) == 7)) then {
player setObjectTextureGlobal [0, "textures\police\sek_beamter.jpg"];
};
};und das video gibst hier
-
ok danke erstmal 4.5 version und alle ersetzten mit bank ? ich stell mich ma doof an aber ich denk falsch oder ?
Code
Alles anzeigen#include "..\..\script_macros.hpp" /* File: fn_vehicleShopBuy.sqf Author: Bryan "Tonic" Boardwine Description: Does something with vehicle purchasing. */ private["_mode","_vIndex","_spawnPoints","_className","_purchasePrice","_buyMultiplier","_rentMultiplier","_colorIndex","_spawnPoint","_vehicle","_vehicleList","_shopSide","_licenses","_licensesName","_exit","_initalPrice"]; _mode = _this select 0; _exit = false; if ((lbCurSel 2302) isEqualTo -1) exitWith {hint localize "STR_Shop_Veh_DidntPick";closeDialog 0;}; _className = lbData[2302,(lbCurSel 2302)]; _vIndex = lbValue[2302,(lbCurSel 2302)]; _vehicleList = M_CONFIG(getArray,"CarShops",(life_veh_shop select 0),"vehicles"); _shopSide = M_CONFIG(getText,"CarShops",(life_veh_shop select 0),"side"); _licenses = switch (playerSide) do { case civilian: {(M_CONFIG(getArray,"LifeCfgVehicles",_className,"licenses") select 0)}; case west: {(M_CONFIG(getArray,"LifeCfgVehicles",_className,"licenses") select 1)}; case independent: {(M_CONFIG(getArray,"LifeCfgVehicles",_className,"licenses") select 2)}; case east: {(M_CONFIG(getArray,"LifeCfgVehicles",_className,"licenses") select 3)}; }; _initalPrice = M_CONFIG(getNumber,"LifeCfgVehicles",_className,"price"); switch (playerSide) do { case civilian: { _buyMultiplier = LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_CIVILIAN"); _rentMultiplier = LIFE_SETTINGS(getNumber,"vehicle_rental_multiplier_CIVILIAN"); }; case west: { _buyMultiplier = LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_COP"); _rentMultiplier = LIFE_SETTINGS(getNumber,"vehicle_rental_multiplier_COP"); }; case independent: { _buyMultiplier = LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_MEDIC"); _rentMultiplier = LIFE_SETTINGS(getNumber,"vehicle_rental_multiplier_MEDIC"); }; case east: { _buyMultiplier = LIFE_SETTINGS(getNumber,"vehicle_purchase_multiplier_OPFOR"); _rentMultiplier = LIFE_SETTINGS(getNumber,"vehicle_rental_multiplier_OPFOR"); }; }; if (_mode) then { _purchasePrice = round(_initalPrice * _buyMultiplier); } else { _purchasePrice = round(_initalPrice * _rentMultiplier); }; _colorIndex = lbValue[2304,(lbCurSel 2304)]; _licensesName = ""; { if (!(_x isEqualTo "") && {!(LICENSE_VALUE(_x,_shopSide))}) then { _licensesName = _licensesName + localize M_CONFIG(getText,"Licenses",_x,"displayName") + "<br/>"; _exit = true; }; } forEach _licenses; if (_exit) exitWith {hint parseText format[(localize "STR_Shop_Veh_NoLicense")+ "<br/><br/>%1",_licensesName];closeDialog 0;}; if (_purchasePrice < 0) exitWith {closeDialog 0;}; //Bad price entry if (BANK < _purchasePrice) exitWith {hint format[localize "STR_Shop_Veh_NotEnough",[_purchasePrice - BANK] call life_fnc_numberText];closeDialog 0;}; _spawnPoints = life_veh_shop select 1; _spawnPoint = ""; if (((life_veh_shop select 0) == "med_air_hs")) then { if ((nearestObjects[(getMarkerPos _spawnPoints),["Air"],35]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; } else { //Check if there is multiple spawn points and find a suitable spawnpoint. if (_spawnPoints isEqualType []) then { //Find an available spawn point. {if ((nearestObjects[(getMarkerPos _x),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _x};} forEach _spawnPoints; } else { if ((nearestObjects[(getMarkerPos _spawnPoints),["Car","Ship","Air"],5]) isEqualTo []) exitWith {_spawnPoint = _spawnPoints}; }; }; if (_spawnPoint isEqualTo "") exitWith {hint localize "STR_Shop_Veh_Block";closeDialog 0;}; BANK = BANK - _purchasePrice; hint format[localize "STR_Shop_Veh_Bought",getText(configFile >> "CfgVehicles" >> _className >> "displayName"),[_purchasePrice] call life_fnc_numberText]; //Spawn the vehicle and prep it. if ((life_veh_shop select 0) == "med_air_hs") then { _vehicle = createVehicle [_className,[0,0,999],[], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; _hs = nearestObjects[getMarkerPos _spawnPoint,["Land_Hospital_side2_F"],50] select 0; _vehicle setPosATL (_hs modelToWorld [-0.4,-4,12.65]); sleep 0.6; } else { _vehicle = createVehicle [_className, (getMarkerPos _spawnPoint), [], 0, "NONE"]; waitUntil {!isNil "_vehicle" && {!isNull _vehicle}}; //Wait? _vehicle allowDamage false; //Temp disable damage handling.. _vehicle setPos (getMarkerPos _spawnPoint); _vehicle setVectorUp (surfaceNormal (getMarkerPos _spawnPoint)); _vehicle setDir (markerDir _spawnPoint); }; _vehicle lock 2; [_vehicle,_colorIndex] call life_fnc_colorVehicle; [_vehicle] call life_fnc_clearVehicleAmmo; [_vehicle,"trunk_in_use",false,true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; [_vehicle,"vehicle_info_owners",[[getPlayerUID player,profileName]],true] remoteExecCall ["TON_fnc_setObjVar",RSERV]; _vehicle disableTIEquipment true; //No Thermals.. They're cheap but addictive. //Side Specific actions. switch (playerSide) do { case west: { [_vehicle,"cop_offroad",true] spawn life_fnc_vehicleAnimate; }; case civilian: { if ((life_veh_shop select 2) isEqualTo "civ" && {_className == "B_Heli_Light_01_F"}) then { [_vehicle,"civ_littlebird",true] spawn life_fnc_vehicleAnimate; }; }; case independent: { [_vehicle,"med_offroad",true] spawn life_fnc_vehicleAnimate; }; }; _vehicle allowDamage true; life_vehicles pushBack _vehicle; //Always handle key management by the server [getPlayerUID player,playerSide,_vehicle,1] remoteExecCall ["TON_fnc_keyManagement",RSERV]; if (_mode) then { if (!(_className in ["B_G_Offroad_01_armed_F","B_MRAP_01_hmg_F"])) then { if (life_HC_isActive) then { [(getPlayerUID player),playerSide,_vehicle,_colorIndex] remoteExecCall ["HC_fnc_vehicleCreate",HC_Life]; } else { [(getPlayerUID player),playerSide,_vehicle,_colorIndex] remoteExecCall ["TON_fnc_vehicleCreate",RSERV]; }; }; }; if (LIFE_SETTINGS(getNumber,"player_advancedLog") isEqualTo 1) then { if (LIFE_SETTINGS(getNumber,"battlEye_friendlyLogging") isEqualTo 1) then { advanced_log = format ["bought vehicle %1 for $%2. On Hand BANK: $%3 Bank Balance: $%4",_className,[_purchasePrice] call life_fnc_numberText,[BANK] call life_fnc_numberText,[BANK] call life_fnc_numberText]; } else { advanced_log = format ["%1 - %2 bought vehicle %3 for $%4. On Hand BANK: $%5 Bank Balance $%6",profileName,(getPlayerUID player),_className,[_purchasePrice] call life_fnc_numberText,[BANK] call life_fnc_numberText,[BANK] call life_fnc_numberText]; }; publicVariableServer "advanced_log"; }; [0] call SOCK_fnc_updatePartial; closeDialog 0; //Exit the menu. true; [] call life_fnc_hudUpdate;
RP log
Code
Alles anzeigennachdem ich es umgestellt habe nun kann man aber kaufen , und meine frage ist kann ich das ignorieren ? 16:34:59 Server: Object 3:72 not found (message Type_121) 16:34:59 Server: Object 3:67 not found (message Type_121) 16:34:59 Server: Object 3:68 not found (message Type_121) 16:34:59 Server: Object 3:69 not found (message Type_121) 16:34:59 Server: Object 3:70 not found (message Type_121) 16:34:59 Server: Object 3:71 not found (message Type_121) 16:34:59 Server: Object 3:73 not found (message Type_121) 16:35:02 Server: Object 3:88 not found (message Type_121) 16:35:02 Server: Object 3:89 not found (message Type_121) 16:35:02 Server: Object 3:90 not found (message Type_121) 16:35:02 Server: Object 3:91 not found (message Type_121) 16:35:02 Server: Object 3:92 not found (message Type_121) 16:35:02 Server: Object 3:93 not found (message Type_121) 16:35:02 Error: Object(3 : 78) not found 16:35:02 Error: Object(3 : 79) not found 16:35:02 Error: Object(3 : 80) not found 16:35:02 Error: Object(3 : 81) not found 16:35:03 Error: Object(3 : 82) not found 16:35:03 Error: Object(3 : 83) not found 16:35:03 Error: Object(3 : 84) not found 16:35:03 Error: Object(3 : 85) not found 16:35:03 Error: Object(3 : 86) not found 16:35:03 Error: Object(3 : 87) not found
-
Danke Für tut aber verbessere mal die fehler
Code
Alles anzeigenclass Adac { file = "core\adac"; cla* s adacLoadout {}; cla* s adacMarkers {}; }; zu class Adac { file = "core\adac"; class adacLoadout {}; class adacMarkers {}; }; und das class Adac { cla* s Kavala { displayName = "Base"; spawnMarker = "adac_spawn_1"; icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa"; licenses[] = { { "", true } }; level[] = { "", "", -1 }; }; }; zu das class Adac { class Kavala { displayName = "Base"; spawnMarker = "adac_spawn_1"; icon = "\a3\ui_f\data\map\MapControl\hospital_ca.paa"; licenses[] = { { "", true } }; level[] = { "", "", -1 }; }; };
-
Guten abend zusammen könnte mir jmd helfen , den ich suche nach ein script das soll können das wen man ein auto kauft das dies gleich von konto abgebucht wird und das man nicht so viel bares mit sich rumträgt gibt es sowas ? und srry wegen rechtschreibfehler
-
-
Guten tag zusammen das is kein script für die 4.4r4 version sondern für die 4.3 da in der neuen config das so heist restrict_adac_weapons und nicht allow_adac_weapons und die datein haben sich auch geändert von daher wolte ich nur bescheid geben das dies nicht für die 4.4 funk
-
ADAC init
Spoiler anzeigen
#include "..\script_macros.hpp"private["_end"];
player addRating 99999999;
waitUntil {!(isNull (findDisplay 46))};if ((FETCH_CONST(life_adaclevel)) < 1 && (FETCH_CONST(life_adminlevel) isEqualTo 0)) exitWith {
["Notwhitelisted",FALSE,TRUE] call BIS_fnc_endMission;
sleep 35;
};if (LIFE_SETTINGS(getNumber,"restrict_adac_weapons") isEqualTo 1) then {
[] spawn {
for "_i" from 0 to 1 step 0 do {
waitUntil {sleep 3; currentWeapon player != ""};
removeAllWeapons player;
};
};
};[] call life_fnc_spawnMenu;
waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.
Müste so ausehen denkt ich weil die files ja 4.4 sind einfach ma nachgucken lol -
Hallo alle zusamen ich hab so gemacht wie es geschrieben wa alles is druff aber bei opfer gruppe kommt kein Z menu und kein spawn menu logs sagen auch nichts keine erros ? könnte mir da einer helfen