23.05.2015, 08:41
Hello,
Create variables to store each pickup positions:
CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
New PickupX[100], PickupY[100], Pickup[100];
CreateDynamicPickup_(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0)
{
new Pickup = CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
PickupX[Pickup] = x
.............
Create variables to store each pickup positions:
CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
New PickupX[100], PickupY[100], Pickup[100];
CreateDynamicPickup_(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0)
{
new Pickup = CreateDynamicPickup(modelid, type, Float, Float:y, Float:z, worldid = -1, interiorid = -1, playerid = -1, Floattreamdistance = 100.0);
PickupX[Pickup] = x
.............