16.12.2017, 16:19
Init
//CARSHOP FUNCTIONS AND CONFIGURATION?
CreateCarshopGlobalTD();
CreateCarshopCar(522,-395.9633,1264.1262,6.7897,184.2291, 11000); //Vehice id, Cords and coast (11000)
//CARSHOP FUNCTIONS AND CONFIGURATION?
CreateCarshopGlobalTD();
CreateCarshopCar(522,-395.9633,1264.1262,6.7897,184.2291, 11000); //Vehice id, Cords and coast (11000)
Код:
/* CARSHOP SYSTEM */ stock CreateCarshopCar(modelid, Float:carsX, Float:carsY, Float:carsZ, Float:carsA, price) { CarshopCars++; CarShop_I[CarshopCars][carshopID] = CarshopCars; CarShop_I[CarshopCars][carshopModel] = modelid; CarShop_I[CarshopCars][carshopPrice] = price; CarShop_I[CarshopCars][carshopVehicle] = CreateVehicle(modelid, carsX, carsY, carsZ, carsA, -1, -1, 100); printf("ID- %d CARSHOPVEHICLE", CarShop_I[CarshopCars][carshopVehicle]); return 1; } /////////////////// stock SetCarshopCarPriceForTD(playerid, carshopvalue) { new scscpft[32]; format(scscpft, sizeof(scscpft), "%d$", carshopvalue); PlayerTextDrawSetString(playerid, CarshopPTD[playerid][1], scscpft); }