Jump to content

Search the Community

Showing results for tags '4.4'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Altis Life RPG
    • Headquarters
    • Introductions
    • RULES
  • Altis Life RPG Community
    • General Discussion
    • Helper Recruitment
    • Altis Life Server Advertising
    • Discord (join us for discuss)
  • Tools and Administration
    • Altis Life RPG (official Framework)
    • Altis Life Wiki
    • Server Setup and Configuration
    • Database
    • Security
    • Maintenance
  • Altis Life Customization
    • Server & Scripting Help Desk
    • Releases & Download
    • Misc & Tools
  • Kool Kids Klub's Oof
  • Kool Kids Klub's Secret Spot

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 7 results

  1. This tutorial has been lost from the forums going down and I found how to do it on another Altis development forum to which I'm translating it for here. ================= Original Post By: Sergueiii ================= Tutorial on how to Separate Civilian and Police Cash & Bank Account *Remember to re-pack @life_server\addons\life_server folder after making these changes. ================= Step 1: Go to your life_server\Functions\MySQL\fn_insertRequest.sqf and modify this: _query = format ["INSERT INTO players (pid, name, cash, bankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear) VALUES('%1', '%2', '%3', '%4', '%5','""[]""','""[]""','""[]""','""[]""','""[]""','""[]""')", _uid, _name, _money, _bank, _alias ]; To: _query = format ["INSERT INTO players (pid, name, cash, bankacc, westcash, westbankacc, aliases, cop_licenses, med_licenses, civ_licenses, civ_gear, cop_gear, med_gear) VALUES('%1', '%2', '%3', '%4', '%5', '%6', '%7', '""[]""','""[]""','""[]""','""[]""','""[]""','""[]""')", _uid, _name, _money, _bank, _money, //added for westcash _bank, //added for westbankacc _alias ]; === Step 2: Go to your life_server\Functions\MySQL\fn_queryRequest.sqf and modify this: case west: {format ["SELECT pid, name, cash, bankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime FROM players WHERE pid='%1'",_uid];}; To: case west: {format ["SELECT pid, name, westcash, westbankacc, adminlevel, donorlevel, cop_licenses, coplevel, cop_gear, blacklist, cop_stats, playtime FROM players WHERE pid='%1'",_uid];}; === Step 3: Go to your life_server\Functions\MySQL\fn_updatePartial.sqf and modify this: case 1: { _value = [_this,2,0,[0]] call BIS_fnc_param; _value = [_value] call DB_fnc_numberSafe; _query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid]; }; To: case 1: { _value = [_this,2,0,[0]] call BIS_fnc_param; _value = [_value] call DB_fnc_numberSafe; switch (_side) do { case civilian: {_query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid];}; case west: {_query = format ["UPDATE players SET westbankacc='%1' WHERE pid='%2'",_value,_uid];}; case independent: {_query = format ["UPDATE players SET bankacc='%1' WHERE pid='%2'",_value,_uid];}; }; }; === Step 4: Go to your life_server\Functions\MySQL\fn_updatePartial.sqf and modify this: case 6: { _value1 = [_this,2,0,[0]] call BIS_fnc_param; _value2 = [_this,4,0,[0]] call BIS_fnc_param; _value1 = [_value1] call DB_fnc_numberSafe; _value2 = [_value2] call DB_fnc_numberSafe; _query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid]; }; To: case 6: { _value1 = [_this,2,0,[0]] call BIS_fnc_param; _value2 = [_this,4,0,[0]] call BIS_fnc_param; _value1 = [_value1] call DB_fnc_numberSafe; _value2 = [_value2] call DB_fnc_numberSafe; switch (_side) do { case civilian: {_query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; case west: {_query = format ["UPDATE players SET westcash='%1', westbankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; case independent: {_query = format ["UPDATE players SET cash='%1', bankacc='%2' WHERE pid='%3'",_value1,_value2,_uid];}; }; }; === Step 5: Go to your life_server\Functions\MySQL\fn_updateRequest.sqf and modify this: switch (_side) do { case west: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', cop_gear='%4', cop_licenses='%5', cop_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_gear,_licenses,_stats,_playtime_update,_uid];}; case civilian: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', civ_licenses='%4', civ_gear='%5', arrested='%6', civ_stats='%7', civ_alive='%8', civ_position='%9', playtime='%10' WHERE pid='%11'",_name,_cash,_bank,_licenses,_gear,[_this select 8] call DB_fnc_bool,_stats,[_alive] call DB_fnc_bool,_position,_playtime_update,_uid];}; case independent: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', med_licenses='%4', med_gear='%5', med_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_licenses,_gear,_stats,_playtime_update,_uid];}; }; To: switch (_side) do { case west: {_query = format ["UPDATE players SET name='%1', westcash='%2', westbankacc='%3', cop_gear='%4', cop_licenses='%5', cop_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_gear,_licenses,_stats,_playtime_update,_uid];}; case civilian: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', civ_licenses='%4', civ_gear='%5', arrested='%6', civ_stats='%7', civ_alive='%8', civ_position='%9', playtime='%10' WHERE pid='%11'",_name,_cash,_bank,_licenses,_gear,[_this select 8] call DB_fnc_bool,_stats,[_alive] call DB_fnc_bool,_position,_playtime_update,_uid];}; case independent: {_query = format ["UPDATE players SET name='%1', cash='%2', bankacc='%3', med_licenses='%4', med_gear='%5', med_stats='%6', playtime='%7' WHERE pid='%8'",_name,_cash,_bank,_licenses,_gear,_stats,_playtime_update,_uid];}; }; === Step 6: Go to your Altis_Life.Altis\core\fn_initCop.sqf and ADD this: if (life_westbankcount <= 1) then { BANK = 200000; // Change this value to change the starting money life_westbankcount = life_westbankcount + 1; }; RIGHT ABOVE: 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. === Step 7: Go to your Altis_Life.Altis\core\configuration.sqf and ADD this: life_westbankcount = 0; AT THE END OF: ***************************** ****** Backend Variables ***** ***************************** */ life_query_time = time; life_action_delay = time; life_trunk_vehicle = objNull; life_session_completed = false; life_garage_store = false; life_session_tries = 0; life_net_dropped = false; life_siren_active = false; life_clothing_filter = 0; life_clothing_uniform = -1; life_redgull_effect = time; life_is_processing = false; life_bail_paid = false; life_impound_inuse = false; life_action_inUse = false; life_spikestrip = ObjNull; life_knockout = false; life_interrupted = false; life_respawned = false; life_removeWanted = false; life_action_gathering = false; tawvd_addon_disable = true; life_god = false; life_frozen = false; life_save_gear = []; life_container_activeObj = ObjNull; life_disable_getIn = false; life_disable_getOut = false; life_admin_debug = false; life_preview_3D_vehicle_cam = objNull; life_preview_3D_vehicle_object = objNull; life_preview_light = objNull; life_pos_exist = false; life_pos_attach = []; life_civ_position = []; life_markers = false; === Step 7: Execute the following on your MySQL database for the players table: ALTER TABLE `players` ADD `westcash` int(100) NOT NULL DEFAULT '0' AFTER bankacc; ALTER TABLE `players` ADD `westbankacc` int(100) NOT NULL DEFAULT '0' AFTER westcash; ===
  2. Autor: Blackfisch How it looks like ingame: 1. Download the Folder form here: https://github.com/BlackFisch/AttachableLightbar Add the Fils in the right Folders !!! 2. Open your init.sqf and add: emergLight_vehicles = []; { emergLight_vehicles pushBack (configName _x); } forEach ("true" configClasses (missionConfigFile >> "emergLightVehicles")); 2. Go in your description.ext and search: #include "config\Config_Master.hpp" add direct under: #include "Config_EmergLights.hpp" 4. Open your CfgRemoteExec.hpp and add F(bf_fnc_lightsOn,ANYONE) 5. Now go in your Functions.hpp and add over class Life_Client_Core these: class blackfisch_Functions { tag = "bf"; class Scripts { file = "core\scripts"; class lights {}; class lightsOn {}; }; }; 6. Open your fn_keyHandler.sqf and search case 38 replace : case 38: { private _veh = vehicle player; if (_ctrlKey && {!_shift} && {!isNull objectParent player} && {(driver _veh) isEqualTo player} && {playerSide isEqualTo west}) then { call bf_fnc_lights; _handled = true; }; if (_shift && {!_ctrlKey} && {!isNull objectParent player} && {(driver _veh) isEqualTo player} && {playerSide isEqualTo west}) then { if (!isNull (_veh getVariable ["lightObj",objNull])) then { if (_veh getVariable ["lights",false]) then { _veh setVariable ["lights",false,true]; } else { _veh setVariable ["lights",true,true]; [_veh] remoteExec ["bf_fnc_lightsOn",0]; }; } else { if ((typeOf _veh) in ["C_Offroad_01_F","B_MRAP_01_F","C_SUV_01_F","C_Hatchback_01_sport_F","B_Heli_Light_01_F","B_Heli_Transport_01_F"]) then { if (!isNil {_veh getVariable "lights"}) then { if (playerSide isEqualTo west) then { [_veh] call life_fnc_sirenLights; } else { [_veh] call life_fnc_medicSirenLights; }; _handled = true; }; }; }; _handled = true; }; }; Finish !
  3. Hello ! My Safety Zone Script I have a safe zone script. But I want to add more to the script. A script that does not harm people with vehicles Therefore, Files in a file I would appreciate it if you could solve the problem by adding a script that does not know how to drive. I am Korean. Thank you for your patience. ---------------------------------------------------------------------------- /* File: safezone.sqf Edited by: Tyler - ALRPG Profile: http://goo.gl/VmgCB0 Description: Allows you to setup markers that execute the SafeZone script. Note: A lot of this is just C&P with different code. It's kinda simple to add / remove stuff */ #define CIV_ZONES [["safezone_1", 280]] #define PZ_MSG hintC "Shooting Inside Police HQ Is Not Allowed!" #define CIV_MSG hintC "You are In a Civilian Safezone! Stop Shooting or you can be banned or kicked!" if (isDedicated) exitWith {}; waitUntil {!isNull player}; switch (playerSide) do { case civilian: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count POLICE_ZONES > 0) then { deleteVehicle (_this select 6); titleText [PZ_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of Police HQ Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count CIV_ZONES > 0) then { deleteVehicle (_this select 6); titleText [CIV_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of A Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; }; case west: { player addEventHandler ["Fired", { if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count POLICE_ZONES > 0) then { deleteVehicle (_this select 6); titleText [PZ_MSG, "PLAIN", 3]; diag_log format ["%1 Shot Inside Of A Safezone At %2", profileName, time]; [0,format["%1 - Is Shooting Inside Of Police HQ Safezone!",profileName]] remoteExec ["life_fnc_broadcast",0]; }; }]; }; };
  4. Autor: Scarso327 Warning!: The message will come but j dont know how to deactivate the standard arma 3 death messages 1. Open your stringtable.xml and add: <Package name="NHS"> <Key ID="STR_NHS_Died"> <Original>%1 has died from there injuries.</Original> </Key> <Key ID="STR_NHS_Killed"> <Original>%1 has been heavily wounded by %2!</Original> </Key> <Key ID="STR_NHS_Suicide"> <Original>%1 has been heavily wounded!</Original> </Key> <Key ID="STR_NHS_PlayerRevived"> <Original>%1 has been revived!</Original> </Key> </Package> 2. In fn_onPlayerKilled.sqf search and replace: //Make the killer wanted if(!isNull _killer && {_killer != _unit} && {side _killer != west} && {alive _killer}) then { if(vehicle _killer isKindOf "LandVehicle") then { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; //Get rid of this if you don't want automatic vehicle license removal. if(!local _killer) then { [2] remoteExecCall ["life_fnc_removeLicenses",_killer]; }; } else { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; if(!local _killer) then { [3] remoteExecCall ["life_fnc_removeLicenses",_killer]; }; }; }; to //Make the killer wanted if(!isNull _killer && {_killer != _unit} && {side _killer != west} && {alive _killer}) then { if(vehicle _killer isKindOf "LandVehicle") then { if(life_HC_isActive) then { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["HC_fnc_wantedAdd",HC_Life]; } else { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187V"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; }; //Get rid of this if you don't want automatic vehicle license removal. if(!local _killer) then { [2] remoteExecCall ["life_fnc_removeLicenses",_killer]; }; } else { if(life_HC_isActive) then { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["HC_fnc_wantedAdd",HC_Life]; } else { [getPlayerUID _killer,_killer GVAR ["realname",name _killer],"187"] remoteExecCall ["life_fnc_wantedAdd",RSERV]; }; if(!local _killer) then { [3] remoteExecCall ["life_fnc_removeLicenses",_killer]; }; }; [0,"STR_NHS_Killed",true,[profileName,_killer GVAR ["realname",name _killer]]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; } else { if(side _killer == west && playerSide != west) then { [0,"STR_NHS_Killed",true,[profileName,_killer GVAR ["realname",name _killer]]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; } else { [0,"STR_NHS_Suicide",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; }; }; 3. Now go in your fn_respawned.sqf and search [] call SOCK_fnc_updateRequest; and add above: [0,"STR_NHS_Died",true,[profileName]] remoteExecCall ["life_fnc_broadcast",RCLIENT]; Image:
  5. Autor: Saturin78 Edit: AmaZiinG and Iam_Nico 1. Create a new SQF called fn_carC4.sqf: /* Author: Saturin78 Description: Mit dieser Datei werden Sprengladungen an Fahrzeuge gepackt und nach 4 Minuten gesprengt! Edited by Iam_Nico and AmaZiinG */ private["_vault","_handle","_carc4"]; _vault = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param; if(isNull _vault) exitWith {}; //Bad object if(!(_vault isKindOf "AllVehicles")) exitWith {hint "Du kannst den Fahrzeugsprengsatz hier nicht anbringen!"}; if(player distance _vault > 7) exitWith {hint "Du musst dich näher an das Fahrzeug stellen!"}; if(!([false,"carC4",1] call life_fnc_handleInv)) exitWith {}; //Error? closeDialog 0; life_action_inUse = true; player playMove "AinvPknlMstpSnonWnonDnon_medic_1"; sleep 4; life_action_inUse = false; if(player distance _vault > 7) exitWith {titleText["Du bist nicht in der Nähe eines Fahrzeugs!","PLAIN"];}; titleText["Du hast den Fahrzeugsprengsatz an diesem Fahrzeug angebracht.","PLAIN"]; sleep 10; _vault setVariable["chargeplaced",true,true]; titleText ["Sprengung in 4 Minuten, bitte abstand halten!","PLAIN"]; sleep 60; titleText ["Sprengung in 3 Minuten, bitte abstand halten!","PLAIN"]; sleep 60; titleText ["Sprengung in 2 Minuten, bitte abstand halten!","PLAIN"]; sleep 60; titleText ["Sprengung in 1 Minute, bitte abstand halten!","PLAIN"]; sleep 30; titleText ["Sprengung in 30 Sekunden, bitte abstand halten!","PLAIN"]; sleep 20; [player,"carC4"] call life_fnc_globalSound; titleText ["Sprengung in 10 Sekunden, bitte abstand halten!","PLAIN"]; sleep 10; _carc4 = "Bo_Mk82" createVehicle [0,0,9999]; _carc4 setPos (getPos _vault); _carc4 setVelocity [100,0,0]; titleText ["Fahrzeug gesprengt!","PLAIN"]; [0,format["%1 hat ein Fahrzeug in die Luft gesprengt.",name player]] remoteExec ["life_fnc_broadcast",0]; 2. Now search the fn_useItem.sqf copie this insert: case (_item isEqualTo "carC4"): { [cursorTarget] spawn life_fnc_carC4; }; 3. Go in the Config_vItems.hpp and add this: class carC4 { variable = "carC4"; displayName = "STR_Item_carC4"; weight = 1; buyPrice = 200000; sellPrice = 1000; illegal = true; edible = -1; icon = ""; }; if there problems is it writes under the post
  6. [TUTORIAL] Fix "Error Loading Mission" I have noticed that since the forums have been revived no one has posted a fix for the "error loading mission file" after building in the Eden editor, which is a very common error. So here is a quick simple fix. 1.) Open your Altis Life map in the Eden editor. 2.) At the top left of your screen, select "entities", this will bring up all the entities in the game, from npc's, markers, cars, buildings etc. 3.) In the search bar, search for "car1_1". There should be two identical duplicates. 4.) Delete one of them, and save. DONE! Now you can edit in the 3D editor as much as you want.
  7. Hello, everyone! Thanks for viewing and taking your time to look at this thread. I am currently looking for some developers/graphic designers, for my server if you are wishing to become a staff member. Please contact me via Direct Message (private message). Our teamspeak server is; altislife.streamlinegames.com
×
×
  • Create New...