16.06.2015, 12:21
PHP код:
CreateStaticVehicle(VEHICLE_TYPE_LAW_ENFOREMENT,490, 2251.656005, 2443.166992, 10.947627, 0.281860, -1, -1);
CreateStaticVehicle(VEHICLE_TYPE_LAW_ENFOREMENT,490, 2251.656005, 2443.166992, 10.947627, 0.281860, -1, -1);
stock CreateStaticVehicle(type,modelid,Float:X,Float:Y,Float:Z,Float:A,ColorOne,ColorTwo)
{
CurrentVehicleId ++;
if (CurrentVehicleId > MAX_VEHICLES)
{
printf("Too Many Vehicleid's Ignoring Vehicleid %d",CurrentVehicleId);
return 1;
}
new string[256];
AddStaticVehicleEx(modelid,X,Y,Z,A,ColorOne,ColorTwo,300);
CarInfo[CurrentVehicleId][cType] = type;
CarInfo[CurrentVehicleId][cModel] = modelid;
CarInfo[CurrentVehicleId][cLocationX] = X;
CarInfo[CurrentVehicleId][cLocationY] = Y;
CarInfo[CurrentVehicleId][cLocationZ] = Z;
CarInfo[CurrentVehicleId][cLocationA] = A;
CarInfo[CurrentVehicleId][cColorOne] = ColorOne;
CarInfo[CurrentVehicleId][cColorTwo] = ColorTwo;
CarInfo[CurrentVehicleId][cLocationI] = 0;
CarInfo[CurrentVehicleId][cLocationW] = 0;
format(string, sizeof(string), "Not Owned");
strmid(CarInfo[CurrentVehicleId][cOwner], string, 0, strlen(string), 256);
CarInfo[CurrentVehicleId][cOwned] = -1;
CarInfo[CurrentVehicleId][cLock] = 0;
CarInfo[CurrentVehicleId][cValue] = 0;
CarInfo[CurrentVehicleId][cSellable] = 0;
CarInfo[CurrentVehicleId][cSold] = 0;
CarInfo[CurrentVehicleId][cSpawnTime] = 0;
return 1;
}