Red Checkpoint with house system.
#1

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.

Код:
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;
}
What i want.

Reply


Messages In This Thread
Red Checkpoint with house system. - by fonia5 - 29.12.2014, 16:05
Re: Red Checkpoint with house system. - by Puppy - 29.12.2014, 16:06
Re: Red Checkpoint with house system. - by fonia5 - 29.12.2014, 16:07
Re: Red Checkpoint with house system. - by Puppy - 29.12.2014, 16:09
Re: Red Checkpoint with house system. - by fonia5 - 29.12.2014, 16:12
Re: Red Checkpoint with house system. - by Puppy - 29.12.2014, 16:15
Re: Red Checkpoint with house system. - by fonia5 - 29.12.2014, 16:48
Re: Red Checkpoint with house system. - by Puppy - 29.12.2014, 17:01
Re: Red Checkpoint with house system. - by fonia5 - 29.12.2014, 17:05
Re: Red Checkpoint with house system. - by fonia5 - 29.12.2014, 17:52

Forum Jump:


Users browsing this thread: 1 Guest(s)