17.01.2016, 12:14
Okay i was just wondering if i could link a key to a vehicle just by using the vehicles id or should i make a new value
for that.
So basicly ..would this work ?
for that.
So basicly ..would this work ?
pawn Code:
new Key[MAX_VEHICLES];
(somewhere in the script)
Key[myvehicle] = 23;// (23 is just an example and in this case should also be the 23st vehicle id in the script)
if(Key[vehicleid] == vehicleid)
{
//this should be your car
}
else
{
//the vehicle id and the Key id wont match so its not your car.
}