16.01.2011, 00:00
hi,
ive got kinda a moneyrush mode in my script. There are 30 random locations where the moneybag could be located.
Ive done it like:
Well, everything works fine exept all 4 pickups are created at the same time (after uve entered a cp) and at the same location.
But i want that every pickup appears somewhere else.
I thought about using a timer to delay the creation of the pickups and force them to spawn somewhere else like that.
cause i dont want to define another Spawnpoints function with 30 locations.
I want to reduce text in my script so i thought there might be some more elegant solutions for that.
regards...
ive got kinda a moneyrush mode in my script. There are 30 random locations where the moneybag could be located.
Ive done it like:
pawn Код:
//This are my 4 moneybag pickups (created after entered a certain checkpoint)
pickup1 = CreateDynamicPickup(1241,3,MoneyRushPoints[RRush][0],MoneyRushPoints[RRush][1],MoneyRushPoints[RRush][2],0);
pickup2 = CreateDynamicPickup(1241,4,MoneyRushPoints[RRush][0],MoneyRushPoints[RRush][1],MoneyRushPoints[RRush][2],0);
pickup3 = CreateDynamicPickup(1241,5,MoneyRushPoints[RRush][0],MoneyRushPoints[RRush][1],MoneyRushPoints[RRush][2],0);
pickup4 = CreateDynamicPickup(1241,6,MoneyRushPoints[RRush][0],MoneyRushPoints[RRush][1],MoneyRushPoints[RRush][2],0);
new Float:MoneyRushPoints[30][5] = //My random moneyrush locations
{
{-1633.6028,-2244.1521,31.4766},
{-1635.2443,-1935.8237,115.1392},
//and 28 more ;)
};
But i want that every pickup appears somewhere else.
I thought about using a timer to delay the creation of the pickups and force them to spawn somewhere else like that.
cause i dont want to define another Spawnpoints function with 30 locations.
I want to reduce text in my script so i thought there might be some more elegant solutions for that.
regards...