26.04.2010, 16:32
Hey, i want to make some sort of vehicle system (ownership). I want all the vehicles in the same file and in one line a person vehiclemodel, color, pos etc. be.
The only way i can do that is with using fopen and fread fclose. i got so far.
when the server starts up and loads all vehicles it should spawn all players vehicle from that file.
E.g. This is the file
Theres the players unique id, the vehicles model id, x, y, z, a, color1, color2.
I dont need the unique player id in CreateVehicle. so how do i get all other things than that?
Thank you,
Niixie
The only way i can do that is with using fopen and fread fclose. i got so far.
when the server starts up and loads all vehicles it should spawn all players vehicle from that file.
E.g. This is the file
Quote:
Originally Posted by File for the vehicles
1, 520, 0, 3, 1, 1, 1, 1
unique id Veh model X Y Z A color1 color2 |
I dont need the unique player id in CreateVehicle. so how do i get all other things than that?
Thank you,
Niixie