18.01.2016, 01:43
Alright so the problem is simple
1. It allows you to unlock vehicles that have faction ID: 0
2. Doesnt allow you to unlock vehicles that are above Faction 0 eventho if your faction ID is the same
IE: what should it work as? You can unlock your own cars & cars that have Faction ID:0 (works), and if you are part of faction ID:1 for example, you will be able to unlock faction cars that have same faction ID as yours (Faction ID's start from 1)
1. It allows you to unlock vehicles that have faction ID: 0
2. Doesnt allow you to unlock vehicles that are above Faction 0 eventho if your faction ID is the same
PHP код:
if(VehInfo[somecar][VehFaction] != 0 && VehInfo[somecar][VehFaction] == AccInfo[playerid][PlayerFaction] ||
VehInfo[somecar][VehFaction] == 0)