Werde es mal testen Danke schonmal
Beiträge von TheFireRunner Felix
-
-
w...w...w... wie? xD
-
achso xD
SQL: fn_copSiren3.sqf
Alles anzeigenprivate["_vehicle"]; _vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; if(isNull _vehicle) exitWith {}; if(isNil {_vehicle getVariable "siren3"}) exitWith {}; while {true} do { if(!(_vehicle getVariable "siren3")) exitWith {}; if(count (crew (_vehicle)) == 0) then {_vehicle setVariable["siren3",false,true]}; if(!alive _vehicle) exitWith {}; if(isNull _vehicle) exitWith {}; _vehicle say3D ["speech2",150,1]; sleep 5; if(!(_vehicle getVariable "siren3")) exitWith {}; };
-
SQL: fn_keyHandler.sql
Alles anzeigen//Ä Key case 40: { if (playerSide in [west] && {vehicle player != player} && {!life_siren_active} && {((driver vehicle player) == player)}) then { [] spawn { life_siren_active = true; sleep 7; life_siren_active = false; }; _veh = vehicle player; if (isNil {_veh getVariable "siren3"}) then {_veh setVariable ["siren3",false,true];}; if ((_veh getVariable "siren3")) then { titleText ["Warnung AUS","PLAIN"]; _veh setVariable ["siren3",false,true]; } else { titleText ["Warnung AN","PLAIN"]; _veh setVariable ["siren3",true,true]; if (playerSide isEqualTo west) then { [_veh] remoteExec ["life_fnc_copSiren3",RCLIENT]; } else { [_veh] remoteExec ["life_fnc_medicSiren",RCLIENT]; }; }; }; };
Bitte :3
-
Aber ich wollte das die Sirene sich nur einmal wiederholt und das ganz am Anfang wenn man diese Aktiviert...
Danke Trotzdem
-
Hat jemand noch eine Idee?
-
OK ich habe jetzt den beiden neuen Button in mein Menü eingefügt aber jetzt sind dort keine Kästchen zum anklicken...
Code: cell_phone.hpp
Alles anzeigenclass Life_cell_phone { idd = 3000; name = "Life_cell_phone"; onLoad = "[] spawn life_fnc_cellphone"; onUnLoad = ""; movingEnable = false; enableSimulation = false; class controlsBackground { class Life_RscTitleBackground: Life_RscText { idc = -1; text = ""; x = 0.1 * safezoneW + safezoneX; y = 0.2 * safezoneH + safezoneY; w = 0.64 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.698039}; }; }; class controls { class MainBackground: Life_RscText { idc = 2999; text = ""; x = 0.1 * safezoneW + safezoneX; y = 0.244 * safezoneH + safezoneY; w = 0.64 * safezoneW; h = 0.28 * safezoneH; ColorBackground[] = {0,0,0,0.698039}; ColorText[] = {1,1,1,1}; }; class Title: Life_RscText { idc = 3001; text = "$STR_CELL_Title"; x = 0.1 * safezoneW + safezoneX; y = 0.2 * safezoneH + safezoneY; w = 0.6 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0,0,0,0}; ColorText[] = {1,1,1,1}; }; class TextToSend: Life_RscText { idc = 3002; text = "$STR_CELL_TextToSend"; x = 0.1 * safezoneW + safezoneX; y = 0.25 * safezoneH + safezoneY; w = 0.6 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0,0,0,0}; ColorText[] = {1,1,1,1}; }; class textEdit: Life_RscEdit { idc = 3003; text = ""; x = 0.11 * safezoneW + safezoneX; y = 0.3 * safezoneH + safezoneY; w = 0.62 * safezoneW; h = 0.03 * safezoneH; ColorBackground[] = {0.784313,0.784313,0.784313,0}; ColorText[] = {1,1,1,1}; }; class TextMsgButton: Life_RscButtonMenu { idc = 3015; text = "$STR_CELL_TextMSGBtn"; onButtonClick = "[] call TON_fnc_cell_textmsg"; x = 0.11 * safezoneW + safezoneX; y = 0.35 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class PlayerList: Life_RscCombo { idc = 3004; text = ""; x = 0.11 * safezoneW + safezoneX; y = 0.4 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.098039,0.098039,0.098039,0.666666}; ColorText[] = {1,1,1,1}; }; class TextCopButton: Life_RscButtonMenu { idc = 3016; text = "$STR_CELL_TextPolice"; onButtonClick = "[] call TON_fnc_cell_textcop"; x = 0.32 * safezoneW + safezoneX; y = 0.35 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class TextAdminButton: Life_RscButtonMenu { idc = 3017; text = "$STR_CELL_TextAdmins"; onButtonClick = "[] call TON_fnc_cell_textadmin"; x = 0.53 * safezoneW + safezoneX; y = 0.35 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class AdminMsgButton: Life_RscButtonMenu { idc = 3020; text = "$STR_CELL_AdminMsg"; onButtonClick = "[] call TON_fnc_cell_adminmsg"; x = 0.32 * safezoneW + safezoneX; y = 0.4 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class AdminMsgAllButton: Life_RscButtonMenu { idc = 3021; text = "$STR_CELL_AdminMSGAll"; onButtonClick = "[] call TON_fnc_cell_adminmsgall"; x = 0.53 * safezoneW + safezoneX; y = 0.4 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class EMSRequest: Life_RscButtonMenu { idc = 3022; text = "$STR_CELL_EMSRequest"; onButtonClick = "[] call TON_fnc_cell_emsrequest"; x = 0.11 * safezoneW + safezoneX; y = 0.45 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0.380392,0.698039,0.882352,0.498039}; ColorText[] = {1,1,1,1}; }; class PoliceMsgAllButton: life_RscButtonMenu { idc = 3023; text = "Rundfunk"; onButtonClick = "[] call TON_fnc_cell_polizeimsgall"; x = 0.32 * safezoneW + safezoneX; y = 0.45 * safezoneH + safezoneY; w = 0.2 * safezoneW; h = 0.04 * safezoneH; ColorBackground[] = {0,0,0,0}; ColorText[] = {1,1,1,1}; }; class Title3: Life_RscText { idc = 8999; text = "Koords. verschlüsseln:"; x = 0.099739 * safezoneW + safezoneX; y = 0.521345 * safezoneH + safezoneY; w = 0.154687 * safezoneW; h = 0.022 * safezoneH; ColorBackground[] = {0.094117,0.094117,0.094117,0}; ColorText[] = {1,1,1,1}; }; class Title4: Life_RscText { idc = 11999; text = "Sender verschlüsseln:"; x = 0.099739 * safezoneW + safezoneX; y = 0.543567 * safezoneH + safezoneY; w = 0.154687 * safezoneW; h = 0.022 * safezoneH; ColorBackground[] = {0.094117,0.094117,0.094117,0}; ColorText[] = {1,1,1,1}; }; }; };
-
OK werde ich beim nächsten mal nutzen
-
#2 dialog\cell_phone.hpp
Ersetzt ganz einfach die ganze Datei mit der im Spoiler:Wenn ich das Script kopieren will ist überall eine Zeile frei -.-
Spoiler anzeigen
class Life_cell_phone {
idd = 3000;
name= "life_cell_phone";
movingEnable = 0;
enableSimulation = 1;
onLoad = "[] spawn life_fnc_cellphone";
class controlsBackground {
class Life_RscTitleBackground: Life_RscText
{
idc = -1;
text = "SMS schreiben..."; //--- ToDo: Localize;
x = 0.530937 * safezoneW + safezoneX;
y = 0.335 * safezoneH + safezoneY;
w = 0.175313 * safezoneW;
h = 0.022 * safezoneH;
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])","(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
};
class MainBackground: Life_RscText
{
idc = -1;
x = 0.530937 * safezoneW + safezoneX;
y = 0.357 * safezoneH + safezoneY;
w = 0.175313 * safezoneW;
h = 0.396 * safezoneH;
colorBackground[] = {0,0,0,0.7};
};
class TextToSend: Life_RscTitle
{
idc = -1;
text = "Senden an:"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.544 * safezoneH + safezoneY;
w = 0.154687 * safezoneW;
h = 0.0374 * safezoneH;
colorText[] = {0.95,0.95,0.95,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class Title3 : Life_RscText
{
idc = -1;
text = "Koords. verschlüsseln:"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.6144 * safezoneH + safezoneY;
w = 0.154687 * safezoneW;
h = 0.022 * safezoneH;
};
class Title4 : Life_RscText
{
idc = -1;
text = "Sender verschlüsseln:"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.6386 * safezoneH + safezoneY;
w = 0.154687 * safezoneW;
h = 0.022 * safezoneH;
};
};
class controls {
class textEdit: Life_RscEdit
{
idc = 3003;
text = "";
x = 0.54125 * safezoneW + safezoneX;
y = 0.379 * safezoneH + safezoneY;
w = 0.154687 * safezoneW;
h = 0.154 * safezoneH;
};
class TextMsgButton: Life_RscButtonMenu
{
idc = 3015;
onButtonClick = "[] call TON_fnc_cell_textmsg";
text = "Senden"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.588 * safezoneH + safezoneY;
w = 0.154687 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class PlayerList: Life_RscCombo
{
idc = 3004;
x = 0.592812 * safezoneW + safezoneX;
y = 0.5506 * safezoneH + safezoneY;
w = 0.0979687 * safezoneW;
h = 0.022 * safezoneH;
};
class TextCopButton: Life_RscButtonMenu
{
idc = 3016;
onButtonClick = "[] call TON_fnc_cell_textcop";
text = "Nato Notruf"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.676 * safezoneH + safezoneY;
w = 0.0721875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class TextAdminButton: Life_RscButtonMenu
{
idc = 3017;
onButtonClick = "[] call TON_fnc_cell_textadmin";
text = "Reg. Anfrage"; //--- ToDo: Localize;
x = 0.54125 * safezoneW + safezoneX;
y = 0.709 * safezoneH + safezoneY;
w = 0.0721875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class AdminMsgButton: Life_RscButtonMenu
{
idc = 3020;
onButtonClick = "[] call TON_fnc_cell_adminmsg";
text = "Als Reg."; //--- ToDo: Localize;
x = 0.70625 * safezoneW + safezoneX;
y = 0.588 * safezoneH + safezoneY;
w = 0.061875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class AdminMsgAllButton: Life_RscButtonMenu
{
idc = 3021;
onButtonClick = "[] call TON_fnc_cell_adminmsgall";
text = "Reg. Rundmsg"; //--- ToDo: Localize;
x = 0.70625 * safezoneW + safezoneX;
y = 0.621 * safezoneH + safezoneY;
w = 0.061875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class EMSRequest: Life_RscButtonMenu
{
idc = 3022;
onButtonClick = "[] call TON_fnc_cell_emsrequest";
text = "EMS Notruf"; //--- ToDo: Localize;
x = 0.62375 * safezoneW + safezoneX;
y = 0.676 * safezoneH + safezoneY;
w = 0.0721875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class CloseButtonKey: Life_RscButtonMenu
{
onButtonClick = "closeDialog 0;";
idc = -1;
text = "Schließen"; //--- ToDo: Localize;
x = 0.530937 * safezoneW + safezoneX;
y = 0.753 * safezoneH + safezoneY;
w = 0.0644531 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {0,0,0,0.8};
};
class BtnCopAllMsg : Life_RscButtonMenu
{
idc = 3025;
onButtonClick = "";
text = "NOT LOADED"; //--- ToDo: Localize;
x = 0.62375 * safezoneW + safezoneX;
y = 0.709 * safezoneH + safezoneY;
w = 0.0721875 * safezoneW;
h = 0.022 * safezoneH;
colorText[] = {1,1,1,1};
colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])",0.5};
};
class CBKoords: Life_Checkbox
{
idc = 3023;
x = 0.62375 * safezoneW + safezoneX;
y = 0.6144 * safezoneH + safezoneY;
w = 0.0154688 * safezoneW;
h = 0.022 * safezoneH;
};
class CBName: Life_Checkbox
{
idc = 3024;
x = 0.62375 * safezoneW + safezoneX;
y = 0.6386 * safezoneH + safezoneY;
w = 0.0154688 * safezoneW;
h = 0.022 * safezoneH;
};
};
};
-
-
BeFreezy Ok habe auch alles eingefügt
Vielen Dank
-
Da mal geschaut
Hab ich auch gesehen und ist gefixt (hoffe ich xD)
-
Komisch... aber am wenn man Spawnt kommt nen Error
-
Spoiler anzeigen
#include "..\..\script_macros.hpp"
/*
File: fn_playerSkins.sqf
Author: Daniel Stuart
Description:U_C_Commoner1_3
Sets skins for players by their side and uniform.
*/
private["_skinName"];
switch (playerSide) do {
case civilian: {
if (uniform player == "U_C_Poloshirt_stripped") then {
player setObjectTextureGlobal [0,"textures\civ\man\HDTeam.paa"];
};
};
case west: {
if (uniform player isEqualTo "U_B_CombatUniform_mcam_tshirt") then {
player setObjectTextureGlobal [0, "textures\cop\human\polizei_uniform.paa"];
(unitBackpack player) setObjectTextureGlobal [0, ""];
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
player setObjectTextureGlobal [0, "textures\cop\human\polizei_uniform.paa"];
(unitBackpack player) setObjectTextureGlobal [0, ""];
};
if ((uniform player isEqualTo "U_I_CombatUniform")) then {
player setObjectTextureGlobal [0, "textures\cop\human\sek.paa"];
};
if ((uniform player isEqualTo "U_B_GEN_Commander_F")) then {
player setObjectTextureGlobal [0, "textures\cop\human\cop_uni.paa"];
};
if ((uniform player isEqualTo "U_B_CombatUniform_mcam_worn")) then {
player setObjectTextureGlobal [0, "textures\cop\human\prasen.paa"];
};
if (((call life_coplevel) == 1) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A1.paa"];
};
if (((call life_coplevel) == 2) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A1.paa"];
};
if (((call life_coplevel) == 3) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A1.paa"];
};
if (((call life_coplevel) == 4) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A2.paa"];
};
if (((call life_coplevel) == 5) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A2.paa"];
};
if (((call life_coplevel) == 6) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A2.paa"];
};
if (((call life_coplevel) == 7) && (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A3.paa"];
};
if (((call life_coplevel) ==
&& (uniform player isEqualTo "U_Rangemaster")) then {
player setObjectTextureGlobal [0, "textures\cop\human\A3.paa"];
};
if (backpack player == "B_Carryall_cbr") then {
(backpackContainer player) setObjectTextureGlobal[0,""];
};
};
case independent: {
if (uniform player isEqualTo "U_Rangemaster") then {
player setObjectTextureGlobal [0, "textures\medic_uniform.jpg"];
(unitBackpack player) setObjectTextureGlobal [0, ""];
};
if (uniform player isEqualTo "U_B_CombatUniform_mcam") then {
player setObjectTextureGlobal [0, "textures\med\Medic.paa"];
(unitBackpack player) setObjectTextureGlobal [0, ""];
};
};
};
-
-
-
Was heißt bei dir reloaden? Neu kaufen, neu einloggen, aufheben?
Neu kaufen und/oder neu aufheben
Was heißt bei dir reloaden? Neu kaufen, neu einloggen, aufheben?
Danke
werde es mal testen
-
Guten Tag
Frage:Wie kann man das Beschlagnahmen beschleunigen?
Problem:Wenn die Cops spawnen ist deren Uniform unsichtbar aber wenn sie diese (nach mehreren Versuchen) "reloaden" nicht mehr. Jemand eine Lösung?
Freue mich auf antworten und danke schonmal im Vorraus
LG TheFireRunner aka. Felix
-
Gefixt
hatte die falsche impound.hpp
-