# عفسةةة .
, ججرب
marker = createMarker ( ..... );
Timer = {};
local Time, timeExecute = 5000, 1
addEventHandler ( "onMarkerHit", marker, function ( player )
if getElementType ( player ) == "player" then
money = math.random( 3000, 4134 );
givePlayerMoney( player, money)
setElementData ( player, "HaveMoney", true )
setElementData ( player, "Money", tonumber( money ) )
if not ( isTimer ( Timer [ player ] ) ) then
Timer [ player ] = setTimer ( RemoveMoney, Time, timeExecute, player )
end
end
end
)
RemoveMoney = function ( plr )
if ( getElementData( plr, "HaveMoney" ) ) then
if ( getElementData( plr, "Money" ) ~= nil ) then
takePlayerMoney ( plr, getElementData( plr, "Money" ) )
end
end
end