Hi.
i made Super Bullets in shop ,, when the player buy it he have Explosive Bullets .. now the super bullets work .. but i want to put a time that super bullets end .. i tried ' setTimer ' function but didnt work ' maybe i didnt made it right ' .. so i need help in this
the code [ client-side ]
local PlayerMoney = getPlayerMoney()
if ( PlayerMoney > 10000 ) then
takePlayerMoney(10000)
outputChatBox("You Bought Super Bullets By 10000$",source,255,255,0)
function superBullet(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement)
if ( weapon == 24) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 23) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 22) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 31) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 30) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 32) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 29) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 28) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 33) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 34) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
if ( weapon == 25) then
createExplosion(hitX, hitY, hitZ, 6, true, false, true)
end
end
addEventHandler("onClientPlayerWeaponFire", root, superBullet)
else
outputChatBox("You Dont Have Enough Money 10000$",source,255,0,0)
end
p.s : " Don't give me a fish, teach me how to Catch it ! "