18.12.2010, 09:33
firstly, choose a pickup type that will suit your needs ( 23 is a good choice )
https://sampwiki.blast.hk/wiki/PickupTypes
I have not used non-streamed pickups for quite a while, but this should work, if you put some effort into adding the code that you need to do what you want to do here.
https://sampwiki.blast.hk/wiki/PickupTypes
pawn Код:
new your_pickup = CreatePickup( <insert your parameters here > );
public OnPlayerPickupPickup(playerid, pickupid)
{
if(gTeam[playerid] == 2) //or whatever team you want to be able to access the pickup
{
// put your code here, for whatever you want to do
}
return 1;
}

