29.12.2014, 16:05
Am trying to add this red checkpoint but i can't find the id for it am wanting it for my house system so rather then the pickup i wanna use the red checkpoint whenever the player is close to the house.
What i want.
Код:
House_Refresh(houseid) { if (houseid != -1 && HouseData[houseid][houseExists]) { if (IsValidDynamic3DTextLabel(HouseData[houseid][houseText3D])) DestroyDynamic3DTextLabel(HouseData[houseid][houseText3D]); if (IsValidDynamicPickup(HouseData[houseid][housePickup])) DestroyDynamicPickup(HouseData[houseid][housePickup]); if (IsValidDynamicMapIcon(HouseData[houseid][houseMapIcon])) DestroyDynamicMapIcon(HouseData[houseid][houseMapIcon]); static string[128]; if (!HouseData[houseid][houseOwner]) { format(string, sizeof(string), "[%s]\n%s", FormatNumber(HouseData[houseid][housePrice]), HouseData[houseid][houseAddress]); HouseData[houseid][houseText3D] = CreateDynamic3DTextLabel(string, 0x33AA33FF, HouseData[houseid][housePos][0], HouseData[houseid][housePos][1], HouseData[houseid][housePos][2], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, HouseData[houseid][houseExteriorVW], HouseData[houseid][houseExterior]); } else { format(string, sizeof(string), "%s", HouseData[houseid][houseAddress]); HouseData[houseid][houseText3D] = CreateDynamic3DTextLabel(string, COLOR_WHITE, HouseData[houseid][housePos][0], HouseData[houseid][housePos][1], HouseData[houseid][housePos][2], 15.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, HouseData[houseid][houseExteriorVW], HouseData[houseid][houseExterior]); } // Pickup ID how can i make the red checkpoint? HouseData[houseid][housePickup] = CreateDynamicPickup(1273, 23, HouseData[houseid][housePos][0], HouseData[houseid][housePos][1], HouseData[houseid][housePos][2], HouseData[houseid][houseExteriorVW], HouseData[houseid][houseExterior]); HouseData[houseid][houseMapIcon] = CreateDynamicMapIcon(HouseData[houseid][housePos][0], HouseData[houseid][housePos][1], HouseData[houseid][housePos][2], (HouseData[houseid][houseOwner] != 0) ? (32) : (31), 0, HouseData[houseid][houseExteriorVW], HouseData[houseid][houseExterior]); } return 1; }