06.12.2011, 17:38
Hello.... i have found this problem:
I have to do a system for buy and save cars, already done.
The vehicle ID is vconc[playerid]
I wanna make if the player press "Y" key spawn the car in the garage, already done:
SetVehiclePos(vconc[playerid],2093.0139,-2450.2568,13.6596);
But if y want to save the CAR MODEL, example
pVeh1 is the slot to save the car
If the player buy the car, will be:
pVeh1 = <vehiclemodel>
So
OnPlayerConnect
if(pVeh1 != INVALID_VEHICLE_MODEL) CreateVehicle(MODEL(pVeh),blah,blah,blah);
HOW?
Thanks!
I have to do a system for buy and save cars, already done.
The vehicle ID is vconc[playerid]
I wanna make if the player press "Y" key spawn the car in the garage, already done:
SetVehiclePos(vconc[playerid],2093.0139,-2450.2568,13.6596);
But if y want to save the CAR MODEL, example
pVeh1 is the slot to save the car
If the player buy the car, will be:
pVeh1 = <vehiclemodel>
So
OnPlayerConnect
if(pVeh1 != INVALID_VEHICLE_MODEL) CreateVehicle(MODEL(pVeh),blah,blah,blah);
HOW?
Thanks!