SA-MP Forums Archive
PickupTypes - 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: PickupTypes (/showthread.php?tid=590858)



PickupTypes - Aerotactics - 04.10.2015

I just want a pickup that is triggered ONCE, and disappears. No respawning, no nothing. All the PickupTypes I've used have some sort of catch to them:

1: Always exists even if you have DestroyPickup
2: Respawns even if you use DestroyPickup
8: Disappears correctly, but makes all similar pickups disappear as well
19: Actually works the way I want it to, but is a per-player pickup, meaning there's not just one, there's one for each player.

Which one of these is the pickuptype im looking for? And why do they ignore DestroyPickup?
https://sampwiki.blast.hk/wiki/PickupTypes


Re: PickupTypes - ATGOggy - 04.10.2015

DestroyPickup() shpuld work if used properly


Re: PickupTypes - AbyssMorgan - 04.10.2015

you want to hide the pickup for one player when he pick it up?


Re: PickupTypes - Aerotactics - 04.10.2015

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
you want to hide the pickup for one player when he pick it up?
No, it should hide for all players. The issue is that DestroyPickup has no effect on the types that respawn.


Re: PickupTypes - AbyssMorgan - 04.10.2015

Код:
new mypick;

mypick = CreateDynamicPickup(modelid, 2, Float:x, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);

public OnPlayerPickUpDynamicPickup(playerid, pickupid){
	if(pickupid == mypick){
		DestroyDynamicPickup(pickupid);
		//more
	}
	return 1;
}
what's the problem ?