was ist denn noch mit dem Auto?
Beiträge von Kuchenplatte
-
-
Bist Wohl noch nicht dazu gekommen wa ?

Nee sorry aber bin bemüht

-
Ich glaube ich habe die lösung, der server stürtzt ab weil ich zu viele texturen und so hab....
nein du hast ein fehler in deiner datenbank ....herrijasses

-
-
-
-
-
ne dein extdb log ist nicht clean

-
also extDB logs sind auch clean ?
Server ist auf 64Bit geupdated?
-
schlägt ins Auge oder ??
Code
Alles anzeigen22:24:05 Error in expression <x","_price","_amount","_name"]; if(EQUAL(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error position: <(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error Missing ) 22:24:05 File core\shops\fn_virt_sell.sqf [life_fnc_virt_sell], line 65 22:24:05 Error in expression <x","_price","_amount","_name"]; if(EQUAL(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error position: <(lbCurSel 2402,-1)) exitWith {}; _type => 22:24:05 Error Missing ) 22:24:05 File core\shops\fn_virt_sell.sqf -
Check ich nicht sry. Aber bin kein Pro Skripter. Magst du mir Mal helfen dabei ?
werde dir morgen ( falls sich hier kein anderer meldet ) ein beispiel schreiben
#binmobilonline
-
Verkaufen von Z items funktioniert nicht wie kann ich es fixen ?
Sorry aber diese Frage ist totaler Stuhlgang

Merkst aber selber oder ?
- Was hast du zuletzt gemacht ?
- RPT Log ?
bitte sei so gut und drücke dich nächstes mal etwas präziser aus . Danke
-
Ist ja auch kein Wunder das das nicht klappt - du musst deine Classnames in der Clothing Config definieren - in der jeweiligen Shop class.
Die müssen identisch sein in beiden Datein.
-
Du definierst den Classnamen auf welche Textur die Datei zugeschnitten wurde in der
Config_Clothing
dann musst du in der playerskins.sqf deinen pfad unter dem jeweiligen Case
Cop
Civ
Independent
zuordnen

-
Hört sich an als hättest du schon etwas arbeit in deine mission mit der 4.0 gesteckt - dennoch würde ich dir ein versionswechsel vorschlagen
- nur meine Empfehlung. aber letztendlich so wie jeder mag 
-
hm hast du mal bei deren im Clientlog geschaut ?
Nunja im RPT steht noch folgendes :
Code03:24 Warning Message: Script \life_server\Functions\Jail\fn_jailTimer.sqf not found 21:03:24 Warning Message: Script \life_server\Functions\Jail\fn_jailPlayer.sqf not foundCode
Alles anzeigen21:04:16 Call extension 'extDB' could not be loaded 21:04:16 Error in expression < call compile format["%1",_key]; _key = _key select 1; DB_Async_Active = true; > 21:04:16 Error position: <_key select 1; DB_Async_Active = true; > 21:04:16 Error Undefined variable in expression: _key 21:04:16 File \life_server\Functions\MySQL\fn_asyncCall.sqf [DB_fnc_asyncCall], line 25 21:04:16 Call extension 'extDB' could not be loaded 21:04:16 Error in expression < = "extDB" callExtension format["4:%1", _key]; if (_queryResult == "[5]") then {> 21:04:16 Error position: <_key]; if (_queryResult == "[5]") then {> 21:04:16 Error Undefined variable in expression: _key 21:04:16 File \life_server\Functions\MySQL\fn_asyncCall.sqf [DB_fnc_asyncCall], line 36 21:04:16 Error in expression <ct 1); if(!_multiarr) then { _return = _return select 0; }; _return;> 21:04:16 Error position: <_return select 0; }; _return;> 21:04:16 Error Undefined variable in expression: _return 21:04:16 File \life_server\Functions\MySQL\fn_asyncCall.sqf [DB_fnc_asyncCall], line 68 21:04:16 Error in expression <ult = call compile _queryResult; if ((_queryResult select 0) == 0) exitWith {d> 21:04:16 Error position: <_queryResult select 0) == 0) exitWith {d> 21:04:16 Error Undefined variable in expression: _queryresult 21:04:16 File \life_server\Functions\MySQL\fn_asyncCall.sqf [DB_fnc_asyncCall], line 61 21:04:16 Error in expression <] call DB_fnc_asyncCall;extDB can not be loaded

-
frag unsere Acenude br1zey
Send nudes!
-
Gibts auch ein Bild wie das ganze aussieht ?

Gerne kein Problem werde es editieren heute abend

-
Moin,
möchte bitten das Tutorial nicht in anderen Foren zu veröffentlichen.
Vielen Dank.
Credits : DarthRogue
Edited by : Kuchenplatte
Letz Start :
- erstellt in eurer Mission einen Ordner namens scripts falls ihr schon einen habt seit ihr echt super !!
- erstellt eine Datei names monitor.sqf und füllt sie mit folgendem Inhalt :
Code
Alles anzeigen/* Player Status Bar with Icons v 1.36 Author: Dart_Rogue Mod: Epoch https://github.com/DarthRogue edited by Kuchenplatte */ waitUntil {!(isNull (findDisplay 46))}; disableSerialization; _rscLayer = "osefStatusBar" call BIS_fnc_rscLayer; _rscLayer cutRsc["osefStatusBar","PLAIN"]; systemChat format["Willkommen auf dem Server", _rscLayer]; [] spawn { sleep 2; _counter = 360; _timeSinceLastUpdate = 0; _colourDefault = parseText "#ADADAD"; //set your default colour here _colour100 = parseText "#33FF00"; _colour90 = parseText "#33FF00"; _colour80 = parseText "#33FF00"; _colour70 = parseText "#33FF00"; _colour60 = parseText "#66FF00"; _colour50 = parseText "#CCFF00"; _colour40 = parseText "#FFFF00"; _colour30 = parseText "#FFFF00"; _colour20 = parseText "#CC0000"; _colour10 = parseText "#CC0000"; _colour0 = parseText "#CC0000"; _colourDead = parseText "#000000"; _colourUpTimeHUD = parseText "#CCCCCC"; while {true} do { sleep 1; //moved the creation of the status bar inside the loop and create it if it is null, //this is to handle instance where the status bar is disappearing if(isNull ((uiNamespace getVariable "statusBar")displayCtrl 55555)) then { diag_log "statusbar is null create"; disableSerialization; _rscLayer = "statusBar" call BIS_fnc_rscLayer; _rscLayer cutRsc["statusBar","PLAIN"]; }; //initialize variables and set values //neu _CivplayHUD = civilian countSide playableUnits; _WestplayHUD = west countSide playableUnits; _IndepplayHUD = independent countSide playableUnits; _EastplayHUD = east countSide playableUnits; _grid = mapGridPosition player; _xx = (format[_grid]) select [0,3]; _yy = (format[_grid]) select [3,3]; _hunger = round(life_hunger); _thirst = round(life_thirst); _damage = round ((1 - (damage player)) * 100); _FpsHud = round (diag_fps); _stamina = round(getFatigue player * 100) / 100; _UpTimeHUD = [serverTime,"HH:MM:SS"] call BIS_fnc_secondsToString; //neu ende _toxPercent = round(life_thirst); _energy = round(life_thirst); _energyPercent = floor((_energy / 2500 ) * 100); _players = (count playableUnits -1); //Colour coding //Hunger _colourHunger = _colourDefault; switch true do { case(_hunger >= 100) : {_colourHunger = _colour70;}; case((_hunger >= 90) && (_hunger < 100)) : {_colourHunger = _colour70;}; case((_hunger >= 80) && (_hunger < 90)) : {_colourHunger = _colour70;}; case((_hunger >= 70) && (_hunger < 80)) : {_colourHunger = _colour70;}; case((_hunger >= 60) && (_hunger < 70)) : {_colourHunger = _colour60;}; case((_hunger >= 50) && (_hunger < 60)) : {_colourHunger = _colour50;}; case((_hunger >= 40) && (_hunger < 50)) : {_colourHunger = _colour40;}; case((_hunger >= 30) && (_hunger < 40)) : {_colourHunger = _colour30;}; case((_hunger >= 20) && (_hunger < 30)) : {_colourHunger = _colour20;}; case((_hunger >= 10) && (_hunger < 20)) : {_colourHunger = _colour10;}; case((_hunger >= 1) && (_hunger < 10)) : {_colourHunger = _colour0;}; case(_hunger < 1) : {_colourHunger = _colourDead;}; }; //Thirst _colourThirst = _colourDefault; switch true do{ case(_thirst >= 100) : {_colourThirst = _colour70;}; case((_thirst >= 90) && (_thirst < 100)) : {_colourThirst = _colour70;}; case((_thirst >= 80) && (_thirst < 90)) : {_colourThirst = _colour70;}; case((_thirst >= 70) && (_thirst < 80)) : {_colourThirst = _colour70;}; case((_thirst >= 60) && (_thirst < 70)) : {_colourThirst = _colour60;}; case((_thirst >= 50) && (_thirst < 60)) : {_colourThirst = _colour50;}; case((_thirst >= 40) && (_thirst < 50)) : {_colourThirst = _colour40;}; case((_thirst >= 30) && (_thirst < 40)) : {_colourThirst = _colour30;}; case((_thirst >= 20) && (_thirst < 30)) : {_colourThirst = _colour20;}; case((_thirst >= 10) && (_thirst < 20)) : {_colourThirst = _colour10;}; case((_thirst >= 1) && (_thirst < 10)) : {_colourThirst = _colour0;}; case(_thirst < 1) : {_colourThirst = _colourDead;}; }; //Damage _colourDamage = _colourDefault; switch true do { case(_damage >= 100) : {_colourDamage = _colour70;}; case((_damage >= 90) && (_damage < 100)) : {_colourDamage = _colour70;}; case((_damage >= 80) && (_damage < 90)) : {_colourDamage = _colour70;}; case((_damage >= 70) && (_damage < 80)) : {_colourDamage = _colour70;}; case((_damage >= 60) && (_damage < 70)) : {_colourDamage = _colour60;}; case((_damage >= 50) && (_damage < 60)) : {_colourDamage = _colour50;}; case((_damage >= 40) && (_damage < 50)) : {_colourDamage = _colour40;}; case((_damage >= 30) && (_damage < 40)) : {_colourDamage = _colour30;}; case((_damage >= 20) && (_damage < 30)) : {_colourDamage = _colour20;}; case((_damage >= 10) && (_damage < 20)) : {_colourDamage = _colour10;}; case((_damage >= 1) && (_damage < 10)) : {_colourDamage = _colour0;}; case(_damage < 1) : {_colourDamage = _colourDead;}; }; //Stamina _colourStamina = _colourDefault; switch true do{ case(_Stamina < 0.01) : {_colourStamina = _colour70;}; case((_Stamina >= 0.01) && (_Stamina < 0.3)) : {_colourStamina = _colour70;}; case((_Stamina >= 0.3) && (_Stamina < 0.6)) : {_colourStamina = _colour30;}; case(_Stamina >= 0.6) : {_colourStamina = _colour0;}; }; //FPS _colourFps = _colourDefault; switch true do { case(_FpsHud >= 60) : {_colourFps = _colour70;}; case((_FpsHud >= 30) && (_FpsHud < 60)) : {_colourFps = _colour30;}; case((_FpsHud >= 1) && (_FpsHud < 30)) : {_colourFps = _colour0;}; case(_FpsHud < 1) : {_colourFps = _colourDead;}; }; ((uiNamespace getVariable "osefStatusBar")displayCtrl 555556)ctrlSetStructuredText parseText format["<t shadow='1' shadowColor='#000000'><img size='1.6' shadowColor='#000000' image='icons\Statusbar\players.paa' color='#FFFFFF'/>%1 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\players.paa' color='#3399FF'/>%2 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\players.paa' color='#009933'/>%3 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\players.paa' color='#CC0000'/>%4 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\ico_map.paa'/>%5 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\hunger.paa' color='%7'/>%6 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\thirst.paa' color='%9'/>%8 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\damage.paa' color='%11'/>%10 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\stamina.paa' color='%13'/>%12 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\monitor_fps.paa' color='%15'/>%14 <img size='1.6' shadowColor='#000000' image='icons\Statusbar\restart.paa' color='%17'/>%16</t>",_CivplayHUD,_WestplayHUD,_IndepplayHUD,_EastplayHUD, format["%1/%2",_xx,_yy], _hunger, _colourHunger, _thirst, _colourThirst, _damage, _colourDamage, _stamina, _colourStamina, _FpsHud, _colourFps, _UpTimeHUD, _colourUpTimeHUD,_players,_energyPercent,_colourDefault]; }; };erstellt im dialog Ordner die Datei Statusbar.hpp mit folgendem Inhalt :
Code
Alles anzeigen#define ST_RIGHT 0x01 class osefStatusBar { idd = -1; onLoad = "uiNamespace setVariable ['osefStatusBar', _this select 0]"; onUnload = "uiNamespace setVariable ['osefStatusBar', objNull]"; onDestroy = "uiNamespace setVariable ['osefStatusBar', objNull]"; fadein = 0; fadeout = 0; duration = 10e10; movingEnable = 0; controlsBackground[] = {}; objects[] = {}; class controls { class statusBarText { idc = 555556; x = safezoneX + safezoneW - 0.85; y = safezoneY + safezoneH - 0.08; w = 0.85; h = 0.056; shadow = 2; colorBackground[] = { 0, 0, 0, 0.5 }; font = "PuristaSemibold"; size = 0.03; type = 13; style = 1; text=""; class Attributes { align="left"; color = "#CCCCCC";//#5fe60c }; }; }; };Ordner "Icons" erstellen und die folgenden Dateien einfügen (siehe Dateianhang).
Icons/Statusbar/players.paa
Icons/Statusbar/ico_map.paa
Icons/Statusbar/hunger.paa
Icons/Statusbar/thirst.paa
Icons/Statusbar/damage.paa
Icons/Statusbar/stamina.paa
Icons/Statusbar/monitor_fps.paa
Icons/Statusbar/restart.paa
Notepad++
Um das alte Hud zu entfernen öffnet ihr Notepad or whatever und sucht in den Datein nach "[] call life_fnc_hudUpdate;" und löscht diesen aus allen Datein.
Zum Schluß:
- Geht in eure description.ext und fügt unter 'class RscTitles' folgendes ein:
#include "dialog\statusBar.hpp" - 4. Geht in eure init (Altis_Life.Altis\init.sqf) und fügt ganz unten folgendes ein:
[] execVM "scripts\monitor.sqf";
-
ersetze mal deine durch die hier exakt :
Code
Alles anzeigen#include "script_macros.hpp" /* File: functions.sqf Author: Bryan "Tonic" Boardwine Description: They are functions. */ publicVariable "TON_fnc_terrainSort"; TON_fnc_index = compileFinal " private [""_item"",""_stack""]; _item = _this select 0; _stack = _this select 1; _return = -1; { if (_item in _x) exitWith { _return = _forEachIndex; }; } forEach _stack; _return; "; TON_fnc_player_query = compileFinal " private [""_ret""]; _ret = _this select 0; if (isNull _ret) exitWith {}; if (isNil ""_ret"") exitWith {}; [life_atmbank,life_cash,owner player,player,profileNameSteam,getPlayerUID player,playerSide] remoteExecCall [""life_fnc_adminInfo"",_ret]; "; publicVariable "TON_fnc_player_query"; publicVariable "TON_fnc_index"; TON_fnc_isnumber = compileFinal " private [""_valid"",""_array""]; _valid = [""0"",""1"",""2"",""3"",""4"",""5"",""6"",""7"",""8"",""9""]; _array = [_this select 0] call KRON_StrToArray; _return = true; { if (!(_x in _valid)) exitWith { _return = false; }; } forEach _array; _return; "; publicVariable "TON_fnc_isnumber"; TON_fnc_clientGangKick = compileFinal " private [""_unit"",""_group""]; _unit = _this select 0; _group = _this select 1; if (isNil ""_unit"" || isNil ""_group"") exitWith {}; if (player isEqualTo _unit && (group player) == _group) then { life_my_gang = objNull; [player] joinSilent (createGroup civilian); hint ""You have been kicked out of the gang.""; }; "; publicVariable "TON_fnc_clientGangKick"; TON_fnc_clientGetKey = compileFinal " private [""_vehicle"",""_unit"",""_giver""]; _vehicle = _this select 0; _unit = _this select 1; _giver = _this select 2; if (isNil ""_unit"" || isNil ""_giver"") exitWith {}; if (player isEqualTo _unit && !(_vehicle in life_vehicles)) then { _name = getText(configFile >> ""CfgVehicles"" >> (typeOf _vehicle) >> ""displayName""); hint format [""%1 has gave you keys for a %2"",_giver,_name]; life_vehicles pushBack _vehicle; [getPlayerUID player,playerSide,_vehicle,1] remoteExecCall [""TON_fnc_keyManagement"",2]; }; "; publicVariable "TON_fnc_clientGetKey"; TON_fnc_clientGangLeader = compileFinal " private [""_unit"",""_group""]; _unit = _this select 0; _group = _this select 1; if (isNil ""_unit"" || isNil ""_group"") exitWith {}; if (player isEqualTo _unit && (group player) == _group) then { player setRank ""COLONEL""; _group selectLeader _unit; hint ""You have been made the new leader.""; }; "; publicVariable "TON_fnc_clientGangLeader"; TON_fnc_clientGangLeft = compileFinal " private [""_unit"",""_group""]; _unit = _this select 0; _group = _this select 1; if (isNil ""_unit"" || isNil ""_group"") exitWith {}; if (player isEqualTo _unit && (group player) == _group) then { life_my_gang = objNull; [player] joinSilent (createGroup civilian); hint ""You have quit the gang.""; }; "; publicVariable "TON_fnc_clientGangLeft"; //Cell Phone Messaging /* -fnc_cell_textmsg -fnc_cell_textcop -fnc_cell_textadmin -fnc_cell_adminmsg -fnc_cell_adminmsgall */ //To EMS TON_fnc_cell_emsrequest = compileFinal " private [""_msg"",""_to""]; ctrlShow[3022,false]; _msg = ctrlText 88884; _to = ""EMS Units""; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3022,true];}; [_msg,name player,5,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",independent]; [] call life_fnc_cellphone; hint format [""You have sent a message to all EMS Units."",_to,_msg]; ctrlShow[3022,true]; "; //To One Person TON_fnc_cell_textmsg = compileFinal " private [""_msg"",""_to""]; ctrlShow[3015,false]; _msg = ctrlText 88884; if (lbCurSel 3004 isEqualTo -1) exitWith {hint ""You must select a player you are sending the text to!""; ctrlShow[3015,true];}; _to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])]; if (isNull _to) exitWith {ctrlShow[3015,true];}; if (isNil ""_to"") exitWith {ctrlShow[3015,true];}; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3015,true];}; [_msg,name player,0] remoteExecCall [""TON_fnc_clientMessage"",_to]; [] call life_fnc_cellphone; hint format [""You sent %1 a message: %2"",name _to,_msg]; ctrlShow[3015,true]; "; //To All Cops TON_fnc_cell_textcop = compileFinal " private [""_msg"",""_to""]; ctrlShow[3016,false]; _msg = ctrlText 88884; _to = ""The Police""; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3016,true];}; [_msg,name player,1,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [""You sent %1 a message: %2"",_to,_msg]; ctrlShow[3016,true]; "; //To All Admins TON_fnc_cell_textadmin = compileFinal " private [""_msg"",""_to"",""_from""]; ctrlShow[3017,false]; _msg = ctrlText 88884; _to = ""The Admins""; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3017,true];}; [_msg,name player,2,mapGridPosition player,player] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [""You sent %1 a message: %2"",_to,_msg]; ctrlShow[3017,true]; "; //Admin To One Person TON_fnc_cell_adminmsg = compileFinal " if (isServer) exitWith {}; if ((call life_adminlevel) < 1) exitWith {hint ""You are not an admin!"";}; private [""_msg"",""_to""]; ctrlShow[3020,false]; _msg = ctrlText 88884; _to = call compile format [""%1"",(lbData[3004,(lbCurSel 3004)])]; if (isNull _to) exitWith {ctrlShow[3020,true];}; if (isNil ""_to"") exitWith {ctrlShow[3020,true];}; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3020,true];}; [_msg,name player,3] remoteExecCall [""TON_fnc_clientMessage"",_to]; [] call life_fnc_cellphone; hint format [""Admin Message Sent To: %1 - Message: %2"",name _to,_msg]; ctrlShow[3020,true]; "; TON_fnc_cell_adminmsgall = compileFinal " if (isServer) exitWith {}; if ((call life_adminlevel) < 1) exitWith {hint ""You are not an admin!"";}; private [""_msg"",""_from""]; ctrlShow[3021,false]; _msg = ctrlText 88884; if (_msg isEqualTo """") exitWith {hint ""You must enter a message to send!"";ctrlShow[3021,true];}; [_msg,name player,4] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format [""Admin Message Sent To All: %1"",_msg]; ctrlShow[3021,true]; "; TON_fnc_cell_polizeimsgall = //NEW compileFinal " if(isServer) exitWith {}; if((call life_coplevel) < 4) exitWith {hint ""Du bist dazu nicht berechtigt!"";}; private[""_msg"",""_from""]; ctrlShow[3023,false]; _msg = ctrlText 88884; if(_msg == """") exitWith {hint ""Du musst eine Nachricht eingeben!"";ctrlShow[3023,true];}; [_msg,name player,6] remoteExecCall [""TON_fnc_clientMessage"",-2]; [] call life_fnc_cellphone; hint format[""gesendete Rundfunknachricht: %1"",_msg]; ctrlShow[3023,true]; "; publicVariable "TON_fnc_cell_textmsg"; publicVariable "TON_fnc_cell_textcop"; publicVariable "TON_fnc_cell_textadmin"; publicVariable "TON_fnc_cell_adminmsg"; publicVariable "TON_fnc_cell_adminmsgall"; publicVariable "TON_fnc_cell_polizeimsgall"; publicVariable "TON_fnc_cell_emsrequest"; //Client Message /* 0 = private message 1 = police message 2 = message to admin 3 = message from admin 4 = admin message to all */ TON_fnc_clientMessage = compileFinal " if (isServer) exitWith {}; private [""_msg"",""_from"", ""_type""]; _msg = _this select 0; _from = _this select 1; _type = _this select 2; if (_from isEqualTo """") exitWith {}; switch (_type) do { case 0 : { private [""_message""]; _message = format ["">>>MESSAGE FROM %1: %2"",_from,_msg]; hint parseText format [""<t color='#FFCC00'><t size='2'><t align='center'>New Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>You<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%2"",_from,_msg]; [""TextMessage"",[format [""You Received A New Private Message From %1"",_from]]] call bis_fnc_showNotification; systemChat _message; }; case 1 : { if (side player != west) exitWith {}; private [""_message"",""_loc"",""_unit""]; _loc = _this select 3; _unit = _this select 4; _message = format [""--- 911 DISPATCH FROM %1: %2"",_from,_msg]; if (isNil ""_loc"") then {_loc = ""Unknown"";}; hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>New Dispatch<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>All Officers<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><t color='#33CC33'>Coords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%3"",_from,_loc,_msg]; [""PoliceDispatch"",[format [""A New Police Report From: %1"",_from]]] call bis_fnc_showNotification; systemChat _message; }; case 2 : { if ((call life_adminlevel) < 1) exitWith {}; private [""_message"",""_loc"",""_unit""]; _loc = _this select 3; _unit = _this select 4; _message = format [""!!! ADMIN REQUEST FROM %1: %2"",_from,_msg]; if (isNil ""_loc"") then {_loc = ""Unknown"";}; hint parseText format [""<t color='#ffcefe'><t size='2'><t align='center'>Admin Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>Admins<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><t color='#33CC33'>Coords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%3"",_from,_loc,_msg]; [""AdminDispatch"",[format [""%1 Has Requested An Admin!"",_from]]] call bis_fnc_showNotification; systemChat _message; }; case 3 : { private [""_message""]; _message = format [""!!! ADMIN MESSAGE: %1"",_msg]; _admin = format [""Sent by admin: %1"", _from]; hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>You<br/><t color='#33CC33'>From: <t color='#ffffff'>An Admin<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%1"",_msg]; [""AdminMessage"",[""You Have Received A Message From An Admin!""]] call bis_fnc_showNotification; systemChat _message; if ((call life_adminlevel) > 0) then {systemChat _admin;}; }; case 4 : { private [""_message"",""_admin""]; _message = format [""!!!ADMIN MESSAGE: %1"",_msg]; _admin = format [""Sent by admin: %1"", _from]; hint parseText format [""<t color='#FF0000'><t size='2'><t align='center'>Admin Message<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>All Players<br/><t color='#33CC33'>From: <t color='#ffffff'>The Admins<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%1"",_msg]; [""AdminMessage"",[""You Have Received A Message From An Admin!""]] call bis_fnc_showNotification; systemChat _message; if ((call life_adminlevel) > 0) then {systemChat _admin;}; }; case 5 : { if (side player != independent) exitWith {}; private [""_message"",""_loc"",""_unit""]; _loc = _this select 3; _unit = _this select 4; _message = format [""--- EMS REQUEST %1: %2"",_from,_msg]; if (isNil ""_loc"") then {_loc = ""Unknown"";}; hint parseText format [""<t color='#316dff'><t size='2'><t align='center'>EMS Request<br/><br/><t color='#33CC33'><t align='left'><t size='1'>To: <t color='#ffffff'>You<br/><t color='#33CC33'>From: <t color='#ffffff'>%1<br/><t color='#33CC33'>Coords: <t color='#ffffff'>%2<br/><br/><t color='#33CC33'>Message:<br/><t color='#ffffff'>%3"",_from,_loc,_msg]; [""TextMessage"",[format [""EMS Request from: %1"",_from]]] call bis_fnc_showNotification; systemChat _message; }; case 6 : { private[""_message"",""_admin""]; _message = format[""POLIZEI RUNDFUNK: %1"",_msg]; hint parseText format [""<t color='#0000FF'><t size='2'><t align='center'>Polizei Rundfunk<br/><br/><t color='#33CC33'><t align='left'><t size='1'>An: <t color='#ffffff'>Alle Bürger<br/><t color='#33CC33'>Von: <t color='#ffffff'>Polizei Altis<br/><br/><t color='#33CC33'>Mitteilung:<br/><t color='#ffffff'>%1"",_msg]; [""PolizeiRundfunk"",[""Neue Polizei Mitteilung""]] call bis_fnc_showNotification; systemChat _message; }; }; "; publicVariable "TON_fnc_clientMessage"; TON_fnc_MapMarkersAdmin = compileFinal " life_markers_Vehicles = []; life_markers_Players = []; if (!life_markers) then { life_markers = true; hint localize ""STR_ANOTF_MEnabled""; } else { life_markers = false; hint localize ""STR_ANOTF_MDisabled""; }; for ""_i"" from 0 to 1 step 0 do { if (!life_markers) exitWith {}; { if ((vehicle _x isKindOf ""LandVehicle"") || (vehicle _x isKindOf ""Air"") || (vehicle _x isKindOf ""Ship"")) then { if (count(crew vehicle _x) > 0) then { { if (!(_x in life_markers_Vehicles) && (alive _x) && (getPlayerUID _x != """")) then { private [""_pos"", ""_Markers"", ""_Vehicle""]; _Vehicle = vehicle _x; _pos = visiblePosition _x; _Markers = createMarkerLocal[format [""CRW%1%2"", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]]; _TypeVehicle = (getText(configFile >> 'CfgVehicles' >> (typeOf vehicle _x) >> 'displayName')); _Markers setMarkerTextLocal format ['%1---%2---%3m', name _x, _TypeVehicle, round(_x distance player)]; _Markers setMarkerTypeLocal ""mil_dot""; if (side _x isEqualTo independent) then { _Markers setMarkerColorLocal (""ColorIndependent""); }; if (side _x isEqualTo civilian) then { _Markers setMarkerColorLocal (""ColorCivilian""); }; if (side _x isEqualTo west) then { _Markers setMarkerColorLocal (""ColorBLUFOR""); }; _Markers setMarkerSizeLocal[1, 1]; life_markers_Vehicles pushBack _x; [_x, _Markers, _Vehicle, _TypeVehicle] spawn { private [""_PlayersOrVehicles"", ""_Marker"", ""_CrewVehicle""]; _PlayersOrVehicles = _this select 0; _Marker = _this select 1; _TypeVehicle = _this select 3; for ""_i"" from 0 to 1 step 0 do { if (!life_markers && !(alive _PlayersOrVehicles) && (vehicle _PlayersOrVehicles == _PlayersOrVehicles) && (getPlayerUID _PlayersOrVehicles != """")) exitWith {}; _CrewVehicle = ((crew vehicle _PlayersOrVehicles) find _PlayersOrVehicles); _Marker setMarkerPosLocal([(visiblePosition _PlayersOrVehicles select 0) + 20, (visiblePosition _PlayersOrVehicles select 1) - (25 + _CrewVehicle * 20), 0]); _Marker setMarkerTextLocal format ['%1---%2---%3m', name _PlayersOrVehicles, _TypeVehicle, round(_PlayersOrVehicles distance player)]; sleep 0.01; }; deleteMarkerLocal _Marker; if (_PlayersOrVehicles in life_markers_Vehicles) then { life_markers_Vehicles deleteAt (life_markers_Vehicles find _PlayersOrVehicles); }; true; }; }; } forEach crew vehicle _x; }; } else { if (!(_x in life_markers_Players) && (vehicle _x == _x) && (getPlayerUID _x != """")) then { private [""_pos"", ""_Markers""]; _pos = visiblePosition _x; _Markers = createMarkerLocal[format [""PLR%1%2"", _pos select 0, _pos select 1], [(_pos select 0) + 20, _pos select 1, 0]]; _Markers setMarkerTypeLocal ""mil_dot""; _Markers setMarkerSizeLocal[1, 1]; if (side _x isEqualTo independent) then { _Markers setMarkerColorLocal (""ColorIndependent""); }; if (side _x isEqualTo civilian) then { _Markers setMarkerColorLocal (""ColorCivilian""); }; if (side _x isEqualTo west) then { _Markers setMarkerColorLocal (""ColorBLUFOR""); }; _Markers setMarkerTextLocal format [""%1---%2"", name _x, round(_x distance player)]; if (_x == player) then { _Markers setMarkerColorLocal ""ColorGreen""; }; life_markers_Players pushBack _x; [_x, _Markers] spawn { private [""_PlayersOrVehicles"", ""_Marker""]; _PlayersOrVehicles = _this select 0; _Marker = _this select 1; for ""_i"" from 0 to 1 step 0 do { if (!life_markers && !(alive _PlayersOrVehicles) && (vehicle _PlayersOrVehicles != _PlayersOrVehicles) && (getPlayerUID _PlayersOrVehicles != """")) exitWith {}; _Marker setMarkerPosLocal([visiblePosition _PlayersOrVehicles select 0, visiblePosition _PlayersOrVehicles select 1, 0]); _Marker setMarkerTextLocal format [""%1---%2"", name _PlayersOrVehicles, round(_PlayersOrVehicles distance player)]; sleep 0.01; }; deleteMarkerLocal _Marker; if (_PlayersOrVehicles in life_markers_Players) then { life_markers_Players deleteAt (life_markers_Players find _PlayersOrVehicles); }; true; }; }; }; } forEach playableUnits; sleep 0.3; }; { _Markers = str _x; deleteMarkerLocal _Markers; } forEach playableUnits; "; publicVariable "TON_fnc_MapMarkersAdmin";