please help asap
#1

can u please make these pickup icons into red checkpoints i dont want it to be a pick up thats why
Код:
// This function updates (destroys and re-creates) the pickup, map-icon and 3DText label near the house's entrance
House_UpdateEntrance(HouseID)
{
	// Setup local variables
	new Msg[128], Float:x, Float:y, Float:z;

	// Get the coordinates of the house's pickup (usually near the door)
	x = AHouseData[HouseID][HouseX];
	y = AHouseData[HouseID][HouseY];
	z = AHouseData[HouseID][HouseZ];

	// Destroy the pickup, map-icon and 3DText near the house's entrance (if they exist)
	if (IsValidDynamicPickup(AHouseData[HouseID][PickupID]))
		DestroyDynamicPickup(AHouseData[HouseID][PickupID]);
	if (IsValidDynamicMapIcon(AHouseData[HouseID][MapIconID]))
		DestroyDynamicMapIcon(AHouseData[HouseID][MapIconID]);
	if (IsValidDynamic3DTextLabel(AHouseData[HouseID][DoorText]))
		DestroyDynamic3DTextLabel(AHouseData[HouseID][DoorText]);

	// Add a new pickup at the house's location (usually near the door), green = free, blue = owned
	if (AHouseData[HouseID][Owned] == true)
	{
		// Create a blue house-pickup (house is owned)
 		AHouseData[HouseID][PickupID] = CreateDynamicPickup(1272, 1, x, y, z, 0);
		// Create the 3DText that appears above the house-pickup (displays the housename and the name of the owner)
		if (AHouseData[HouseID][StaticHouse] == true)
			format(Msg, 128, "%s\nOwned by: %s\nCarslots: %i\nSize: %i\n/enter", AHouseData[HouseID][HouseName], AHouseData[HouseID][Owner], AHouseData[HouseID][CarSlots], AHouseData[HouseID][HouseLevel]);
		else
			format(Msg, 128, "%s\nOwned by: %s\nHouse-level: %i\n/enter", AHouseData[HouseID][HouseName], AHouseData[HouseID][Owner], AHouseData[HouseID][HouseLevel]);
		AHouseData[HouseID][DoorText] = CreateDynamic3DTextLabel(Msg, 0x008080FF, x, y, z + 1.0, 50.0);
		// Add a streamed icon to the map (red house), type = 32, color = 0, world = 0, interior = 0, playerid = -1, drawdist = 150.0
		if (ShowBoughtHouses == true)
			AHouseData[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 32, 0, 0, 0, -1, 150.0);
	}
	else
	{
        // Create a green house-pickup (house is free)
		AHouseData[HouseID][PickupID] = CreateDynamicPickup(1273, 1, x, y, z, 0);
		// Create the 3DText that appears above the house-pickup (displays the price of the house)
		if (AHouseData[HouseID][StaticHouse] == true)
			format(Msg, 128, "House available for\n$%i\nCarslots: %i\nSize: %i\n/buyhouse", AHouseData[HouseID][HousePrice], AHouseData[HouseID][CarSlots], AHouseData[HouseID][HouseLevel]);
		else
			format(Msg, 128, "House available for\n$%i\nMax-level: %i\n/buyhouse", AHouseData[HouseID][HousePrice], AHouseData[HouseID][HouseMaxLevel]);
		AHouseData[HouseID][DoorText] = CreateDynamic3DTextLabel(Msg, 0x008080FF, x, y, z + 1.0, 50.0);
		// Add a streamed icon to the map (green house), type = 31, color = 0, world = 0, interior = 0, playerid = -1, drawdist = 150.0
		AHouseData[HouseID][MapIconID] = CreateDynamicMapIcon(x, y, z, 31, 0, 0, 0, -1, 150.0);
	}
}
Reply
#2

Just change the pickup model.
Reply
#3

i dont want to detect as a pickup doe just a checkpoint to enter the house
Reply
#4

Oh sorry then, im not really good at that kind of stuff.
Reply
#5

Post "OnPlayerPickupPickup/OnPlayerPickupDynamicPickup" and "OnPlayerEnterCheckPoint/OnPlayerEnterDynamicCP" please
Or just change "CreateDynamicPickup" with "CreateDynamicCP" and "OnPlayerPickupdynamicPickup" with "OnPlayerEnterDynamicCP"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)