
TFAR Rucksack wird nicht unsichtbar
-
uuunix -
12. März 2017 um 14:17 -
Geschlossen -
Erledigt
-
-
-
Klappt leider noch immer nicht br1zey
Zitat#include <macro.h>
/*
File: fn_initCop.sqf
Author: Bryan "Tonic" Boardwine
Description:
Cop Initialization file.
*/
private["_end"];
player addRating 9999999;
waitUntil {!(isNull (findDisplay 46))};
_end = false;
if(life_blacklisted) exitWith
{
["Blacklisted",false,true] call BIS_fnc_endMission;
sleep 30;
};
if((FETCH_CONST(life_coplevel) == 0) && (FETCH_CONST(life_adminlevel) == 0)) then {
["NotWhitelisted",false,true] call BIS_fnc_endMission;
sleep 35;
};
if(backpack player == "tf_anprc155") then {
unitBackpack player setObjectTextureGlobal [0, ""];
};
player setVariable["rank",(FETCH_CONST(life_coplevel)),true];
[] 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.
[player, uniform player] call life_fnc_equipGear;
player setVariable ["copLevel",1,true]; -
mach das mal nicht in copInit bin mir grade nicht sicher ob die vor dem geben der sachen oder danach ausgefürt wird
am besten in die survival.sqf
mach da halt noch ne abfrage wenn es nur bei COP sein soll mit
-
Leider immernoch nicht was mich ziemlich verwundet obwohl es eigentlich richtig ist.. br1zey
Code
Alles anzeigen#include <macro.h> /* 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 { SUB(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(EQUAL(LIFE_SETTINGS(getNumber,"enable_fatigue"),1)) then {player setFatigue 1;}; }; }; }; }; _fnc_water = { if(life_thirst < 2) then {player setDamage 1; hint localize "STR_NOTF_DrinkMSG_Death";} else { SUB(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(EQUAL(LIFE_SETTINGS(getNumber,"enable_fatigue"),1)) then {player setFatigue 1;}; }; case 10: { hint localize "STR_NOTF_DrinkMSG_3"; if(EQUAL(LIFE_SETTINGS(getNumber,"enable_fatigue"),1)) then {player setFatigue 1;}; }; }; }; }; //Setup the time-based variables. _foodTime = time; _waterTime = time; _walkDis = 0; _bp = ""; _lastPos = visiblePosition player; _lastPos = (SEL(_lastPos,0)) + (SEL(_lastPos,1)); _lastState = vehicle player; while {true} do { if(alive player) then { sleep 150; [] call _fnc_water; sleep 300; [] call _fnc_food; }; }; /* Long Range invisible */ if(playerSide isEqualTo west) then { if(backpack player == "tf_anprc155") then { unitBackpack player setObjectTextureGlobal [0, ""]; }; }; /* Check if the player's state changed? */ if(vehicle player != _lastState OR {!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(EQUAL(LIFE_SETTINGS(getNumber,"enable_fatigue"),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 = (SEL(_curPos,0)) + (SEL(_curPos,1)); if(!(EQUAL(_curPos,_lastPos)) && {(vehicle player == player)}) then { ADD(_walkDis,1); if(EQUAL(_walkDis,650)) then { _walkDis = 0; SUB(life_thirst,5); SUB(life_hunger,5); [] call life_fnc_hudUpdate; }; }; _lastPos = visiblePosition player; _lastPos = (SEL(_lastPos,0)) + (SEL(_lastPos,1)); }; uiSleep 1; }; [player, uniform player] call life_fnc_equipGear;
-
Gib mal ne Ts IP oder so über PN ich kann dir das eben machen!
Mfg Pius von GermanRPG
-
Gib mal ne Ts IP oder so über PN ich kann dir das eben machen!
Mfg Pius von GermanRPG
Habs schon aber trotzdem danke
-
uuunix.
Wie hast du es jetzt hinbekommen ?
-
Ich habe mir die Altis Life Version 5.0.0 installiert, da meine vorherige Version ziemliche Bugs hatte.
Wie mir br1zey geschrieben hatte, habe ich einfach das in die fn_survival geschrieben :