Pickups bugged?[+REP]
#2

Try something like this:

Under includes:

Код:
new ArmyCP; // The initial pickup
new pickupstatus[MAX_PLAYERS]; // this will play the role of a counter
At OnPlayerConnect & OnPlayerDisconnect

Код:
pickupstatus[playerid]=0;
Your command:
Код:
COMMAND:test(playerid, params[])
	{
               ArmyCP=CreateDynamicPickup(...X1,Y1,Z1...); // First pickup coords
               pickupstatus[playerid]=1;
		return 1;
	}
OnPlayerPickUpDynamicPickup:

Код:
if(pickupid == ArmyCP)
	{
	    DestroyPickup(ArmyCP);
		pickupstatus[playerid]++;
		if(pickupstatus[playerid] == 2) { ArmyCP = CreateDynamicPickup(...X2,Y2,Z2...); } // The 2nd pickup Coords
	    else if if(pickupstatus[playerid] == 3) { ArmyCP = CreateDynamicPickup(...X3,Y3,Z3...); } // The 3rd pickup Coords
	    // and so on
	}
Hope it works
Reply


Messages In This Thread
Pickups bugged?[+REP] - by vassilis - 04.01.2016, 15:19
Re: Pickups bugged?[+REP] - by Lucky13 - 04.01.2016, 15:33

Forum Jump:


Users browsing this thread: 1 Guest(s)