Guten Tag,
heute habe ich leider ein nerviges Problem. Ich habe mal den [Tutorial] arma3 ausweiß script ausprobiert. Leider habe ich jetzt schon mehr ausprobiert an Fehlerbehebungen und hab es leider nicht hinbekommen.
P.S Es könnte sein das ich den größten Leichtsinnsfehler drinnen habe und hoffe das ihr mir das dann nicht böse nimmt
Hier sind die Dateien:
fn_Lizenzsehen:
Spoiler anzeigen
if(isServer)exitWith{};
private["_msg"];
_msg = _this select 1;
hintSilent parseText _msg;
fn_Lizenzzeigen:
Spoiler anzeigen
//Author: PierreAmyf
if(isServer)exitWith{};
private["_ziel", "_rang", "_marke", "_org", "_message"];
if(vehicle player != player )exitWith{};
_ziel = cursorTarget;
if(isNull _ziel) then {_ziel = player;};
if(!(_ziel isKindOf "Man")) then {_ziel = player;};
if(!(alive _ziel)) then {_ziel = player;};
switch(playerSide)do{
case west:{
switch (call life_coplevel) do{
case 1: { _rang = "PoliceRank1"; };
case 2: { _rang = "PoliceRank2"; };
case 3: { _rang = "PoliceRank3"; };
case 4: { _rang = "PoliceRank4"; };
case 5: { _rang = "PoliceRank5"; };
case 6: { _rang = "FederalPoliceRank1"; };
case 7: { _rang = "FederalPoliceRank2"; };
case 8: { _rang = "FederalPoliceRank3"; };
case 9: { _rang = "FederalPoliceRank4"; };
case 10: { _rang = "FederalPoliceRank5"; };
case 11: { _rang = "FBIPoliceRank1"; };
case 12: { _rang = "FBIPoliceRank2"; };
case 13: { _rang = "FBIPoliceRank3"; };
case 14: { _rang = "FBIPoliceRank4"; };
case 15: { _rang = "FBIPoliceRank5"; };
default { _rank = "Error";};
};
_marke = "marke_cop";
_org = "Police Tanoa";
};
case independent:{
switch (call life_mediclevel) do{
case 1: { _rang = "MedicRank1"; };
case 2: { _rang = "MedicRank2"; };
case 3: { _rang = "MedicRank3"; };
case 4: { _rang = "MedicRank4"; };
case 5: { _rang = "MedicRank5"; };
default { _rank = "Error";};
};
_marke = "marke_ziv";
_org = "Republik Tanoa";
};
case civilian:{
if(playerSide == civilian)then{
_rang = "Zivilist";
_marke = "marke_ziv";
_org = "Republik Tanoa";
};
};
_message = format["<img size='10' color='#FFFFFF' image='icons\%1.paa'/><br/><br/><t size='2.5'>%2</t><br/><t size='1.8'>%3</t><br/><t size='1'>%4</t>",_marke, name player, _rang, _org];
[[player, _message],"life_fnc_Lizenzsehen",_ziel,false] spawn life_fnc_MP;
fn_setupActions
Spoiler anzeigen
/*
File: fn_setupActions.sqf
Author:
Description:
Master addAction file handler for all client-based actions.
*/
switch (playerSide) do {
case civilian: {
//Drop fishing net
life_actions = [player addAction[localize "STR_pAct_DropFishingNet",life_fnc_dropFishingNet,"",0,false,false,"",'
(surfaceisWater (getPos vehicle player)) && (vehicle player isKindOf "Ship") && life_carryWeight < life_maxWeight && speed (vehicle player) < 2 && speed (vehicle player) > -1 && !life_net_dropped ']];
//Rob person
life_actions = life_actions + [player addAction[localize "STR_pAct_RobPerson",life_fnc_robAction,"",0,false,false,"",'
!isNull cursorObject && player distance cursorObject < 3.5 && isPlayer cursorObject && animationState cursorObject == "Incapacitated" && !(cursorObject getVariable ["robbed",false]) ']];
};
};
switch (playerSide) do{
case civilian:
{
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
};
case west:
{
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
};
case independent:
{
//Ausweis
life_actions = life_actions + [player addAction["Ausweis zeigen",life_fnc_Lizenzzeigen,"",1,false,true,"",'!isNull cursorTarget && cursorTarget isKindOf "Man"']];
};
};
functions.hpp
Spoiler anzeigen
class Socket_Reciever {
tag = "SOCK";
class SQL_Socket {
file = "core\session";
class dataQuery {};
class insertPlayerInfo {};
class requestReceived {};
class syncData {};
class updatePartial {};
class updateRequest {};
};
};
class Ausweis
{
file = "scripts\Ausweis";
class Lizenzsehen {};
class Lizenzzeigen {};
};
class Life_Client_Core {
tag = "life";
class Master_Directory {
file = "core";
class initCiv {};
class initCop {};
class initMedic {};
class setupActions {};
class setupEVH {};
class survival {};
class welcomeNotification {};
};
class Actions {
file = "core\actions";
class arrestAction {};
class buyLicense {};
class captureHideout {};
class catchFish {};
class dpFinish {};
class dropFishingNet {};
class escortAction {};
class gather {};
class getDPMission {};
class gutAnimal {};
class healHospital {};
class impoundAction {};
class mine {};
class newsBroadcast {};
class packupSpikes {};
class pickupItem {};
class pickupMoney {};
class postBail {};
class processAction {};
class pulloutAction {};
class putInCar {};
class removeContainer {};
class repairTruck {};
class restrainAction {};
class robAction {};
class searchAction {};
class searchVehAction {};
class seizePlayerAction {};
class serviceChopper {};
class stopEscorting {};
class storeVehicle {};
class surrender {};
class ticketAction {};
class unrestrain {};
class barrier {};
class robShops {}; //Rob Gas Station & Shops Script
class lockCellAction {};
class lockCellAction2 {};
};
class Admin {
file = "core\admin";
class adminCompensate {};
class adminDebugCon {};
class adminFreeze {};
class admingetID {};
class adminGodMode {};
class adminid {};
class admininfo {};
class adminMarkers {};
class adminMenu {};
class adminQuery {};
class adminSpectate {};
class adminTeleport {};
class adminTpHere {};
};
class Civilian {
file = "core\civilian";
class civLoadout {};
class civMarkers {};
class demoChargeTimer {};
class freezePlayer {};
class jail {};
class jailMe {};
class knockedOut {};
class knockoutAction {};
class removeLicenses {};
class robPerson {};
class robReceive {};
class tazed {};
};
class Config {
file = "core\config";
class houseConfig {};
class itemWeight {};
class vehicleAnimate {};
class vehicleWeightCfg {};
};
class Cop {
file = "core\cop";
class bountyReceive {};
class containerInvSearch {};
class copInteractionMenu {};
class copLights {};
class copLoadout {};
class copMarkers {};
class copSearch {};
class copSiren {};
class doorAnimate {};
class fedCamDisplay {};
class licenseCheck {};
class licensesRead {};
class questionDealer {};
class radar {};
class repairDoor {};
class restrain {};
class searchClient {};
class seizeClient {};
class sirenLights {};
class spikeStripEffect {};
class ticketGive {};
class ticketPaid {};
class ticketPay {};
class ticketPrompt {};
class vehInvSearch {};
class wantedGrab {};
};
class Dialog_Controls {
file = "dialog\function";
class bankDeposit {};
class bankTransfer {};
class bankWithdraw {};
class displayHandler {};
class gangDeposit {};
class gangWithdraw {};
class garageLBChange {};
class impoundMenu {};
class progressBar {};
class safeFix {};
class safeInventory {};
class safeOpen {};
class safeTake {};
class sellGarage {};
class setMapPosition {};
class spawnConfirm {};
class spawnMenu {};
class spawnPointCfg {};
class spawnPointSelected {};
class unimpound {};
class vehicleGarage {};
class wireTransfer {};
};
class Functions {
file = "core\functions";
class AAN {};
class accType {};
class actionKeyHandler {};
class animSync {};
class calWeightDiff {};
class clearVehicleAmmo {};
class dropItems {};
class escInterupt {};
class fetchCfgDetails {};
class fetchDeadGear {};
class fetchVehInfo {};
class isDamaged {};
class giveDiff {};
class handleDamage {};
class handleInv {};
class handleItem {};
class hideObj {};
class hudSetup {};
class hudUpdate {};
class inventoryClosed {};
class inventoryOpened {};
class isUIDActive {};
class keyHandler {};
class loadDeadGear {};
class loadGear {};
class nearATM {};
class nearestDoor {};
class nearUnits {};
class numberText {};
class onFired {};
class onTakeItem {};
class playerSkins {};
class playerTags {};
class postNewsBroadcast {};
class pullOutVeh {};
class pushObject {};
class receiveItem {};
class receiveMoney {};
class revealObjects {};
class saveGear {};
class searchPosEmpty {};
class simDisable {};
class stripDownPlayer {};
class tazeSound {};
class teleport {};
class whereAmI {};
};
class Gangs {
file = "core\gangs";
class createGang {};
class gangCreated {};
class gangDisband {};
class gangDisbanded {};
class gangInvite {};
class gangInvitePlayer {};
class gangKick {};
class gangLeave {};
class gangMenu {};
class gangNewLeader {};
class gangUpgrade {};
class initGang {};
};
class Housing {
file = "core\housing";
class buyHouse {};
class buyHouseGarage {};
class containerMenu {};
class copBreakDoor {};
class copHouseOwner {};
class garageRefund {};
class getBuildingPositions {};
class houseMenu {};
class initHouses {};
class lightHouse {};
class lightHouseAction {};
class lockHouse {};
class lockupHouse {};
class placeContainer {};
class PlayerInBuilding {};
class raidHouse {};
class sellHouse {};
class sellHouseGarage {};
};
class Items {
file = "core\items";
class blastingCharge {};
class boltcutter {};
class defuseKit {};
class flashbang {};
class jerrycanRefuel {};
class jerryRefuel {};
class lockpick {};
class placestorage {};
class spikeStrip {};
class storageBox {};
};
class Medical_System {
file = "core\medical";
class deathScreen {};
class medicLights {};
class medicLoadout {};
class medicMarkers {};
class medicRequest {};
class medicSiren {};
class medicSirenLights {};
class onPlayerKilled {};
class onPlayerRespawn {};
class requestMedic {};
class respawned {};
class revived {};
class revivePlayer {};
};
class Network {
file = "core\functions\network";
class broadcast {};
class corpse {};
class jumpFnc {};
class say3D {};
class setFuel {};
class soundDevice {};
};
class Player_Menu {
file = "core\pmenu";
class cellphone {};
class giveItem {};
class giveMoney {};
class keyDrop {};
class keyGive {};
class keyMenu {};
class p_openMenu {};
class p_updateMenu {};
class pardon {};
class removeItem {};
class s_onChar {};
class s_onCheckedChange {};
class s_onSliderChange {};
class settingsMenu {};
class updateViewDistance {};
class useItem {};
class wantedAddP {};
class wantedInfo {};
class wantedList {};
class wantedMenu {};
};
class Shops {
file = "core\shops";
class atmMenu {};
class buyClothes {};
class changeClothes {};
class chopShopMenu {};
class chopShopSelection {};
class chopShopSell {};
class clothingFilter {};
class clothingMenu {};
class fuelLBchange {};
class fuelStatOpen {};
class levelCheck {};
class vehicleShop3DPreview {};
class vehicleShopBuy {};
class vehicleShopEnd3DPreview {};
class vehicleShopInit3DPreview {};
class vehicleShopLBChange {};
class vehicleShopMenu {};
class virt_buy {};
class virt_menu {};
class virt_sell {};
class virt_update {};
class weaponShopAccs {};
class weaponShopBuySell {};
class weaponShopFilter {};
class weaponShopMags {};
class weaponShopMenu {};
class weaponShopSelection {};
};
class Vehicle {
file = "core\vehicle";
class addVehicle2Chain {};
class colorVehicle {};
class deviceMine {};
class FuelRefuelcar {};
class fuelStore {};
class fuelSupply {};
class lockVehicle {};
class openInventory {};
class vehiclecolor3DRefresh {};
class vehicleOwners {};
class vehicleWeight {};
class vehInventory {};
class vehStoreItem {};
class vehTakeItem {};
class vInteractionMenu {};
};
};
RemoteExec
Spoiler anzeigen
#define F(NAME,TARGET) class NAME { \
allowedTargets = TARGET; \
};
#define ANYONE 0
#define CLIENT 1
#define SERVER 2
#define HC HC_Life
class CfgRemoteExec {
class Functions {
mode = 1;
jip = 0;
/* Client only functions */
F(life_fnc_AAN,CLIENT)
F(life_fnc_addVehicle2Chain,CLIENT)
F(life_fnc_adminID,CLIENT)
F(life_fnc_adminInfo,CLIENT)
F(life_fnc_bountyReceive,CLIENT)
F(life_fnc_copLights,CLIENT)
F(life_fnc_copSearch,CLIENT)
F(life_fnc_copSiren,CLIENT)
F(life_fnc_freezePlayer,CLIENT)
F(life_fnc_gangCreated,CLIENT)
F(life_fnc_gangDisbanded,CLIENT)
F(life_fnc_gangInvite,CLIENT)
F(life_fnc_garageRefund,CLIENT)
F(life_fnc_giveDiff,CLIENT)
F(life_fnc_hideObj,CLIENT)
F(life_fnc_impoundMenu,CLIENT)
F(life_fnc_jail,CLIENT)
F(life_fnc_jailMe,CLIENT)
F(life_fnc_knockedOut,CLIENT)
F(life_fnc_licenseCheck,CLIENT)
F(life_fnc_licensesRead,CLIENT)
F(life_fnc_lightHouse,CLIENT)
F(life_fnc_mediclights,CLIENT)
F(life_fnc_medicRequest,CLIENT)
F(life_fnc_medicSiren,CLIENT)
F(life_fnc_moveIn,CLIENT)
F(life_fnc_pickupItem,CLIENT)
F(life_fnc_pickupMoney,CLIENT)
F(life_fnc_receiveItem,CLIENT)
F(life_fnc_receiveMoney,CLIENT)
F(life_fnc_removeLicenses,CLIENT)
F(life_fnc_restrain,CLIENT)
F(life_fnc_revived,CLIENT)
F(life_fnc_robPerson,CLIENT)
F(life_fnc_robReceive,CLIENT)
F(life_fnc_searchClient,CLIENT)
F(life_fnc_seizeClient,CLIENT)
F(life_fnc_soundDevice,CLIENT)
F(life_fnc_spikeStripEffect,CLIENT)
F(life_fnc_tazeSound,CLIENT)
F(life_fnc_ticketPaid,CLIENT)
F(life_fnc_ticketPrompt,CLIENT)
F(life_fnc_vehicleAnimate,CLIENT)
F(life_fnc_wantedList,CLIENT)
F(life_fnc_wireTransfer,CLIENT)
F(SOCK_fnc_dataQuery,CLIENT)
F(SOCK_fnc_insertPlayerInfo,CLIENT)
F(SOCK_fnc_requestReceived,CLIENT)
F(SOCK_fnc_updateRequest,CLIENT)
F(TON_fnc_clientGangKick,CLIENT)
F(TON_fnc_clientGangLeader,CLIENT)
F(TON_fnc_clientGangLeft,CLIENT)
F(TON_fnc_clientGetKey,CLIENT)
F(TON_fnc_clientMessage,CLIENT)
F(TON_fnc_player_query,CLIENT)
F(life_fnc_lizenzzeigen,CLIENT)
/* Server only functions */
F(BIS_fnc_execVM,SERVER)
F(DB_fnc_insertRequest,SERVER)
F(DB_fnc_queryRequest,SERVER)
F(DB_fnc_updatePartial,SERVER)
F(DB_fnc_updateRequest,SERVER)
F(life_fnc_jailSys,SERVER)
F(life_fnc_wantedAdd,SERVER)
F(life_fnc_wantedBounty,SERVER)
F(life_fnc_wantedCrimes,SERVER)
F(life_fnc_wantedFetch,SERVER)
F(life_fnc_wantedProfUpdate,SERVER)
F(life_fnc_wantedRemove,SERVER)
F(SPY_fnc_cookieJar,SERVER)
F(SPY_fnc_observe,SERVER)
F(TON_fnc_addContainer,SERVER)
F(TON_fnc_addHouse,SERVER)
F(TON_fnc_chopShopSell,SERVER)
F(TON_fnc_cleanupRequest,SERVER)
F(TON_fnc_deleteDBContainer,SERVER)
F(TON_fnc_getID,SERVER)
F(TON_fnc_getVehicles,SERVER)
F(TON_fnc_insertGang,SERVER)
F(TON_fnc_keyManagement,SERVER)
F(TON_fnc_manageSC,SERVER)
F(TON_fnc_pickupAction,SERVER)
F(TON_fnc_removeGang,SERVER)
F(TON_fnc_sellHouse,SERVER)
F(TON_fnc_sellHouseContainer,SERVER)
F(TON_fnc_setObjVar,SERVER)
F(TON_fnc_spawnVehicle,SERVER)
F(TON_fnc_spikeStrip,SERVER)
F(TON_fnc_updateGang,SERVER)
F(TON_fnc_updateHouseContainers,SERVER)
F(TON_fnc_updateHouseTrunk,SERVER)
F(TON_fnc_vehicleCreate,SERVER)
F(TON_fnc_vehicleDelete,SERVER)
F(TON_fnc_vehicleStore,SERVER)
F(TON_fnc_vehicleUpdate,SERVER)
F(TON_fnc_handleBlastingCharge,SERVER)
F(TON_fnc_houseGarage,SERVER)
/* HeadlessClient only functions */
F(HC_fnc_addContainer,HC)
F(HC_fnc_addHouse,HC)
F(HC_fnc_chopShopSell,HC)
F(HC_fnc_deleteDBContainer,HC)
F(HC_fnc_getVehicles,HC)
F(HC_fnc_houseGarage,HC)
F(HC_fnc_insertGang,HC)
F(HC_fnc_insertRequest,HC)
F(HC_fnc_insertVehicle,HC)
F(HC_fnc_jailSys,HC)
F(HC_fnc_keyManagement,HC)
F(HC_fnc_queryRequest,HC)
F(HC_fnc_removeGang,HC)
F(HC_fnc_sellHouse,HC)
F(HC_fnc_sellHouseContainer,HC)
F(HC_fnc_spawnVehicle,HC)
F(HC_fnc_spikeStrip,HC)
F(HC_fnc_updateGang,HC)
F(HC_fnc_updateHouseContainers,HC)
F(HC_fnc_updateHouseTrunk,HC)
F(HC_fnc_updatePartial,HC)
F(HC_fnc_updateRequest,HC)
F(HC_fnc_vehicleCreate,HC)
F(HC_fnc_vehicleDelete,HC)
F(HC_fnc_vehicleStore,HC)
F(HC_fnc_vehicleUpdate,HC)
F(HC_fnc_wantedAdd,HC)
F(HC_fnc_wantedBounty,HC)
F(HC_fnc_wantedCrimes,HC)
F(HC_fnc_wantedFetch,HC)
F(HC_fnc_wantedProfUpdate,HC)
F(HC_fnc_wantedRemove,HC)
/* Functions for everyone */
F(BIS_fnc_effectKilledAirDestruction,ANYONE)
F(BIS_fnc_effectKilledSecondaries,ANYONE)
F(life_fnc_animSync,ANYONE)
F(life_fnc_broadcast,ANYONE)
F(life_fnc_colorVehicle,ANYONE)
F(life_fnc_corpse,ANYONE)
F(life_fnc_demoChargeTimer,ANYONE)
F(life_fnc_flashbang,ANYONE)
F(life_fnc_jumpFnc,ANYONE)
F(life_fnc_lockVehicle,ANYONE)
F(life_fnc_pulloutVeh,ANYONE)
F(life_fnc_say3D,ANYONE)
F(life_fnc_setFuel,ANYONE)
F(life_fnc_simDisable,ANYONE)
F(SPY_fnc_notifyAdmins,ANYONE)
};
class Commands {
mode = 1;
jip = 0;
F(addHandgunItem,ANYONE)
F(addMagazine,ANYONE)
F(addPrimaryWeaponItem,ANYONE)
F(addWeapon,ANYONE)
F(setFuel,ANYONE)
};
};
Danke für eure Hilfe!!!!!