Jump to content

Recommended Posts

 

The majority of the code is from the ArmA wiki that can be useful to Altis life admins:

Execute all code in the debug menu.

Please fell free to post any in the comments below.

-----------------------------------------------------------------------------------------------------------------------------------

. Adds 100000 to in game cash

life_atmcash = 100000;

Adds Godmode to player

player allowDamage false;

. Destroys object in front of cross hair

cursortarget setdamage 1

.Change Vehicle texture in game with Cursor Target:

cursorTarget setObjectTextureGlobal [0, "\texture_namehere.jpg"]

Removes weight

life_carryWeight = 0

Repairs object in front of cross hair

cursorTarget setDamage 0

 Remove driver form vehicle

moveOut driver vehicleplayer

. Revives person in front of cross hair

[[name player],"life_fnc_revived",cursorTarget,FALSE] spawn life_fnc_MP;

. Impounds object in front of cross hair

[cursorTarget] spawn life_fnc_impoundAction;

. Kill yourself

player setdamage 1

. Disables fatigue

player enableFatigue false;

. Full thirst

life_thirst = 100;

. Full hunger

life_hunger = 100;

. Spawns weed in inventory 

[true,"cannabis",1] call life_fnc_handleInv;

. Teleport to where you click on the map

onmapsingleclick "vehicle player setpos _pos"

 

 Disables Fatigue

player enableFatigue false

 

. Skips Time by 5 hours

skipTime 5; 

 

.Removes all weapons

removeAllWeapons player;

 

. Show "entertexthere" at the top right on everyone's screen "if ran globally"

hint "entertexthere";


. Heals Players

player setDamage 0;

 

. Shows text in middle of screen for whole server

titleText ["Show this text", "PLAIN"];

 

. Deletes any vehicle you look at

deleteVehicle cursorTarget

 

. repairs any vehicle fully

_timeForRepair = 0; _vehicle = vehicle player; hint format ["Please wait %1 seconds for repair/flip",_timeForRepair]; sleep _timeForRepair; if (_vehicle == player) then {_vehicle = cursorTarget;}; _vehicle setfuel 1; _vehicle setdamage 0; _vehicle = nil; vehicle = this select 0; _vehicle setvectorup [0,0,1];

 

. sets players ammo to 1 (change value for different amount)

player setAmmo [currentWeapon player, 1];

 

Attaches GBU's to whoever

_expl1 = "Bo_GBU12_LGB" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Pelvis"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; _expl2 = "Bo_GBU12_LGB" createVehicle position player; _expl2 attachTo [player, [0, 0.15, 0.15], "Pelvis"]; _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ]; _expl3 = "Bo_GBU12_LGB" createVehicle position player; _expl3 attachTo [player, [0.1, 0.1, 0.15], "Pelvis"]; _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ];

 

 Gives you some money

life_atmcash = life_atmcash + 999999;

 

 Attaches smoke to players

_expl1 = "G_40mm_SmokeBlue" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Pelvis"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; _expl2 = "G_40mm_SmokeOrange" createVehicle position player; _expl2 attachTo [player, [0, 0.15, 0.15], "Pelvis"]; _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ]; _expl3 = "G_40mm_SmokePurple" createVehicle position player; _expl3 attachTo [player, [0.1, 0.1, 0.15], "Pelvis"]; _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ];

 

 removes fog

0 setFog 0; forceWeatherChange; 999999 setFog 0;

 

 Removes fuel from player vehicle

vehicle player setfuel 0;

 adds a weapon to player
 

player addweaponglobal "arifle_MX_GL_F";

. Gives god mode to whoever
 

player allowdamage false;

. Blames player(edit ASTRAL with player in game.) 3 astrals ---------------- NO LONGER WORKING

if(name player == "Astral")then{ } else { [] spawn {sleep 5; _BRG_popuptext = "<t size='1' color='#ff1111'>" + "WARNING Astral using SSPCM to cheat" + "</t>"; _BRG_popuptext2 = "<t size='1' color='#ff1111'>" + "Type in chat '#kick Astral' if want remove him in the game" + "</t>"; _BRG_value1 =[_BRG_popuptext,0.01,(safeZoneY + 0.05),0.5,0,0,90]spawn bis_fnc_dynamicText; playsound "Hint"; sleep 2; _BRG_value1 =[_BRG_popuptext,0.01,(safeZoneY + 0.05),0.5,0,0,90]spawn bis_fnc_dynamicText; sleep 2; _BRG_value1 =[_BRG_popuptext,0.01,(safeZoneY + 0.05),5,0,0,90]spawn bis_fnc_dynamicText; sleep 5; _BRG_value1 =[_BRG_popuptext2,0.01,(safeZoneY + 0.05),15,0,0,90]spawn bis_fnc_dynamicText; playsound "Hint"; }; };
puts a small sandstorm near player
[player, -1, 0.8, true] call BIS_fnc_sandstorm;


. Teleport people 700m in air
 

_pos = getPosATL player; _pos set [2, 700]; player setPosATL _pos; player spawn bis_fnc_halo;

. Attaches chicken to players head
 

_expl1 = "Cock_random_F" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Head"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ];

. Shows people on map
 

if(stealthMarkerToggle == 1) exitWith {stealthMarkerToggle = 0; onEachFrame {}; {deleteMarkerLocal _x;} forEach markerList; hint "Markers disabled";}; stealthMarkerToggle = 1; markerList = []; markerUnits = []; hint "Markers enabled - Check map!"; while {true} do { if(stealthMarkerToggle == 0) exitWith {}; { _unit = _x; markerUnits = markerUnits + [_x]; _markerName = str(format ["%1",name _x]); _mName = "m" + _markerName; //player sidechat format ["%1",_markerName]; if(side _x == side player) then { _mName = createMarkerLocal [_markerName, position _x]; _mName setMarkerSizeLocal [0.6, 0.9]; _mName setMarkerShapeLocal "ICON"; _mName setMarkerTypeLocal "mil_triangle"; _mName setMarkerColorLocal "ColorBlue"; _mName setMarkerTextLocal _markerName; _mName setMarkerDirLocal (direction _x); markerList = markerList + [_mName]; } else { _unit = _x; markerUnits = markerUnits + [_x]; _mName setMarkerSizeLocal [0.6, 0.9]; _mName = createMarkerLocal [_markerName, position _x]; _mName setMarkerShapeLocal "ICON"; _mName setMarkerTypeLocal "mil_triangle"; _mName setMarkerColorLocal "ColorRed"; _mName setMarkerTextLocal _markerName; _mName setMarkerDirLocal (direction _x); markerList = markerList + [_mName]; }; //hint format ["%1",_mName]; } forEach allUnits; sleep 1; if(stealthMarkerToggle == 0) exitWith {}; {_x setMarkerPosLocal getPos (markerUnits select (markerList find _mName)); _x setMarkerDirLocal getDir(markerUnits select (markerList find _mName));} forEach markerList; sleep 1; if(stealthMarkerToggle == 0) exitWith {}; {_x setMarkerPosLocal getPos (markerUnits select (markerList find _mName)); _x setMarkerDirLocal getDir(markerUnits select (markerList find _mName));} forEach markerList; sleep 1; if(stealthMarkerToggle == 0) exitWith {}; {_x setMarkerPosLocal getPos (markerUnits select (markerList find _mName)); _x setMarkerDirLocal getDir(markerUnits select (markerList find _mName));} forEach markerList; sleep 1; if(stealthMarkerToggle == 0) exitWith {}; {_x setMarkerPosLocal getPos (markerUnits select (markerList find _mName)); _x setMarkerDirLocal getDir(markerUnits select (markerList find _mName));} forEach markerList; sleep 1; if(stealthMarkerToggle == 0) exitWith {}; {deleteMarkerLocal _x;} forEach markerList; markerUnits = []; markerList = []; };

. Gives speed upgrade to vehicles
 

hint "Speed upgrade loaded!"; waituntil {!isnull (finddisplay 46)}; (findDisplay 46) displayAddEventHandler ["KeyDown","_this select 1 call MY_KEYDOWN_FNC;false;"]; MY_KEYDOWN_FNC = { _vcl = vehicle player; if(_vcl == player)exitwith{}; _nos = _vcl getvariable "nitro"; _supgrade = _vcl getvariable "supgrade"; if(isEngineOn _vcl) then { switch (_this) do { case 17: { if(isEngineOn _vcl and !isnil "_supgrade") then { _vcl SetVelocity [(velocity _vcl select 0) * 1.011, (velocity _vcl select 1) *1.011, (velocity _vcl select 2) * 0.99]; } else { _vcl setvariable ["supgrade", 1, true]; }; }; case 42: { if(isEngineOn _vcl and !isnil "_nos") then { _vcl setVelocity [(velocity _vcl select 0) * 1.01, (velocity _vcl select 1) * 1.01, (velocity _vcl select 2) * 0.99]; } else { _vcl setvariable ["nitro", 1, true]; }; }; }; }; };

Set your current CASH

life_cash = 400000;


Set your current ATM Balance

life_atmcash = 400000;

and for 4.4 (thanks to AlaskaVet)
 

life_atmbank = 10000;


Give yourself a licence

license_civ_rebel = true;

Possible values for the licence:

license_cop_air


license_cop_swat
license_cop_cg
license_civ_driver
license_civ_air
license_civ_heroin
license_civ_marijuana
license_civ_gang
license_civ_boat
license_civ_oil
license_civ_dive
license_civ_truck
license_civ_gun
license_civ_rebel
license_civ_coke
license_civ_diamond
license_civ_copper
license_civ_iron
license_civ_sand
license_civ_salt
license_civ_cement
license_med_air
license_civ_home

 

 refresh your HUD

[] call life_fnc_hudUpdate;

Setting your carry weight to zero allows you to buy infinite amounts of things for your "z-Inventory" if you run it every time your max carry-weight is reached

life_carryWeight = 0;

Give yourself a z-Item

[true,"cannabis",1] call life_fnc_handleInv;

Alternatives for the "cannabis" part: (these are not all possibilities) 

  • oil / oilp
  • diamond / diamondc
  • heroin / heroinp
  • copper / copper_r
  • iron / iron_r
  • sand / glass
  • salt / salt_r
  • cocaine / cocainep
  • cannabis / marijuana
  • heroin / heroinu 
  • cement / rock
  • water

Unrestrain yourself when a cop restrained you

player setVariable["restrained",FALSE,TRUE];

Create a vehicle or another object in front of you

_toSpawn = "O_G_Quadbike_01_F" createVehicle position player;

Replace O_G_Quadbike_01_F with whatever you want. A list of vehicle names can be found here:

https://community.bistudio.com/wiki/Arma_3_Assets

 

Give yourself a weapon

player addWeaponGlobal "arifle_Katiba_F"; 

A list of weapon names can be found here: 

https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Weapons

 

Give yourself magazines

player addMagazineGlobal "30Rnd_556x45_Stanag_Tracer_Green";

List of magazines can be found here too (next to the weapons):

https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Items

 

Execute a command for a specific player:

_uid = getPlayerUID player;  if(_uid == "player_id") then{     THE_FUNCTION();};

Replace player_id with the PID of the player which should execute the function and replace THE_FUNCTION(); with the function you want to be executed for him.

Teleport yourself into the air, and get a parachute

player addBackpack "B_Parachute"; player setPos [getPos player select 0, getPos player select 1, 101];

Create an earthquake for yourself (execute globally for everyone to see it). This does no harm! It's just a nice effect.

[] spawn BIS_fnc_earthquake;

Get infinite ammunition

player addeventhandler ["fired", {(_this select 0) setvehicleammo 1}]
Edited by ⎛⎝AAPFire⎠⎞
UPDATED
  • Like 2
Link to post
Share on other sites
  • 10 months later...
On 10/20/2016 at 5:25 AM, ⎛⎝AAPFire⎠⎞ said:

Attaches GBU's to whoever

_expl1 = "Bo_GBU12_LGB" createVehicle position player; _expl1 attachTo [player, [-0.1, 0.1, 0.15], "Pelvis"]; _expl1 setVectorDirAndUp [ [0.5, 0.5, 0], [-0.5, 0.5, 0] ]; _expl2 = "Bo_GBU12_LGB" createVehicle position player; _expl2 attachTo [player, [0, 0.15, 0.15], "Pelvis"]; _expl2 setVectorDirAndUp [ [1, 0, 0], [0, 1, 0] ]; _expl3 = "Bo_GBU12_LGB" createVehicle position player; _expl3 attachTo [player, [0.1, 0.1, 0.15], "Pelvis"]; _expl3 setVectorDirAndUp [ [0.5, -0.5, 0], [0.5, 0.5, 0] ];

 

How would I delete these if i spawned them in?

 

 

Link to post
Share on other sites
  • Corey pinned this topic
  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.