Jump to content

jackislost

Member
  • Posts

    18
  • Joined

  • Last visited

Reputation Activity

  1. Like
    jackislost reacted to Csus in [RELEASE] TradeFromVehicle - Version 2.0 is here!   
    yeah, you could.
    something like this -
     
    in the init create a variable called 'tfv_ALLOWED_VEHICLES'.
    then add the vehicles to this, e.g -
    tfv_ALLOWED_VEHICLES = ["UralCivil","Horse_Carriage","Flying_Saucer_DES_EP1_DZE"]; then in the monitor.sqf add a new variable to line 3 called '_isAllowed', it should look like this -
    private ["_vehicle","_crew","_driver","_ownsCar","_trader","_trader_obj","_isAllowed"]; next, add this directly below line 19
    _isAllowed = (typeOf _vehicle) in tfv_ALLOWED_VEHICLES; so line 19 to 27 should look like -
    if (vehicle player != player) then { //Check if the player was in the driver seat. _vehicle = vehicle player; _isAllowed = (typeOf _vehicle) in tfv_ALLOWED_VEHICLES; _crew = crew _vehicle; _driver = _crew select 0; if (player == _driver) then { _ownsCar = true; } else { _ownsCar = false; }; }; now, you just gotta change this line -
    if ((vehicle player == player) && (_ownsCar)) then { to this -
    if ((vehicle player == player) && (_ownsCar)&&(_isAllowed)) then { this should work just nicley for you
  2. Like
    jackislost got a reaction from hambeast in Overpoch - How's it done ??   
    how are you the creator? is like someone claiming to be the creator of taviana epoch... LOL....
×
×
  • Create New...