hi everybody.
First, I want to say sorry for my english talking, I'm a french user.
So, I had a multiple siren script on my 3.1.4.8 altislife server, but now I'm on the 4.4R3 version and my script doesn't work so I here for help ...
So, in my SetupAction.sqf I have that :
Code
//CODE 3
life_actions = life_actions + [player addAction["<img image=""icons\siren.paa""/> <t color='#1CF01F'>CODE 3 ON</t>",{[[vehicle player,0.22],"life_fnc_copcode3",true,false] spawn life_fnc_say3D; vehicle player setVariable["code3",true,true];},"",0,false,false,"",' vehicle player != player && ((driver vehicle player) == player) && !(vehicle player getVariable ["code3",false])']];
life_actions = life_actions + [player addAction["<img image=""icons\siren.paa""/> <t color='#1CF01F'>CODE 3 OFF</t>",{vehicle player setVariable["code3",false,true];},"",0,false,false,"", ' vehicle player != player && ((driver vehicle player) == player) && (vehicle player getVariable ["code3",false])']];
That call this :
Code
/*
File: fn_copYelp.sqf
Author: Bryan "Tonic" Boardwine // Edited by Aphec & SaOk
Description:
Starts the cop code3 sound for other players
*/
private["_vehicle"];
_vehicle = [_this,0,ObjNull,[ObjNull]] call BIS_fnc_param;
if(isNull _vehicle) exitWith {};
if(isNil {_vehicle getVariable "code3"}) exitWith {};
while {true} do
{
if(!(_vehicle getVariable "code3")) exitWith {};
if(count (crew (_vehicle)) == 0) then {_vehicle setVariable["code3",false,true]};
if(!alive _vehicle) exitWith {};
if(isNull _vehicle) exitWith {};
_vehicle say3D "code3";
sleep 5,1;
if(!(_vehicle getVariable "code3")) exitWith {};
};
Alles anzeigen
I don't have rpt error and i think it's a problem with my "spawn life_fnc_say3D;"
So thx for your help ...
ANd sorry again for my english talking ...