SA-MP Forums Archive
[HELP]Pickup - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP]Pickup (/showthread.php?tid=114710)



[HELP]Pickup - BornToLearn - 20.12.2009

I have a problem with pickups.When you stand on the pickup he disappears and does not respawn.
I use Model:2-Pickupable, respawns after some time.

Code:
Код:
	for(new h = 0; h < sizeof(HouseInfo); h++)
	{
		if(HouseInfo[h][hOwned] == 0)
		{
			AddStaticPickup(1273, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
		if(HouseInfo[h][hOwned] == 1)
		{
			AddStaticPickup(1239, 2, HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(BizzInfo); h++)
	{
		if(BizzInfo[h][bOwned] == 0)
		{
			AddStaticPickup(1272, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
		if(BizzInfo[h][bOwned] == 1)
		{
			AddStaticPickup(1239, 2, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);
			pickups++;
		}
	}
	for(new h = 0; h < sizeof(SBizzInfo); h++)
	{
		if(SBizzInfo[h][sbOwned] == 0)
		{
			AddStaticPickup(1272, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
		if(SBizzInfo[h][sbOwned] == 1)
		{
			AddStaticPickup(1239, 2, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);
			pickups++;
		}
	}
	AddStaticPickup(1239, 2, 359.0520,182.4331,1008.3828,-1);
	AddStaticPickup(1239, 2, 358.6790,166.4534,1008.3828,-1);
	AddStaticPickup(1239, 2, 1472.112304,-1265.387817,14.562500,-1);
	AddStaticPickup(1239, 2, 2229.5303,-1721.7758,13.5662,-1); 
	AddStaticPickup(1239, 2, 2309.6331,-1643.7435,14.8270,-1);
	pickups=pickups+29;
	printf("Pickups Max = 100, Current Pickups = %d",pickups);
How I can fix it?


Re: [HELP]Pickup - DeathOnaStick - 20.12.2009

Hmm... weird. You can set a timer, to respawn it, if you cannot fix it...


Re: [HELP]Pickup - BornToLearn - 20.12.2009

I know, I would prefer to fix it.

Does anyone know how??


Re: [HELP]Pickup - Marcel - 20.12.2009

Try using type #23, this way it's shown all the time. I always use that one.
https://sampwiki.blast.hk/wiki/CreatePic...e_Pickup_Types


Re: [HELP]Pickup - BornToLearn - 20.12.2009

Does not work, some another solution?

Please!