iiv03 Posted August 11, 2019 Share Posted August 11, 2019 (edited) هلا, معلش شباب انا سويت ذا كود ب سيرفر سايد حق اغاني لو كتبت شي بتسمع شي بس لو كتبته مرتين الأمر راح يقولك انتضر .. Please Wait addCommandHandler("cena", function (player, cmd, sound) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then triggerClientEvent("onClientPlaySound", player, sound) setTimer(function() outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) end,3700,1) end end ) Edited August 11, 2019 by liwahadri Link to comment
Abdul KariM Posted August 11, 2019 Share Posted August 11, 2019 استخدم التيبل مع التايمر وسوي تحقق اذا كان التايمر موجود سوي ريتورن Link to comment
Bassam*Syria Posted August 11, 2019 Share Posted August 11, 2019 السلام عليكم و رحمة الله و بركاته addCommandHandler("cena", function (player, cmd, sound) if isTimer(TimerTest) then return outputChatBox("test",getRootElement(),255,255,255, true) end if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then triggerClientEvent("onClientPlaySound", player, sound) TimerTest = setTimer(function() outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) end,3700,1) end end ) addCommandHandler("stopcena", -- امر اطفاء الاغنية او الصوت الي شغلته function (player,cmd, sound) if isTimer(TimerTest) then -- تحقق لو التايمر الي فوق شغال ولا خلص killTimer ( TimerTest ) triggerClientEvent("onClientPlaySound", player, sound) -- سويه ذا انت عشان يطفي الاغنيه outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF 222222",getRootElement(),255,255,255, true) end end ) Link to comment
iiv03 Posted August 11, 2019 Author Share Posted August 11, 2019 5 hours ago, Bassam*Syria said: السلام عليكم و رحمة الله و بركاته addCommandHandler("cena", function (player, cmd, sound) if isTimer(TimerTest) then return outputChatBox("test",getRootElement(),255,255,255, true) end if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then triggerClientEvent("onClientPlaySound", player, sound) TimerTest = setTimer(function() outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) end,3700,1) end end ) addCommandHandler("stopcena", -- امر اطفاء الاغنية او الصوت الي شغلته function (player,cmd, sound) if isTimer(TimerTest) then -- تحقق لو التايمر الي فوق شغال ولا خلص killTimer ( TimerTest ) triggerClientEvent("onClientPlaySound", player, sound) -- سويه ذا انت عشان يطفي الاغنيه outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF 222222",getRootElement(),255,255,255, true) end end ) لا مو قصدي كذا قصدي اذا كرر مرتين بيجيه Please Wait مثلن لو كتبه مره الاول والمره ثاني ينتضر دقيقه بعدين لو خلصت دقيقه يمديه يكتبه مره ثانيه Link to comment
Bassam*Syria Posted August 11, 2019 Share Posted August 11, 2019 انا مسويها لك اخوي خذ الي فوق بس وجرب بيطلع لك فشات كلمى test addCommandHandler("cena", function (player, cmd, sound) if isTimer(TimerTest) then return outputChatBox("test",getRootElement(),255,255,255, true) end if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then triggerClientEvent("onClientPlaySound", player, sound) TimerTest = setTimer(function() outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) end,3700,1) end end ) 1 Link to comment
+Source|> Posted August 11, 2019 Share Posted August 11, 2019 10 hours ago, liwahadri said: هلا, معلش شباب انا سويت ذا كود ب سيرفر سايد حق اغاني لو كتبت شي بتسمع شي بس لو كتبته مرتين الأمر راح يقولك انتضر .. Please Wait addCommandHandler("cena", function (player, cmd, sound) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then triggerClientEvent("onClientPlaySound", player, sound) setTimer(function() outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) end,3700,1) end end ) جرب ذا timeTaple = { }; addCommandHandler("cena", function (player, cmd, sound) if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup("Donation")) then if isTimer( timeTaple[player] ) then outputChatBox('please wait', player) return end triggerClientEvent("onClientPlaySound", player, sound) outputChatBox("#66CC99[SOUNDS]#FFFFFF : "..getPlayerName(player).. "#FFFFFF AND HIS NAME IS CENAA!",getRootElement(),255,255,255, true) timeTaple[player] = setTimer( function() end, 3700, 1 ) end end ) 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now