Jump to content
Sign in to follow this  
ItsPringlez

A3 Altis Life Help

Recommended Posts

Hello all,

My community have recently launched an Altis Life server.

There are two things that i need help with.

1. Re-Skinning the Hunter for cops. Police skin & S.W.A.T skin

2. Civilian weapon saving.

Thanks in advance for any help...

I am sorry if this is already a post, if so please link me to it, presuming there is answers.

-Team Old Skool

ts3.teamoldskool.com

Share this post


Link to post
Share on other sites

In the core\config\fn)vehicleColorCfg.sqf is where all the pathways to the pictures so from there you would:

Find the hunter

B_MRAP_01_F

B_MRAP_01_hmg_F

case "B_MRAP_01_F":
{
	_ret = 
	[
		["myPath\MyPicutre","cop","myPath\myPicture.paa"],
		["#(argb,8,8,3)color(0.05,0.05,0.05,1)","fed"]
	];
};

case "B_MRAP_01_hmg_F":
{
	_ret = 
	[
		["myPath\MyPicutre","cop","myPath\myPicture.paa"],
		["#(argb,8,8,3)color(0.05,0.05,0.05,1)","fed"]
	];
};

Share this post


Link to post
Share on other sites

This is all I have so far but I guess you can try it to see, There has to be more done, but I am at a loss

Edit the config.cpp in the addon (If ok)

class MySQL_Database
{
	tag = "DB";
	class MySQL
	{
		file = "\life_server\core\MySQL";
		class insert{};
		class query{};
		class update{};
		class numberSafe {};
		class formatArray {};
		class mresArray {};
		class mresToArray {};
		class addQueue {};
		class processQueue {};
		class queueManagement {};
		class insertVehicle {};
		class queryVehicle {};
		class queryVehicles {};
		class bool{};
		class mresString {};
		class saveGun {};
	};
};

Then in the life_server\core\MySQL make a new folder called fn_saveGun

private["_uid","_side","_type","_className","_query","_sql"];
_uid = [_this,0,"",[""]] call BIS_fnc_param;
_side = [_this,1,"",[""]] call BIS_fnc_param;
_type = [_this,2,"",[""]] call BIS_fnc_param;
_className = [_this,3,"",[""]] call BIS_fnc_param;

//Stop bad data being passed.
if(_uid == "" OR _side == "" OR _type == "" OR _className == "") exitWith {};

_query = format["INSERT INTO gun (uid, classname, type, pid) VALUES ('%1', '%2', '%3', '%4', '1','1','""[]""', '%5', '%6')",_side,_className,_type,_uid];
_sql = "Arma2Net.Unmanaged" callExtension format ["Arma2NETMySQLCommand ['%2', '%1']", _query,(call LIFE_SCHEMA_NAME)];

THIS MAYBE ALL WRONG BUT IT IS JUST A HYPOTHESIS

Also you will have to make a new sql table called "guns" and how you do that is go into the phpmyadmin and then go to SQL Query at the top. and put this

CREATE TABLE gun
(
uid int,
classname varchar(255),
type varchar(255),
pid varchar(255),
);

I am not to sure on the SQL part but it should work lemme know tho!

Share this post


Link to post
Share on other sites

Okay to this is in relation to the skin/texture of the Hunter.

We have our texture/skin.

They are saved in, /MPMissions/Altis_Life_RPG.Altis

The files are called swat-name-hunter.paa & swat-body-hunter.paa

I have tried so many combinations with the code you posted and all that happens is the hunter becomes invisible...

case "B_MRAP_01_F":

{

_ret =

[

["myPath\swat-name-hunter.paa","cop","myPath\swat-body-hunter.paa"],

["#(argb,8,8,3)color(0.05,0.05,0.05,1)","fed"]

];

};

*NOTE* where "myPath" is present is the location of the textures.

Share this post


Link to post
Share on other sites

   case "B_MRAP_01_F":
   {
       _ret = 
       [
           ["pictures\MyPicutre","cop","pictures\myPicture.paa"],
           ["#(argb,8,8,3)color(0.05,0.05,0.05,1)","fed"]
       ];
   };

The path should only be to the folder in the mission, so say you have Altis_Life_RPG\Picture\picture.paa. you would do Picture\picture.paa

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×