Jump to content

S3M

Members
  • Posts

    64
  • Joined

  • Last visited

Details

  • Gang
    Bang

S3M's Achievements

Snitch

Snitch (10/54)

0

Reputation

  1. hmm grrr I am angry at myself because I had not seen this option, i tried many options, but this option I've overlooked. Thx novo.
  2. Hi there, What is the reason that i dont see the "Can't jump right now" outputChatBox in chat when timer cooldown is on? Script is working fine, only i missed the message. cooldown = {} function createRamp ( player, command ) local vehicle = getPedOccupiedVehicle ( player ) if vehicle and not isTimer( cooldown[player] ) then local x, y, z = getElementPosition ( player ) local theVehicle = getPedOccupiedVehicle ( player ) local a,b,r = getVehicleRotation ( theVehicle ) x = x - math.sin ( math.rad(r) ) * 18 y = y + math.cos ( math.rad(r) ) * 18 ramp = createObject ( 3080, x, y, z, 0, 0, r ) setTimer(destroyElement, 5000, 1, ramp ) if isTimer( cooldown[player] ) then [color=#BF0000]outputChatBox( "Can't jump right now, wait few seconds then try again.", player, 255, 0, 0 ) [/color]else outputChatBox( "Jump set!!", player, 0, 255, 0 ) cooldown[player] = setTimer( function() end, 10000, 1 ) end end end addCommandHandler ( "r", createRamp ) addCommandHandler ( "j", createRamp ) Thx
  3. Last question do al player on the map hear this sound or only by whoopee car. it must be only around whoopy car. i think not on this way right?: Server: triggerClientEvent(root, 'Sound', root ) Client: addEvent('Sound', true) addEventHandler('Sound', root, function ( ) local sound = playSound("cash.mp3") setSoundVolume(sound, 0.5) setSoundMaxDistance(sound, 50) end) Thx.
  4. It work now with trigger to root, Thx again.
  5. This isnt posible with sound3D? Only Whoopee hears the cash sound not the player who buy. But it works. Thx Max+
  6. Thank you csmit195 (y) Now i try to setSound3D on sell/bought. I put the next line into but i hear nothing, how to?. What i do wrong? Server: addEvent ( 'TakeAndGive', true ) addEventHandler ( 'TakeAndGive', root , function ( ) local Driver = getVehicleController ( whoopieVehicle ) if ( Driver ) then givePlayerMoney ( Driver, 2 ) takePlayerMoney ( source, 2 ) [color=#FF0000] local x, y, z = getElementPosition(source)[/color] [color=#FF0000] triggerClientEvent ( "triggoncash", getRootElement(), "x, y, z" )[/color] setElementHealth ( source, getElementHealth ( source ) + 20 ) outputChatBox ( "You sell some Ice cream and earn 2$", Driver, 225, 225, 0 ) outputChatBox ( "You Bought an Ice cream of 2$", source, 225, 225, 0 ) else outputChatBox ( "Whoopee is not in his car, wait till he comes back", source, 225, 225, 0 ) end end ) Client: function onCash ( x, y, z ) local soundcash = playSound3D("cash.mp3", x, y, z, false) setSoundMaxDistance( soundcash,50 ) setSoundVolume(soundcash, 0.5) end addEvent( "triggoncasH", true ) addEventHandler( "triggoncasH", getRootElement(), onCash ) Meta: <file src="cash.mp3" /> Thx.
  7. Wauw SolidSnake14 it works... What can i say, BIG THX.. you want a kiss to? This makes me happy. Aaaah the code of Solidsnake14 are working, but i find a little problem. Wen player enter other car with other skin then he say: Sell ice cream to earn money. Thx. Sorry, i think i got fix the text for now. I use these lines from csmit195 added to Solidsnake14 code: 24.-- Only Mr.Whoopie 25.addEventHandler("onResourceStart", getResourceRootElement(getThisResource()), 26.function() 27. mrwhoopieSkin = { [264]=true } 28. mrwhoopieVehicle = { [423]=true } 29.end 30.) 31. 32.function enterVehicle ( thePlayer, seat, jacked ) 33. if ( mrwhoopieVehicle[getElementModel ( source )] ) and ( not mrwhoopieSkin[getElementModel ( thePlayer )] ) and (seat == 0) then 34. setTimer ( blowVehicle, 6500, 1, source ) 35. setTimer ( outputChatBox, 4000, 1, "You are not Mr.Whoopie, Car explode in few seconds.", thePlayer, 255, 0, 0 ) 36. else 37. if ( mrwhoopieVehicle[getElementModel ( source )] ) and ( mrwhoopieSkin[getElementModel ( thePlayer )] ) and (seat == 0) then 38. setTimer ( outputChatBox, 4000, 1, "Sell ice creams to earn money.", thePlayer, 255, 0, 0 ) 39. blipwhoopie = createBlipAttachedTo(whoopieVehicle,56, 2, 255, 0, 0, 255, 0, 200 ) 40. end 41. end 42.end 43.addEventHandler ( "onVehicleStartEnter", getRootElement(), enterVehicle ) 44. 45.function removeBlipOnExit ( thePlayer, seat, jacked ) 46. if ( getElementModel ( source ) == 423 ) then 47. destroyElement(blipwhoopie) 48. end 49.end 50.addEventHandler ( "onVehicleExit", getRootElement(), removeBlipOnExit ) Thx.
  8. Wauw SolidSnake14 it works... What can i say, BIG THX.. you want a kiss to? This makes me happy. Aaaah the code of Solidsnake14 are working, but i find a little problem. Wen player enter other car with other skin then he say: Sell ice cream to earn money. Thx.
  9. excuse me man!!!! you thx thank you also Max+
  10. Ehm, why cant i set marker alpha on line 2? if i do set 0 then nothing happend with marker: local whoopieMarker = createMarker ( 0, 0, 0, "arrow", 1, 255, 0, 0, 0 ) Thx NVM, only can set alpha with marker.
  11. Ehm, why cant i set marker alpha on line 2? if i do set 0 then nothing happend with marker: local whoopieMarker = createMarker ( 0, 0, 0, "arrow", 1, 255, 0, 0, 0 ) Thx
  12. Wauw SolidSnake14 it works... What can i say, BIG THX.. you want a kiss to? This makes me happy.
  13. I do not give up easily, but spent many hours spent on and still not do what i want. Now does this resource it yet. I can not even buy something. Thx. Only gui opens now, other functions do not... Thx...
  14. Problem after the update last few days. The names / owner names of the houses from house_system from DakiLLa are gone. Any the same problem?
  15. I give it up, it does not work, enough time spent on this....
×
×
  • Create New...