Created
October 13, 2014 11:02
-
-
Save wiking-at/96b1684622a3715116dd to your computer and use it in GitHub Desktop.
custom uniforms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @file Version: 1.0 | |
// @file Name: customUniforms.sqf | |
// @file Author: wiking.at | |
// Allow custom uniforms for clan's regulary playing on our server | |
//if (isServer) exitWith{}; | |
// Armajunkies Members | |
_ajUIDs =[ | |
// Put player UIDs here | |
]; | |
// Check if Player is in Indi and AJ | |
if (playerSide == independent && (getPlayerUID player in _ajUIDs)) then | |
{ | |
[] spawn // Uniform | |
{ | |
while {true} do | |
{ | |
waitUntil {uniform player == "U_I_CombatUniform"}; | |
player setObjectTextureGlobal [0,"addons\customuniforms\textures\u_armajunkies.jpg"]; | |
//If player is wearing Carryall (Urban) use the black texture hidden in A3Default PBO instead | |
if ((backpack player) == "B_Carryall_oucamo") then | |
{ | |
backpackContainer player setObjectTextureGlobal [0,"\A3\weapons_f\ammoboxes\bags\Data\backpack_tortila_blk_co.paa"]; | |
}; | |
//backpackContainer player setObjectTextureGlobal [0,"#(rgb,8,8,3)color(0.16,0.16,0.16,1)"]; //change backpack color to dark black - disabled because there it is really black or nearly white with arma colors | |
waitUntil {uniform player != "U_I_CombatUniform"}; //If player changes Uniform go to the top of the while loop | |
}; | |
}; | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment