Jump to content

Search the Community

Showing results for tags 'cop'.



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


CPU


Memory


Hard Drive


Graphic Card


PSU


Case


Monitor


Description - Other Accessories

Found 13 results

  1. Corey

    Advanced Handcuff's and key's

    Advanced Handcuff's & Key's Hello everyone, this is my first time making a script and releasing it to the public Make it so cops need to buy handcuffs and keys from the store to be able to restrain and un restrain players , Just a easy thing to add what can bring alot of rp. Also this took me around 10 minutes to make and there might be a better way but i'm still a noob so no hate please, And if i missed something or done something wrong please comment it below and i will update it Icons will be provided if needed (there not the best:P *Change Log* - Fixed a error with Config_Vitems -Added Icons ------------------Step 1----------------------- Head over to your fn_restrainAction.sqf Under if (player isEqualTo _unit) exitWith {}; Add: if(!([false,"handcuff",1] call life_fnc_handleInv)) exitWith { hint "You dont have Handcuffs"; }; [true,"handcuff",1] call life_fnc_handleInv; //Remove this if you don't want it to give the handcuffs back after restraining. (I added it because IRL you would get the cuffs back after taking them off....) --------------------------Step 2----------------------------- Head over to your fn_unrestrain.sqf Under : _unit = param [0,objNull,[objNull]]; Add : if(!([false,"keys",1] call life_fnc_handleInv)) exitWith { hint "You dont have Handcuff key's"; }; [true,"keys",1] call life_fnc_handleInv; // Remove if you want the keys a one time use. ----------------------------------Step 3---------------------------------- Head over to your Config_Vitems.hpp And under class goldbar add class handcuffs { variable = "handcuffs"; displayName = "STR_Item_lol"; weight = 1; buyPrice = 25; sellPrice = -1; illegal = false; edible = -1; icon = "icons\cuffs.paa"; }; class keys { variable = "keys"; displayName = "STR_Item_Keys"; weight = 1; buyPrice = 25; sellPrice = -1; illegal = false; edible = -1; icon = "icons\icon_keys.paa"; }; Then find class cop and add : "handcuff","keys" ------------------------------Step 4------------------- Then head over to your stringtable and add </Key> <Key ID="STR_Item_lol"> //Lol because i was cba and in a rush lol , change it if you must <Original>Handcuff's</Original> <Czech>Handcuff's</Czech> </Key> <Key ID="STR_Item_key"> <Original>Handcuff Key's</Original> <Czech>Handcuff Key's</Czech> </Key> Icons if you don't have any : (Must add the icons to your icon folder) icon_keys.paa cuffs.paa
  2. Vihrms offers a wide range of BVI Payroll and HR services in UK & US Virgin Islands. Find the best Human Resource Management Systems for your company.

  3. Intro: Description: Tutorial: Closing:
  4. 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; ===
  5. Marlish Brando✅ GO 1K YouTube

    doctor and police side channel

    Hello I open today a request for help on AltisLifeRPG because I am looking for a script or configuration to which the doctor and the police can this contact in case of emergency, thank you very much .
  6. Hello, i have made NATO Forces on my arma 3 life server they have special roles such as UAV Operator and Field Medic i need the UAV Operator slots to have a special shop but i have no idea how to do this or if its even possible and if not how would i make them spawn with the certain loadout bear in mind its not cop RANKS its SLOTS Thanks In Advance -Brandon
  7. DZG™ | DubStepMad

    [Tutorial] Checkpoint Alarm *Updated*

    Checkpoint Alarm Hello everyone, this is my first time making a script and releasing it to the public. This tutorial will help you set up a working checkpoint alarm that will use a sign and four speakers. All sound files will be provided. If you use this, I request that you do not remove my name but add your name under if edited *Change Log* Works server sided now. - Date unknown Fix for 4.4+. - 07/03/2017 Spam prevention. - 08/03/2017 Limited to a specific rank (read script comments) - Re-working 1. Head into the mission file and go into the directory 'core/cop'. Now create 2 new .sqf files. 1 called 'fn_checkpointLockdown'. Paste code below into the file. /* File: fn_checkpointLockdown.sqf Author: DubStepMad Made for: www.ritalitygaming.com Description: Engage checkpoint lockdown! */ sleep 4; if (Checkpoint2 getVariable "spam_protection") exitwith{}; /*stops the sound from being spammed*/ Checkpoint2 setVariable ["spam_protection", true, true]; /*needs to be after the check otherwise this would not work*/ Checkpoint1 setVariable ["checkpoint_alarm", true, true]; if (playerSide isEqualTo west) then { hint parseText format["<t size='2' color='#FF0000'>Checkpoint Zulu is under Attack!!</t>"] }; /*will only hint to the west fraction (Cops)*/ while {Checkpoint1 getVariable "checkpoint_alarm"} do { [Checkpoint1 say3D "checkpointalarm",5000]; [Checkpoint2 say3D "checkpointalarm",5000]; [Checkpoint3 say3D "checkpointalarm",5000]; [Checkpoint4 say3D "checkpointalarm",5000]; [Checkpoint5 say3D "checkpointalarm",5000]; sleep 20; [Checkpoint1 say3D "AirRaidSirenAlert",5000]; [Checkpoint2 say3D "AirRaidSirenAlert",5000]; [Checkpoint3 say3D "AirRaidSirenAlert",5000]; [Checkpoint4 say3D "AirRaidSirenAlert",5000]; [Checkpoint5 say3D "AirRaidSirenAlert",5000]; }; 2. Create another file called 'fn_checkpointLockdownStop'. Paste code below into the file. /* File: fn_checkpointLockdownStop.sqf Author: DubStepMad Made for: www.ritalitygaming.com Description: Disengage checkpoint lockdown! */ if (Checkpoint1 getVariable "checkpoint_alarm") exitWith { sleep 4; Checkpoint1 setVariable ["checkpoint_alarm", false, true]; Checkpoint2 setVariable ["spam_protection", false, true]; /*Allows the checkpoint alarm to be used again*/ if (playerSide isEqualTo west) then {hint parseText format["<t size='2' color='#22e600'>Checkpoint Zulu alarm has been turned off!</t>"]}; }; 3. Now go into your chosen editor and place down 4 speakers giving each one a separate variable name. Checkpoint1 Checkpoint2 Checkpoint3 Checkpoint4 If you wish to add more checkpoints then edit the 'fn_checkpointLockdown.sqf' to your needs. 4. Now place down an object that you wish a player to interact with, give the object the variable name 'cp_alarm_sign' and place the following code in the 'Init' of the object. if !(playerSide isEqualTo west) exitWith {}; this addAction ["Sound Alarm", "[] remoteExec ['life_fnc_checkpointLockdown', 0]"]; this addAction ["Stop Alarm", "[] remoteExec ['life_fnc_checkpointLockdownStop', 0]"]; 5. Now find your Functions.hpp, open it and locate 'class Cop', at the end of the code insert the following. class checkpointLockdown {}; class checkpointLockdownStop {}; Should look like this below. 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 checkpointLockdown {}; class checkpointLockdownStop {}; }; 6. Now locate your description.ext and insert the following code under the 'class CfgSounds'. class checkpointalarm { name = "checkpointalarm"; sound[] = {"sounds\checkpointalarm.ogg", 1.0, 1}; titles[] = {}; }; class AirRaidSirenAlert { name = "AirRaidSirenAlert"; sound[] = {"sounds\AirRaidSirenAlert.ogg",1.0,1}; titles[] = {}; }; 7. This is for 4.4+ only, otherwise skip this (If you are using battleye then it will have to be configured to allow RemoteExec calls). Add these to your CfgRemoteExec : F(life_fnc_checkpointlockdown,CLIENT) F(life_fnc_checkpointLockdownStop,CLIENT) 8. Download the provided .ogg sound files and move them to your 'sounds' folder located in your root directory. You are now all done! AirRaidSirenAlert.ogg checkpointalarm.ogg
  8. I am trying to mount a server only when the player enters it can enter from cop wanted to limit it, could someone help me?
  9. I been looking for so long for textures for my server for the police UK version If you have some please reply I also looking for civillian stuff It be nice if you could show me some?
  10. person2611

    Police or Medic Rumbler Siren HQ

    I've uploaded a high quality siren to replace the current version that is included in the Altis Life files, you can edit the siren to your needs there's only a few versions of the different siren modes but you can always chop edit etc. I've also added the mp3 of all the sirens together, just remember to change the timing to match your edit (for the newbies) in your respective files otherwise it will over lap and sound really crappy. Anyway enjoy. Link: https://www.dropbox.com/s/33ub0h7ssal3oth/Rumbler.zip?dl=0
  11. So I am editing the cop rader to show different colors for different speeds. This is the default: if (_speed > 110) then { _info = format["<t color='#5A80EB'><t size='1.5'><t align='center'>Radar<br/><t color='#FF0000'><t align='center'><t size='1'>Speed %1 km/h", _speed]; } else { _info = format["<t color='#5A80EB'><t size='1.5'><t align='center'>Radar<br/><t color='#33CC33'><t align='center'><t size='1'>Speed %1 km/h", _speed]; }; I tried this: if (_speed < 51) then { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#33cc33'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; } else if (_speed > 51 && _speed < 80) then { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#ff9933'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; } else { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#ff0000'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; }; And this: if (_speed < 51) then { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#33cc33'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; } else if (_speed < 80) then { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#ff9933'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; } else { _info = format["<t size='1.5'><t align='center'><t color='#0000ff'>C<t color='#ffffff'>O<t color='#ff3300'>P<t color='#5A80EB'>Radar<br/><t color='#ff0000'><t align='center'><t size='1'>Speed: %1 km/h", _speed]; }; But they dont work, does anyone know what I am missing? What does "then" do in the if statement?
  12. I added a police car skin to the server. But there is a problem. i can see the skin. But can not see other people except me. what should I do?
×