Pickup only for a specific team
#9

firstly, choose a pickup type that will suit your needs ( 23 is a good choice )
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;
}
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.
Reply


Messages In This Thread
Pickup only for a specific team - by Face9000 - 17.12.2010, 11:25
Re: Pickup only for a specific team - by Face9000 - 18.12.2010, 09:11
Re: Pickup only for a specific team - by iggy1 - 18.12.2010, 09:17
Re: Pickup only for a specific team - by Berky - 18.12.2010, 09:18
Re: Pickup only for a specific team - by iggy1 - 18.12.2010, 09:19
Re: Pickup only for a specific team - by [UG]Scripter - 18.12.2010, 09:20
Re: Pickup only for a specific team - by Berky - 18.12.2010, 09:22
Re: Pickup only for a specific team - by [UG]Scripter - 18.12.2010, 09:25
Re: Pickup only for a specific team - by Rachael - 18.12.2010, 09:33
Re: Pickup only for a specific team - by iggy1 - 18.12.2010, 09:41

Forum Jump:


Users browsing this thread: 1 Guest(s)