Mult pickups
#2

pawn Код:
new nospickup[13];

    nospickup[0] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[1] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[2] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[3] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[4] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[5] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[6] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[7] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[8] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[9] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[10] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[11] = CreatePickup(1009,14,X,Y,Z,-1);//NOS
    nospickup[12] = CreatePickup(1009,14,X,Y,Z,-1);//NOS

for(new i=0; i<sizeof(nospickup);i++) //You can use foreach instead of this
{
    if(pickupid == nospickup[i])
    {
        //rest of the code
    }
}
Reply


Messages In This Thread
Mult pickups - by TomRedlake - 04.07.2013, 18:10
Re: Mult pickups - by Antonio144 - 04.07.2013, 19:08
Re: Mult pickups - by MP2 - 04.07.2013, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)