#,+( _xiRoc[K]; >

Members
  • Content count

    1,605
  • Joined

  • Last visited

  • Days Won

    5

#,+( _xiRoc[K]; > last won the day on June 10

#,+( _xiRoc[K]; > had the most liked content!

Community Reputation

184 Celebrity

About #,+( _xiRoc[K]; >

  • Rank
    Loc

Details

  • Gang
    Straw Hat Crew
  • Location
    UMM

Recent Profile Visitors

3,343 profile views
  1. طلب كود بسيط

    local delayTable = {}; local chatDelay = 5 function clearChat(player) local accountname = getAccountName(getPlayerAccount(player)) if hasObjectPermissionTo(player, 'command.mute', true) then if getTickCount()-(delayTable[player] or 0)>chatDelay*1000 then outputChatBox(' ') outputChatBox(getPlayerName(player) .. '#ffffff قام بمسح الشات', root, 0, 255, 255, true) delayTable[player] = getTickCount() else outputChatBox('Please wait '..math.floor((chatDelay*1000-(getTickCount()-delayTable[player]))/1000)..' Seconds', player, 255, 0, 0, true) end end end addCommandHandler('Clear', clearChat)
  2. مساعدة في وضع تايمر علي الزر

    غير السورس كود لـ: guiEnable = {}; local types = {['second']=1000, ['minute']=1000*60, ['hour']=1000*60*60, ['ms']=1}; addEvent('onClientGUIDelayStart', true); addEvent('onClientGUIDelayEnd', true); function guiSetDelay(gui, delay) assert(getElementType(gui):find('gui-'), 'bad argument guiSetDelay @1 gui-element expected got '..(isElement(gui) and getElementType(gui) or type(gui))) assert(type(delay)=='table', 'bad argument guiSetDelay @2 table expected got '..type(delay)) local canContinue for key in pairs(types) do if delay[key] then canContinue = true; break end end if canContinue then guiSetEnabled(gui, false); guiEnable[gui] = {oldString = guiGetText(gui), element = gui} local ms = 0; for key, value in pairs(delay) do if types[key] then ms=ms+(types[key]*value) end end guiEnable[gui].timer = setTimer(function() guiSetEnabled(gui, true) if isTimer(guiEnable[gui].timer) then killTimer(guiEnable[gui].timer);guiSetText(gui,guiEnable[gui].oldString);guiEnable[gui]=nil;end; triggerEvent('onClientGUIDelayEnd', guiEnable[gui].element) local newTable = {}; for _, value in pairs(guiEnable) do table.insert(newTable, value) end if #newTable == 0 and isTimer(timerCheck) then killTimer(timerCheck) end end, ms, 1) if guiEnable[gui].timer then timer() if not isTimer(timerCheck) then timerCheck = setTimer(timer, 1000, 0);end; setTimer(function() local details = getTimerDetails(guiEnable[gui].timer);guiSetText(guiEnable[gui].element, msToString(details)); end, 50, 1) triggerEvent('onClientGUIDelayStart', guiEnable[gui].element) end end end function timer() for _, value in pairs(guiEnable) do if isTimer(value.timer) then local details = getTimerDetails(value.timer);guiSetText(value.element, msToString(details)); end end end function msToString(ms) if ms and type(ms)=='number' then local second = (ms and (ms>=1000 and ms) or 1000)/1000 local minute = second/60 return ('%02d:%02d:%02d'):format(math.floor(minute/24), math.floor(minute%60), math.floor(second%60)) end return false end اذا تبي تضيف شي عندما يبدء المؤقت addEventHandler('onClientGUIDelayStart', resourceRoot, function() --Your code end) واذا تبي تضيف شي عندما ينتهي المؤقت addEventHandler('onClientGUIDelayEnd', resourceRoot, function() --Your code end)
  3. مساعدة في وضع تايمر علي الزر

    سويت لك فنكشن مفيد يساعدك guiEnable = {}; local types = {['second']=1000, ['minute']=1000*60, ['hour']=1000*60*60, ['ms']=1}; function guiSetDelay(gui, delay) assert(getElementType(gui):find('gui-'), 'bad argument guiSetDelay @1 gui-element expected got '..(isElement(gui) and getElementType(gui) or type(gui))) assert(type(delay)=='table', 'bad argument guiSetDelay @2 table expected got '..type(delay)) local canContinue for key in pairs(types) do if delay[key] then canContinue = true; break end end if canContinue then guiSetEnabled(gui, false); guiEnable[gui] = {oldString = guiGetText(gui), element = gui} local ms = 0; for key, value in pairs(delay) do if types[key] then ms=ms+(types[key]*value) end end guiEnable[gui].timer = setTimer(function() guiSetEnabled(gui, true) if isTimer(guiEnable[gui].timer) then killTimer(guiEnable[gui].timer);guiSetText(gui,guiEnable[gui].oldString);guiEnable[gui]=nil;end; local newTable = {}; for _, value in pairs(guiEnable) do table.insert(newTable, value) end if #newTable == 0 and isTimer(timerCheck) then killTimer(timerCheck) end end, ms, 1) timer(true) if not isTimer(timerCheck) then timerCheck = setTimer(timer, 1000, 0);end; setTimer(function() local details = getTimerDetails(guiEnable[gui].timer);guiSetText(guiEnable[gui].element, msToString(details)); end, 50, 1) end end function timer(b) for _, value in pairs(guiEnable) do if isTimer(value.timer) then local details = getTimerDetails(value.timer);guiSetText(value.element, msToString(details)); end end end function msToString(ms) if ms and type(ms)=='number' then local second = (ms and (ms>=1000 and ms) or 1000)/1000 local minute = second/60 return ('%02d:%02d:%02d'):format(math.floor(minute/24), math.floor(minute%60), math.floor(second%60)) end return false end كودك يصير كذا : elseif ( source == btn.mp5 ) then guiSetDelay(source, {ms = 300000}) playSound("open.wav") triggerServerEvent('giveWeapon_', localPlayer , 0 , 29, 1000 , "MP5" )
  4. مشكلة بسيطة

    -- server setTimer(function() TopTime = {} for _, player in ipairs(getElementsByType('player')) do table.insert(TopTime, {name = getPlayerName(player), time = {timeString = getElementData(player, 'PlayTime'), realTime = stringTime(getElementData(player, 'PlayTime'))}}) end table.sort(TopTime, function(a, b) return(tonumber(a.time['realTime']) or 0)>(tonumber(b.time['realTime']) or 0) end) triggerClientEvent(root, 'getTopTime', root, TopTime) end, 1000, 0) -- client addEvent('getTopTime', true) addEventHandler('getTopTime', root, function(TopTime) guiGridListClear(gridlistTime) for k, v in ipairs(TopTime) do local row = guiGridListAddRow(gridlistTime) guiGridListSetItemText(gridlistTime, row , 1 , k .. '-' , false , false) guiGridListSetItemColor(gridlistTime , row , 1 , 255,255,0) guiGridListSetItemText(gridlistTime,row,2,TopTime[k].name:gsub('#%x%x%x%x%x%x',''),false,false) guiGridListSetItemColor(gridlistTime , row , 2 , 255,255,0) guiGridListSetItemText(gridlistTime,row,3,TopTime[k].time['timeString'],false,false) guiGridListSetItemColor(gridlistTime , row , 3 , 255,255,0) end end) function stringTime(v) local v = split(tostring(v),(':'):byte()); return tonumber(v[1]..v[2]..v[3]) end
  5. قريد ليست [مساعدة]

    --SERVER SIDE: function serial( ) if eventName == 'onResourceStart' then for k, v in ipairs(getElementsByType('player')) do setElementData(v, 'serial', getPlayerSerial(v)) end else setElementData(source, 'serial', getPlayerSerial(source)) end end addEventHandler('onResourceStart', resourceRoot, serial) addEventHandler('onPlayerJoin', root, serial) --CLIENT SIDE nonshowing = { ['my Serial'] = true, } function SetPlayersInGD(grid) if grid then if getElementType(grid) == 'gui-gridlist' then if guiGridListClear(grid) then for _, player in ipairs(getElementsByType('player')) do if not nonshowing[getPlayerSerial(player)] then local row = guiGridListAddRow(grid) guiGridListSetItemText(grid, row, 1, getPlayerName(player), false, false ) guiGridListSetItemText(grid, row, 2, getPlayerTime(player), false, false ) guiGridListSetItemColor(grid, 0, 1, 255, 0, 0, 255, true, false) guiGridListSetItemColor(grid, 0, 2, 0, 255, 0, 255, true, false) end end end end end end _getSerial = getPlayerSerial function getPlayerSerial(p) return (isElement(p) and getElementType(p) == 'player') and getElementData(p, 'serial') or _getSerial() end
  6. a question

    What are you trying to do ?
  7. a question

    put the full code so i can see the problem
  8. طلب كود مهم

  9. طلب مود

    شريرة
  10. طلب كود باند

    removeBan
  11. استفسار عن قريد ليست

    طيب حاول ..
  12. استفسار عن قريد ليست

    سو لوب للجدول وتحقق من كل قيمة في الجدول اذا كانت تساوي الكلام واذا كانت تساوي الكلام تحذفها من الجدول
  13. >>>>> الموضوع العام <<<<<

    hailo efry bady
  14. طلب بقريد ليست

    مافي مشكلة