Jump to content

Paplo

Members
  • Posts

    124
  • Joined

  • Last visited

Everything posted by Paplo

  1. Paplo

    help

    Solidsnake14 i want the all player wait 60 sc if any player bought how i can do that?
  2. Paplo

    help again

    any time dude is your script works?! yes ty
  3. Paplo

    help again

    thank you all for help me ^^ bye bey
  4. Paplo

    help again

    addEvent('ClientSyncSound',true) addEventHandler('ClientSyncSund',root, function ( ) guiSetEnabled ( GUIEditor.staticimage[2],false ) outputChatBox ( "* Wait 60 seconds", localPlayer, 255, 0, 0, true ) setTimer ( guiSetEnabled,60000,1,GUIEditor.staticimage[2],true ) if isElement ( sound ) then destroyElement ( sound ) sound = nil end sound = playSound ( "1.mp3", false ) end ) addEvent('s1',true) addEventHandler('s1',root, function ( ) if ( getTickCount ( ) - lastTick >= toWait ) then -- Calculate how long it passed since last used and compare with required time to wait. if isElement ( sound ) then destroyElement ( sound ) sound = nil end lastTick = getTickCount ( ) else sound = playSound ( "1.mp3", false ) end end ) i liked this way
  5. Paplo

    help again

    ok i will if player click at image server says wait 60 sc can do this?
  6. Paplo

    help again

    i hate this way can i use getTickCount ? its very simple setTimer ( function() guiSetEnabled( element, false ) end, 60000, 1 ) element: the picture what you want to disable for 60 seconds i need to disable triggerServerEvent('SyncSound',localPlayer) not the picture
  7. Paplo

    help again

    i hate this way can i use getTickCount ?
  8. Paplo

    help again

    But if the click players on the picture at the same time will sound twice Is there a way to make it waits 60 seconds if the first player click and then click the second player To hear the sound of the server for the first player and server says to the second to wait 60 seconds ?
  9. Paplo

    help again

    addEvent('s1',true) addEventHandler('s1',root, function ( ) if isElement ( sound ) then destroyElement ( sound ) sound = nil end sound = playSound ( "1.mp3", false ) end ) Prestege ! i change name for event and work it thank you ^^
  10. Paplo

    help again

    i don't know i say Probably I will try tomorrow when wakes up my brother
  11. Paplo

    help again

    Perhaps the player that compresses the image does not hear sound, but other players hear the sound i dont know : /
  12. Paplo

    help again

    meta "Paplo" version="2" type="script" />
  13. Paplo

    help again

    element playSound ( string soundPath, [ bool looped = false ] ) Read the wiki . @ Paplo: debugscript 3 oh lol all time fasle @Paplo: what is the debug in Console? write debugscript 3 in F8 "Console" false = That works once a sound and then does not work true = The sound becomes repeated whenever ended true?
  14. Paplo

    help again

    element playSound ( string soundPath, [ bool looped = false ] ) Read the wiki . @ Paplo: debugscript 3 not have error But I do not hear the sound Why?
  15. Paplo

    help again

    addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end )
  16. Paplo

    help again

    end or ")" The same thing who told you the end & ")" is same thing? end is for: function if for thank you for knowing ^^
  17. Paplo

    help again

    client local lastTick = 0 local toWait = 20000 local Group = { { 100000 }, } addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.staticimage[2] ) then local money = 0 if ( source == GUIEditor.staticimage[2] ) then money = Group[1][1] end if ( getTickCount ( ) - lastTick >= toWait ) then if ( getPlayerMoney ( ) >= tonumber ( money ) ) then triggerServerEvent ( 'sound1', money ) triggerServerEvent ( 'test2', ) outputChatBox ( ' the sound has started', 0, 255, 0 ) lastTick = getTickCount ( ) else outputChatBox ( 'you dont have money', 255, 0, 0 ) end else outputChatBox ( "you must wait 60 sc to use again", 255, 0, 0 ) end end end ) addEvent("test", true) addEventHandler("test",getRootElement(), function() sound = playSound ( "1.mp3", false ) end) server addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end end like this : / ?
  18. Paplo

    help again

    end or ")" The same thing
  19. Paplo

    help again

    end to addEventHandler and end to function ()
  20. Paplo

    help again

    server addEvent("test", true) addEventHandler("test",getRootElement(), function () sound = playSound ( "1.mp3", false ) end end client local lastTick = 0 local toWait = 20000 local Group = { { 100000 }, } addEventHandler ( "onClientGUIClick", guiRoot, function ( ) if ( source == GUIEditor.staticimage[2] ) then local money = 0 if ( source == GUIEditor.staticimage[2] ) then money = Group[1][1] end if ( getTickCount ( ) - lastTick >= toWait ) then if ( getPlayerMoney ( ) >= tonumber ( money ) ) then triggerServerEvent ( 'sound1', money ) triggerServerEvent ( 'test', money ) outputChatBox ( ' the sound has started', 0, 255, 0 ) lastTick = getTickCount ( ) else outputChatBox ( 'you don't have money', 255, 0, 0 ) end else outputChatBox ( "you must wait 60 sc to use again", 255, 0, 0 ) end
  21. Paplo

    help again

    example plz !
  22. Paplo

    help again

    Did not bring anything new !
×
×
  • Create New...