PickupTypes
#1

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
Reply
#2

DestroyPickup() shpuld work if used properly
Reply
#3

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

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.
Reply
#5

Код:
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 ?
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)