
Paplo
Members-
Posts
124 -
Joined
-
Last visited
Everything posted by Paplo
-
any time dude is your script works?! yes ty
-
thank you all for help me ^^ bye bey
-
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
-
ok i will if player click at image server says wait 60 sc can do this?
-
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
-
i hate this way can i use getTickCount ?
-
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 ?
-
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 ^^
-
i don't know i say Probably I will try tomorrow when wakes up my brother
-
Perhaps the player that compresses the image does not hear sound, but other players hear the sound i dont know : /
-
meta "Paplo" version="2" type="script" />
-
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?
-
element playSound ( string soundPath, [ bool looped = false ] ) Read the wiki . @ Paplo: debugscript 3 not have error But I do not hear the sound Why?
-
addEvent("test2", true) addEventHandler("test2",getRootElement(), function () triggerClientrEvent ( 'test' ) end )
-
end or ")" The same thing who told you the end & ")" is same thing? end is for: function if for thank you for knowing ^^
-
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 : / ?
-
end to addEventHandler and end to function ()
-
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