Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- " _plate = _dbInfo select 1;" \n
- "" \n
- " _query = format [""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
- " _query spawn {" \n
- " " \n
- " _thread = [_this,1] call DB_fnc_asyncCall;" \n
- " };" \n
- " };" \n
- " if (!isNil ""_x"" && {!isNull _x}) then {" \n
- " deleteVehicle _x;" \n
- " };" \n
- " };" \n
- "} forEach allMissionObjects ""LandVehicle"";" \n
- "" \n
- "{" \n
- " if (!alive _x) then {" \n
- " _dbInfo = _x getVariable [""dbInfo"",[]];" \n
- " if (count _dbInfo > 0) then {" \n
- " _uid = _dbInfo select 0;" \n
- " _plate = _dbInfo select 1;" \n
- "" \n
- " _query = format [""UPDATE vehicles SET alive='0' WHERE pid='%1' AND plate='%2'"",_uid,_plate];" \n
- " _query spawn {" \n
- " " \n
- " _thread = [_this,1] call DB_fnc_asyncCall;" \n
- " };" \n
- " };" \n
- " if (!isNil ""_x"" && {!isNull _x}) then {" \n
- " deleteVehicle _x;" \n
- " };" \n
- " };" \n
- "} forEach allMissionObjects ""Air"";" \n
- "_cars = time;" \n
- "" \n
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement