VERY Useful Scripts

Posts 1–15 of 30 · Page 1 of 2
VERY Useful Scripts [Updated]
Added more
--

Kill specific player.

Code:
testIndex  = _this select 1;
_thePlayer = _this select 2;

// foreach loop
{
	if (name _x == _thePlayer) then
	{ 
		_x setDamage 1;	
	};
} foreach playableUnits;
-----------------------


Rainbowgas (Rainbow smoke flies from your feet)

Code:
if (isnil ("HaxSmokeOn")) then 
{
    HaxSmokeOn = 0;
};

if (HaxSmokeOn==0) then
{
    HaxSmokeOn=1;
    hint "Smoke is ON!";
    
    _sCode = 'while {HaxSmokeOn==1} do {';
    _sCode = _sCode + 'Flare = "SmokeShell" createVehicle position vehicle player;Flare attachTo [vehicle player,[0,0,0]];';
    _sCode = _sCode + 'Flare1 = "Smokeshellpurple" createVehicle position vehicle player;Flare1 attachTo [vehicle player,[0.1,0,0]];';
    _sCode = _sCode + 'Flare2 = "Smokeshellgreen" createVehicle position vehicle player;Flare2 attachTo [vehicle player,[0.2,0,0]];';
    _sCode = _sCode + 'Flare3 = "Smokeshellpurple" createVehicle position vehicle player;Flare3 attachTo [vehicle player,[0.3,0,0]];';
    _sCode = _sCode + 'Flare4 = "Smokeshellgreen" createVehicle position vehicle player;Flare4 attachTo [vehicle player,[0.4,0,0]];';
    _sCode = _sCode + 'Flare5 = "Smokeshellgreen" createVehicle position vehicle player;Flare5 attachTo [vehicle player,[0.5,0,0]];';
    _sCode = _sCode + 'Flare6 = "Smokeshellgreen" createVehicle position vehicle player;Flare6 attachTo [vehicle player,[0.6,0,0]];';
    _sCode = _sCode + 'Flare7 = "SmokeShellRed" createVehicle position vehicle player;Flare7 attachTo [vehicle player,[0.7,0,0]];';
    _sCode = _sCode + 'Flare8 = "SmokeShellRed" createVehicle position vehicle player;Flare8 attachTo [vehicle player,[0.8,0,0]];';
    _sCode = _sCode + 'sleep 28;};';
    
    [] spawn compile _sCode;
}
else
{
    sleep 0.5;
    deleteVehicle Flare;
    deleteVehicle Flare1;
    deleteVehicle Flare2;
    deleteVehicle Flare3;
    deleteVehicle Flare4;
    deleteVehicle Flare5;
    deleteVehicle Flare6;
    deleteVehicle Flare7;
    deleteVehicle Flare8;
    HaxSmokeOn=0;
    hint "Smoke is OFF!";
};
--------------------

Control other players.

Code:
testIndex  = _this select 1;
_thePlayer = _this select 2;

// foreach loop
{
	if (name _x == _thePlayer) then
	{ 
	_x switchCamera "Internal"; 
	selectPlayer _x;
	player remoteControl _x;
	_rcntrl = true;
	};
} foreach playableUnits;
--------------------

Godmode:
Code:
if (isNil "wuat_fpsMonitor") then { wuat_fpsMonitor = true; } else { wuat_fpsMonitor = not wuat_fpsMonitor;};
hint format["God-Mode Activated",wuat_fpsMonitor];
if (wuat_fpsMonitor) then {  [] spawn { while { wuat_fpsMonitor } do  { 
//hintsilent format["Fps: %1", (diag_FPS/2)+149 ]; sleep 1.5; 


//////////////////
//hintSilent format["Injured: %1\nUnconscious: %2 (%7)\nBlood: %5\nPain: %6\nMust Evac: %8\nHandler: %3\nAction: %4\nLeg Damage: %9\nArm Damage: %10\nInfected: %11",r_player_injured,r_player_unconscious,r_player_handler,r_action,r_player_blood,r_player_inpain,r_player_timeout,r_player_dead, player getVariable ["hit_legs",0], player getVariable ["hit_arms",0],r_player_infected];
unitList = allUnits;
j = count unitList;
i = 0;
markPos = true;

while {wuat_fpsMonitor} do
{ 

_v =player;
_v setDammage 0;
"dynamicBlur" ppEffectAdjust [0];"dynamicBlur" ppEffectCommit 0.1;"colorCorrections" ppEffectAdjust [1, 1, 0, [1, 1, 1, 0.0], [1, 1, 1, 1],  [1, 1, 1, 1]];"colorCorrections" ppEffectCommit 0.1;
r_interrupt =             false;
r_doLoop =                 false;
r_self =                 false;
r_drag_sqf =             false;
r_action =                 false;
r_action_unload =         false;
r_player_handler =         false;
r_player_handler1 =     false;
r_player_dead =         false;
r_player_unconscious =     false;
r_player_infected =        false;
r_player_injured =         false;
r_player_inpain =         false;
r_player_loaded =         false;
r_player_cardiac =         false;
r_fracture_legs =        false;
r_fracture_arms =        false;
r_player_blood =         12000;
r_player_lowblood =     false;
r_player_timeout =        0;
r_handlerCount =         0;
dayz_hunger    =            0;
dayz_thirst =             0;
dayz_temperatur =         100;
(vehicle player) removeAllEventHandlers "handleDamage";
(vehicle player) addEventHandler ["handleDamage", { false }];
(vehicle player) addEventHandler ["hit", {player setdammage 0}];
(vehicle player) addEventHandler ["dammaged", {player setdammage 0}];
(vehicle player) allowDamage false;
//player setVariable ["hit_legs",0,false]; player setVariable ["hit_arms",0,false];
    //_v setVariable ["NORRN_unconscious", false, true];
    //_v setVariable ["USEC_isCardiac",false,true];
//    player setVariable["medForceUpdate",true,true];
//////////////////

unitList = AllUnits;
j = count unitList;
i = 0;
    
    for "i" from 0 to j do
    {
            unit = unitList select i;
            pos = position unit;
            deleteMarkerLocal ("playerMarker"+ (str i));
            marker = "playerMarker" + (str i);
            marker = createMarkerLocal [marker,pos];
            marker setMarkerTypeLocal "waypoint";
            marker setMarkerPosLocal (pos);
            marker setMarkerColorLocal("ColorBlue");
            marker setMarkerTextLocal format ["%1",name unit];        
    
    };
    sleep 0.8;
};


//hint "Player Marking Stopping";

i = 0;
for "i" from 0 to 1000 do
{
    veh = unitList select i;
    deleteMarkerLocal ("playerMarker"+ (str i));
};

};};};
-------------------------------
No Recoil

Code:
player setUnitRecoilCoefficient 0;

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

ZombieShield (Any zombies close die)


Code:
if (isNil "zombieshield") then {zombieshield = true;} else {zombieshield = !zombieshield};
if(zombieshield) then {titleText ["Zombie Shield activated!","PLAIN DOWN"]; titleFadeOut 4;};
while {zombieshield} do {
	_pos = getPos player;
	_zombies = _pos nearEntities ["zZombie_Base",10];
	_count = count _zombies;
	for "_i" from 0 to (_count -1) do
	{	
		_zombie = _zombies select _i;			
		_zombie setDamage 1;				
	};
};

titleText ["Zombie Shield deactivated!","PLAIN DOWN"]; titleFadeOut 4;

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

ESP (Shows player names)

Code:
if (isNil "playericons") then {playericons = true;} else {playericons = !playericons};
if(playericons) then {titleText ["Player ESP activated!","PLAIN DOWN"]; titleFadeOut 4;};
setGroupIconsVisible [false,true];
while {playericons} do {
	_i = 0;
	_j = count allUnits;

	for "_i" from 0 to _j do
	{
		_unit = allUnits select _i;
		if (alive _unit && player != _unit) then{
			_group = group _unit;
			_group addGroupIcon ["b_inf", [0,0]];
			_group setGroupIconParams [[0,0,1,1],format ["%1 - %2m", name _unit, ceil (_unit distance player)],0.8,true];
		};
	};
	sleep 1;
	_i = 0;
	_j = count allUnits;
	for "_i" from 0 to _j do
	{
		_unit = allUnits select _i;	
		_group = group _unit;
		clearGroupIcons _group;
	};
};

titleText ["Player ESP deactivated!","PLAIN DOWN"]; titleFadeOut 4;};


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

Teleport (with map)

Code:
abcd={
	_pos = [_this select 0, _this select 1, _this select 2];
	(vehicle player) setpos [_pos select 0, _pos select 1, 0];
	player setVariable["lastPos",1];player setVariable["lastPos",[]];
	onMapSingleClick "";
	openMap [false, false];
};

openMap [true, false];
onMapSingleClick "[_pos select 0, _pos select 1, _pos select 2] call abcd";


May post more later or if theres one you would like to see then let me know. ALSO I did not make these. I don't have proper credits to each person but I did not have anything to do with making these


Press thanks if you use any of these.
Probably should chuck in that these need a bypass/executor. Trying to run these scripts without protection will mean insta-ban.
Quote Originally Posted by chris685 View Post
Probably should chuck in that these need a bypass/executor. Trying to run these scripts without protection will mean insta-ban.
Well i thought people would use common sense.
Got a nuke script?
Quote Originally Posted by Sgt.Jonny View Post
Got a nuke script?
Don't even ask for one. You will never get ahold of a nuke or Thunderdome script on this site. Imagine the clusterfuck of nukes that would happen.
Ill check this scripts
I do not know the script to nuke bomb but that's the usual
 
bomb
Code:
hint "Open the Map and Select the Map Position u want to bomb";sCode = 'hint "Bombs in comming, RUN!";';
sCode = sCode + 'cpbLoops = 100;';
sCode = sCode + 'cpLoopsDelay = 0.1;';
sCode = sCode + 'for "_i" from 0 to cpbLoops do {';
sCode = sCode + '"BO_GBU12_LGB" createvehicle ([(cTargetPos select 0) -  50 + random 100, (cTargetPos select 1) - 50 + random 100, 50]);';
sCode = sCode + 'sleep cpLoopsDelay;};';
sCode = sCode + 'cTargetPos = nil;cpbLoops = nil;cpLoopsDelay = nil;';
 
 
onMapSingleClick "cTargetPos = _pos;[] spawn compile sCode; onMapSingleClick '';true;";
Z and P Shield are detected due to setdamage.
Quote Originally Posted by LegitMelons View Post
Z and P Shield are detected due to setdamage.
Have to disagree. Ive been using them and they work fine and I don't think they're detected but if they are.. it makes no difference to me
Which script executor should i use?? idk
Well, this:

Code:
if (name _x == _thePlayer) then
Should be like:

Code:
if (name _x == _guysname) then

or

if (name _x == guysname) then

or

if (name _guysname == _thePlayer) then

or

if (name guysnamex == _thePlayer) then
EDIT: I tried all the ways and nothing :/
I'm trying to figure out how it works, once I find out, I will post it.
How am I supposed to use the control and the kill players script?
FINALLY! It is very simple:

Control Player:

Code:
testIndex  = _this select 1;
_thePlayer = _this select 2;

// foreach loop
{
	if (name _x == 'targetname') then
	{ 
	_x switchCamera "Internal"; 
	selectPlayer _x;
	player remoteControl _x;
	_rcntrl = true;
	};
} foreach playableUnits;
Does this work or not and if it does anyone want to help me try hacking???
Posts 1–15 of 30 · Page 1 of 2

Post a Reply

Similar Threads

Talk with us