SA-MP Forums Archive
CreateDynamicPickup - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CreateDynamicPickup (/showthread.php?tid=323724)



CreateDynamicPickup - Syntax - 06.03.2012

Hey guys! I basically want to 'decrease' teh radius of my Dynamic Pickup, so you have to be closer to see it. How do I do it? The line is:

Код:
public LoadHousesVisual(houseid)
{
	if(hInfo[houseid][Owned] == 0)
	{
		hInfo[houseid][hPickup] = CreateDynamicPickup(1273, 1, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ]);
	}
	else if(hInfo[houseid][Owned] == 1)
	{
  	 	hInfo[houseid][hPickup] = CreateDynamicPickup(1272, 1, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ]);
	}
    hInfo[houseid][hIcon2] = CreateDynamicPickup(1239, 1, hInfo[houseid][LX], hInfo[houseid][LY], hInfo[houseid][LZ]);
    Create3DTextLabel(""COL_WHITE"Type "COL_ORANGE"/enter "COL_WHITE"to enter the house!", COLOR_WHITE, hInfo[houseid][EX], hInfo[houseid][EY], hInfo[houseid][EZ], 40, 0, 0);
	return 1;
}
I want the "TYPE "COL_ORANGE"/enter "COL_WHITE"to enter the house!" to appear when you're closer to it.


Re: CreateDynamicPickup - Twisted_Insane - 06.03.2012

Use "IsPlayerInRangeOfPoint"!