ACHTUNG dieses tutorial wurde von Berni erstellt und ich übernehme es hier. Alle rechte liegen bei Ihm! Original tutorial : Hier
1. Normale Handy
2. SQL Handy
Solltet ihr das Normale Handy benutzen:
core\pmenu\fn_cellphone.sqf - Fügt nach
Code
disableSerialization;
waitUntil {!isNull findDisplay 3000};
_display = findDisplay 3000;
_units = _display displayCtrl 3004;
ctrlSetText [3003, ""];
lbClear _units;
Das hier ein:
Code
if(playergetVariable["restrained",false] || player getVariable ["surrender", false]) exitWith {hint "Du bist gefesselt!";};
Sollte Ungefähr so aussehen:
Code
....
disableSerialization;
waitUntil {!isNull findDisplay 3000};
_display = findDisplay 3000;
_units = _display displayCtrl 3004;
ctrlSetText [3003, ""];
lbClear _units;
if(player getVariable["restrained",false] || player getVariable ["surrender", false]) exitWith {hint "Du bist gefesselt!";};
if((__GETC__(life_adminlevel) < 1)) then
{
ctrlShow[3020,false];
ctrlShow[3021,false];
};
{
if(alive _x && _x != player) then
{
switch (side _x) do
{
case west: {_type = "Cop"};
case civilian: {_type = "Civ"};
case independent:{_type = "Med"};
....
Alles anzeigen
Wenn ihr das SQL Smartphone habt:
core\pmenu\smartphone.sqf - Fügt nach
Code
private["_display","_units","_type","_data","_rowData","_msg"];
_type = [_this,0,0] call BIS_fnc_param;
_data = [_this,1,0,["",[],0]] call BIS_fnc_param;
Folgendes ein:
Code
if(playergetVariable["restrained",false] || player getVariable ["surrender", false]) exitWith {hint "Du bist gefesselt!";};
Sollte Ungefähr so Aussehen:
Code
...
private["_display","_units","_type","_data","_rowData","_msg"];
_type = [_this,0,0] call BIS_fnc_param;
_data = [_this,1,0,["",[],0]] call BIS_fnc_param;
if(player getVariable["restrained",false] || player getVariable ["surrender", false]) exitWith {hint "Du bist gefesselt!";};
disableSerialization;
waitUntil {!isNull findDisplay 88888};
_display = findDisplay 88888;
_cPlayerList = _display displayCtrl 88881;
_cMessageList = _display displayCtrl 88882;
_cMessageHeader = _display displayCtrl 88886;
_cMessageHeader ctrlSetText format["Von: Nachricht:"];
ctrlEnable[887892,false];
...
Alles anzeigen
Viel spaß!
ApocalypseCookie cookie