Beiträge von Kventhe
-
-
kannst du mal dennöog ran hängen
den was
-
ich such jetzt noch raus wie ich das erhöhe aber es funktioniert
-
ja ich habe nun 60 vspace statt any
-
okay ich danke allen dir mir geholfen haben & es versucht haben
-
ist das egal welche ich lösche oder muss es eine bestimmte sein
-
-
das sind die die mir gesendet wurden
ich bezweifel aber das das die Server logs sind
-
ja das ist das problem er hat mir keine gesendet mit datum und Uhrzeit
-
Serverlog weiß mein Kollege nicht welcher der 5 datein ihr haben wollt wäre nett wegen einer rück meldung deswegen
clientlog im anhang da er sonst zulang ist
-
also ich habe in jedem Threat den ich hier gesehen habe mit ählichen problemen ebenfalls keine Logs gesehen
zu dem er auch keine Fehler ausspuckt
-
Hey ich habe ein problem mit meinen Rücksäcken nachdem ich sie unsichtbar gemacht habe doch nun kann ich weder rennen noch Essen, Trinken & extra kauen kaufen
könnte mir da vllt jmd behilflich sein
Vielen dank im Vorraus
Mit freundlichen Grüßen Kventhe
Code
Alles anzeigen#include "..\script_macros.hpp" /* File: fn_survival.sqf Author: Bryan "Tonic" Boardwine Description: All survival? things merged into one thread. */ private ["_fnc_food","_fnc_water","_foodTime","_waterTime","_bp","_walkDis","_lastPos","_curPos"]; _fnc_food = { if (life_hunger < 2) then {player setDamage 1; hint localize "STR_NOTF_EatMSG_Death";} else { life_hunger = life_hunger - 10; [] call life_fnc_hudUpdate; if (life_hunger < 2) then {player setDamage 1; hint localize "STR_NOTF_EatMSG_Death";}; switch (life_hunger) do { case 30: {hint localize "STR_NOTF_EatMSG_1";}; case 20: {hint localize "STR_NOTF_EatMSG_2";}; case 10: { hint localize "STR_NOTF_EatMSG_3"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; }; }; }; _fnc_water = { if (life_thirst < 2) then {player setDamage 1; hint localize "STR_NOTF_DrinkMSG_Death";} else { life_thirst = life_thirst - 10; [] call life_fnc_hudUpdate; if (life_thirst < 2) then {player setDamage 1; hint localize "STR_NOTF_DrinkMSG_Death";}; switch (life_thirst) do { case 30: {hint localize "STR_NOTF_DrinkMSG_1";}; case 20: { hint localize "STR_NOTF_DrinkMSG_2"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; case 10: { hint localize "STR_NOTF_DrinkMSG_3"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; }; }; }; //Setup the time-based variables. _foodTime = time; _waterTime = time; _walkDis = 0; _bp = ""; _lastPos = visiblePosition player; _lastPos = (_lastPos select 0) + (_lastPos select 1); _lastState = vehicle player; for "_i" from 0 to 1 step 0 do { /* Thirst / Hunger adjustment that is time based */ if ((time - _waterTime) > 600) then {[] call _fnc_water; _waterTime = time;}; if ((time - _foodTime) > 850) then {[] call _fnc_food; _foodTime = time;}; /* Adjustment of carrying capacity based on backpack changes */ if (backpack player isEqualTo "") then { life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight"); _bp = backpack player; } else { if (!(backpack player isEqualTo "") && {!(backpack player isEqualTo _bp)}) then { _bp = backpack player; life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + round(FETCH_CONFIG2(getNumber,"CfgVehicles",_bp,"maximumload") / 4); }; }; /* Check if the player's state changed? */ if (vehicle player != _lastState || {!alive player}) then { [] call life_fnc_updateViewDistance; _lastState = vehicle player; }; /* Check if the weight has changed and the player is carrying to much */ if (life_carryWeight > life_maxWeight && {!isForcedWalk player}) then { player forceWalk true; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; hint localize "STR_NOTF_MaxWeight"; } else { if (isForcedWalk player) then { player forceWalk false; }; }; /* Travelling distance to decrease thirst/hunger which is captured every second so the distance is actually greater then 650 */ if (!alive player) then {_walkDis = 0;} else { _curPos = visiblePosition player; _curPos = (_curPos select 0) + (_curPos select 1); if (!(_curPos isEqualTo _lastPos) && {(isNull objectParent player)}) then { _walkDis = _walkDis + 1; if (_walkDis isEqualTo 650) then { _walkDis = 0; life_thirst = life_thirst - 5; life_hunger = life_hunger - 5; [] call life_fnc_hudUpdate; }; }; _lastPos = visiblePosition player; _lastPos = (_lastPos select 0) + (_lastPos select 1); }; uiSleep 1; [] spawn { private["_bp","_load","_cfg"]; while{true} do { waitUntil {backpack player != ""}; _bp = backpack player; _cfg = getNumber(configFile >> "CfgVehicles" >> (backpack player) >> "maximumload"); _load = round(_cfg / 8); life_maxWeight = life_maxWeightT + _load; if(playerSide isEqualTo west) then {(unitBackpack player) setObjectTextureGlobal [0,""];}; // <---- Sac invisible chez les flics if(playerSide isEqualTo independent) then {(unitBackpack player) setObjectTextureGlobal [0,""];}; // <----- Sac Invisible chez les Medics waitUntil {backpack player != _bp}; if(backpack player isEqualTo "") then { life_maxWeight = life_maxWeightT; }; }; }; };
-
im Anhang die passende "fn_survival.sqf" (Standard mit unsichtbaren Rucksäcken für Cop/Medics ) für die v5.0.0 aktuelle Framework von heute!
man brauch auch nur die "fn_survival.sqf" ändern, nicht die initcop etc!
hat so weit geklappt allerdings hab ich jetzt das problem das der Vitemspace any beträgt und somit weder rennen kann noch items kaufen kann könnte mir ja jmd helfen
vielen Dank im vorraus
Code
Alles anzeigen#include "..\script_macros.hpp" /* File: fn_survival.sqf Author: Bryan "Tonic" Boardwine Description: All survival? things merged into one thread. */ private ["_fnc_food","_fnc_water","_foodTime","_waterTime","_bp","_walkDis","_lastPos","_curPos"]; _fnc_food = { if (life_hunger < 2) then {player setDamage 1; hint localize "STR_NOTF_EatMSG_Death";} else { life_hunger = life_hunger - 10; [] call life_fnc_hudUpdate; if (life_hunger < 2) then {player setDamage 1; hint localize "STR_NOTF_EatMSG_Death";}; switch (life_hunger) do { case 30: {hint localize "STR_NOTF_EatMSG_1";}; case 20: {hint localize "STR_NOTF_EatMSG_2";}; case 10: { hint localize "STR_NOTF_EatMSG_3"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; }; }; }; _fnc_water = { if (life_thirst < 2) then {player setDamage 1; hint localize "STR_NOTF_DrinkMSG_Death";} else { life_thirst = life_thirst - 10; [] call life_fnc_hudUpdate; if (life_thirst < 2) then {player setDamage 1; hint localize "STR_NOTF_DrinkMSG_Death";}; switch (life_thirst) do { case 30: {hint localize "STR_NOTF_DrinkMSG_1";}; case 20: { hint localize "STR_NOTF_DrinkMSG_2"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; case 10: { hint localize "STR_NOTF_DrinkMSG_3"; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; }; }; }; }; //Setup the time-based variables. _foodTime = time; _waterTime = time; _walkDis = 0; _bp = ""; _lastPos = visiblePosition player; _lastPos = (_lastPos select 0) + (_lastPos select 1); _lastState = vehicle player; for "_i" from 0 to 1 step 0 do { /* Thirst / Hunger adjustment that is time based */ if ((time - _waterTime) > 600) then {[] call _fnc_water; _waterTime = time;}; if ((time - _foodTime) > 850) then {[] call _fnc_food; _foodTime = time;}; /* Adjustment of carrying capacity based on backpack changes */ if (backpack player isEqualTo "") then { life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight"); _bp = backpack player; } else { if (!(backpack player isEqualTo "") && {!(backpack player isEqualTo _bp)}) then { _bp = backpack player; life_maxWeight = LIFE_SETTINGS(getNumber,"total_maxWeight") + round(FETCH_CONFIG2(getNumber,"CfgVehicles",_bp,"maximumload") / 4); }; }; /* Check if the player's state changed? */ if (vehicle player != _lastState || {!alive player}) then { [] call life_fnc_updateViewDistance; _lastState = vehicle player; }; /* Check if the weight has changed and the player is carrying to much */ if (life_carryWeight > life_maxWeight && {!isForcedWalk player}) then { player forceWalk true; if (LIFE_SETTINGS(getNumber,"enable_fatigue") isEqualTo 1) then {player setFatigue 1;}; hint localize "STR_NOTF_MaxWeight"; } else { if (isForcedWalk player) then { player forceWalk false; }; }; /* Travelling distance to decrease thirst/hunger which is captured every second so the distance is actually greater then 650 */ if (!alive player) then {_walkDis = 0;} else { _curPos = visiblePosition player; _curPos = (_curPos select 0) + (_curPos select 1); if (!(_curPos isEqualTo _lastPos) && {(isNull objectParent player)}) then { _walkDis = _walkDis + 1; if (_walkDis isEqualTo 650) then { _walkDis = 0; life_thirst = life_thirst - 5; life_hunger = life_hunger - 5; [] call life_fnc_hudUpdate; }; }; _lastPos = visiblePosition player; _lastPos = (_lastPos select 0) + (_lastPos select 1); }; uiSleep 1; [] spawn { private["_bp","_load","_cfg"]; while{true} do { waitUntil {backpack player != ""}; _bp = backpack player; _cfg = getNumber(configFile >> "CfgVehicles" >> (backpack player) >> "maximumload"); _load = round(_cfg / 8); life_maxWeight = life_maxWeightT + _load; if(playerSide isEqualTo west) then {(unitBackpack player) setObjectTextureGlobal [0,""];}; // <---- Sac invisible chez les flics if(playerSide isEqualTo independent) then {(unitBackpack player) setObjectTextureGlobal [0,""];}; // <----- Sac Invisible chez les Medics waitUntil {backpack player != _bp}; if(backpack player isEqualTo "") then { life_maxWeight = life_maxWeightT; }; }; }; };
-
Schönen Guten Tag ich hatte vor mit meinem Freund einen Tanoa RP server zum laufen bekommen und sind dann auf CUP weapons gestoßen und haben gleich alles drauf installiert allerdings haben wir nun beim Shop in dem das drin ist ein kleines Problem man kann die waffen nicht kaufen da sie als <null> angezeigt werden
wir würden uns freuen wenn wir Hilfe bekommen könnten
Mit Freundlichen Grüßen Kventhe & Dominik
Spoiler anzeigen
class WeaponShops {
//Armory Shops
class gun {
name = "Billy Joe's Firearms";
side = "civ";
conditions = "license_civ_gun";
items[] = {
{ "hgun_Rook40_F", "", 6500, 3250, "" },
{ "hgun_Pistol_01_F", "", 7000, 3500, "" }, //Apex DLC
{ "hgun_Pistol_heavy_02_F", "", 9850, 4925, "" },
{ "hgun_ACPC2_F", "", 11500, 5750, "" },
{ "SMG_05_F", "", 18000, 9000, "" }, //Apex DLC
{ "CUP_arifle_AKS_Gold", "", 2, 1, "" }
};
mags[] = {
{ "16Rnd_9x21_Mag", "", 125, 60, "" },
{ "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
{ "9Rnd_45ACP_Mag", "", 200, 100, "" },
{ "30Rnd_9x21_Mag", "", 250, 125, "" },
{ "30Rnd_9x21_Mag_SMG_02", "", 250, 125, "" }, //Apex DLC
{ "10Rnd_9x21_Mag", "", 250, 125, "" } //Apex DLC
};
accs[] = {
{ "optic_ACO_grn_smg", "", 2500, 1250, "" }
};
};
class rebel {
name = "Mohammed's Jihadi Shop";
side = "civ";
conditions = "license_civ_rebel";
items[] = {
{ "arifle_TRG20_F", "", 25000, 12500, "" },
{ "arifle_Katiba_F", "", 30000, 15000, "" },
{ "srifle_DMR_01_F", "", 50000, 25000, "" },
{ "arifle_SDAR_F", "", 20000, 10000, "" },
{ "arifle_AK12_F", "", 22000, 11000, "" }, //Apex DLC
{ "arifle_AKS_F", "", 22000, 11000, "" }, //Apex DLC
{ "arifle_AKM_F", "", 22000, 11000, "" }, //Apex DLC
{ "arifle_ARX_blk_F", "", 22000, 11000, "" }, //Apex DLC
{ "arifle_SPAR_01_blk_F", "", 33000, 16500, "" }, //Apex DLC
{ "arifle_CTAR_blk_F", "", 30000, 15000, "" } //Apex DLC
};
mags[] = {
{ "30Rnd_556x45_Stanag", "", 300, 150, "" },
{ "30Rnd_762x39_Mag_F", "", 300, 150, "" }, //Apex DLC
{ "30Rnd_545x39_Mag_F", "", 300, 150, "" }, //Apex DLC
{ "30Rnd_65x39_caseless_green", "", 275, 140, "" },
{ "10Rnd_762x54_Mag", "", 500, 250, "" },
{ "20Rnd_556x45_UW_mag", "", 125, 60, "" },
{ "30Rnd_580x42_Mag_F", "", 125, 60, "" } //Apex DLC
};
accs[] = {
{ "optic_ACO_grn", "", 3500, 1750, "" },
{ "optic_Holosight", "", 3600, 1800, "" },
{ "optic_Hamr", "", 7500, 3750, "" },
{ "acc_flashlight", "", 1000, 500, "" }
};
};
class gang {
name = "Hideout Armament";
side = "civ";
conditions = "";
items[] = {
{ "hgun_Rook40_F", "", 1500, 750, "" },
{ "hgun_Pistol_heavy_02_F", "", 2500, 1250, "" },
{ "hgun_ACPC2_F", "", 4500, 2250, "" },
{ "hgun_PDW2000_F", "", 9500, 4750, "" }
};
mags[] = {
{ "16Rnd_9x21_Mag", "", 125, 60, "" },
{ "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
{ "9Rnd_45ACP_Mag", "", 200, 100, "" },
{ "30Rnd_9x21_Mag", "", 250, 125, "" }
};
accs[] = {
{ "optic_ACO_grn_smg", "", 950, 475, "" }
};
};
//Basic Shops
class genstore {
name = "Altis General Store";
side = "civ";
conditions = "";
items[] = {
{ "Binocular", "", 150, 75, "" },
{ "ItemGPS", "", 100, 50, "" },
{ "ItemMap", "", 50, 25, "" },
{ "ItemCompass", "", 50, 25, "" },
{ "ItemWatch", "", 50, 25, "" },
{ "FirstAidKit", "", 150, 75, "" },
{ "NVGoggles", "", 2000, 1000, "" },
{ "Chemlight_red", "", 300, 150, "" },
{ "Chemlight_yellow", "", 300, 150, "" },
{ "Chemlight_green", "", 300, 150, "" },
{ "Chemlight_blue", "", 300, 150, "" }
};
mags[] = {};
accs[] = {};
};
class f_station_store {
name = "Altis Fuel Station Store";
side = "";
conditions = "";
items[] = {
{ "Binocular", "", 750, 75, "" },
{ "ItemGPS", "", 500, 50, "" },
{ "ItemMap", "", 250, 25, "" },
{ "ItemCompass", "", 250, 25, "" },
{ "ItemWatch", "", 250, 25, "" },
{ "FirstAidKit", "", 750, 75, "" },
{ "NVGoggles", "", 10000, 1000, "" },
{ "Chemlight_red", "", 1500, 150, "" },
{ "Chemlight_yellow", "", 1500, 150, "" },
{ "Chemlight_green", "", 1500, 150, "" },
{ "Chemlight_blue", "", 1500, 150, "" }
};
mags[] = {};
accs[] = {};
};
//Cop Shops
class cop_basic {
name = "Altis Cop Shop";
side = "cop";
conditions = "";
items[] = {
{ "Binocular", "", 150, 75, "" },
{ "ItemGPS", "", 100, 50, "" },
{ "FirstAidKit", "", 150, 75, "" },
{ "NVGoggles", "", 2000, 1000, "" },
{ "HandGrenade_Stone", $STR_W_items_Flashbang, 1700, 850, "" },
{ "hgun_P07_snds_F", $STR_W_items_StunPistol, 2000, 1000, "" },
{ "arifle_SDAR_F", $STR_W_items_TaserRifle, 20000, 10000, "" },
{ "hgun_P07_F", "", 7500, 3750, "" },
{ "hgun_P07_khk_F", "", 7500, 3750, "" }, //Apex DLC
{ "hgun_Pistol_heavy_01_F", "", 9500, 4750, "call life_coplevel >= 1" },
{ "SMG_02_ACO_F", "", 30000, 15000, "call life_coplevel >= 2" },
{ "arifle_MX_F", "", 35000, 17500, "call life_coplevel >= 2" },
{ "hgun_ACPC2_F", "", 17500, 8750, "call life_coplevel >= 3" },
{ "arifle_MXC_F", "", 30000, 15000, "call life_coplevel >= 3" },
{ "SMG_03C_TR_black", "", 30000, 15000, "call life_coplevel >= 3" },
{ "strifle_DMR_06_camo_F", "", 30000, 15000, "call life_coplevel >= 5" },
{ "srifle_DMR_07_blk_F", "", 32000, 16000, "call life_coplevel >= 3" }, //Apex DLC Sniper
{ "CUP_hgun_BallisticShield_Armed", "", 1, 1, "call life_coplevel >= 5" }
};
mags[] = {
{ "16Rnd_9x21_Mag", "", 125, 60, "" },
{ "20Rnd_556x45_UW_mag", $STR_W_mags_TaserRifle, 125, 60, "" },
{ "11Rnd_45ACP_Mag", "", 130, 65, "call life_coplevel >= 1" },
{ "30Rnd_65x39_caseless_mag", "", 130, 65, "call life_coplevel >= 2" },
{ "30Rnd_9x21_Mag", "", 250, 125, "call life_coplevel >= 2" },
{ "9Rnd_45ACP_Mag", "", 200, 100, "call life_coplevel >= 3" },
{ "20Rnd_650x39_Cased_Mag_F", "", 200, 100, "call life_coplevel >= 3" } //Apex DLC
};
accs[] = {
{ "muzzle_snds_L", "", 650, 325, "" },
{ "optic_MRD", "", 2750, 1375, "call life_coplevel >= 1" },
{ "acc_flashlight", "", 750, 375, "call life_coplevel >= 2" },
{ "optic_Holosight", "", 1200, 600, "call life_coplevel >= 2" },
{ "optic_Arco", "", 2500, 1250, "call life_coplevel >= 2" },
{ "ACE_optic_LRPS_2D", "", 30000, 15000, "call life_coplevel >= 3" },
{ "muzzle_snds_B", "", 30000, 15000, "call life_coplevel >= 3" },
{ "optic_ACO_grn_smg", "", 30000, 15000, "call life_coplevel >= 3" },
{ "ACE_acc_pointer_green", "", 30000, 15000, "call life_coplevel >= 3" },
{ "muzzle_snds_H", "", 2750, 1375, "call life_coplevel >= 2" }
};
};
//Medic Shops
class med_basic {
name = "store";
side = "med";
conditions = "";
items[] = {
{ "ItemGPS", "", 100, 50, "" },
{ "Binocular", "", 150, 75, "" },
{ "FirstAidKit", "", 150, 75, "" },
{ "NVGoggles", "", 1200, 600, "" }
};
mags[] = {};
accs[] = {};
};
};