04.07.2013, 19:08
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
}
}