Position = {
[1] = { 2066.60107, 1538.43542, 10.67188 };
[2] = { 2080.86279, 1583.23364, 10.82031 };
[3] = { 2072.40479, 1596.27515, 10.67188 };
[4] = { 2064.46460, 1605.78015, 10.67188 };
[5] = { 2051.22852, 1600.26282, 10.67188 };
};
setTimer(function()
local x, y, z = unpack ( Position [ math.random ( #Position ) ] )
pickup = createPickup ( x, y, z, 3, 1274, 300000 )
attachElements ( blip, pickup )
end, 1000, 1)
addEventHandler ( "onPickupHit", pickup,
function ( player )
givePlayerMoney( player, math.random ( 150, 300 ) )
destroyElement ( blip )
end
)
addEventHandler ( "onPickupSpawn", pickup,
function ( )
blip = createBlip ( 0, 0, 0, 52 )
attachElements ( blip, pickup )
end
)
الحين انا ابي البيك اب الثاني ما ينزل الا اذا واحد اخذ الاول