Jump to content

SycroX

Members
  • Posts

    2,141
  • Joined

  • Last visited

  • Days Won

    15

Everything posted by SycroX

  1. يب يجي ولله function TopTime ( ) guiGridListClear( GUIEditor.gridlist[1] ) local g = getPlayersSortByaScore ( ) for i = 1, 30 do local aRow = guiGridListAddRow( GUIEditor.gridlist[1] ) if ( g [i] )then guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 1, ""..i.."-", false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 2, getPlayerName ( g [i]player ), false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 3, convertNumber( g [i]aTime ), false, false ) if TopColors[i] then guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 1, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 2, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 3, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) end end end end
  2. بردو ما يرتب
  3. function convertNumber ( number ) local formatted = number while true do formatted, k = string.gsub(formatted, "^(-?%d+)(%d%d%d)", '%1,%2') if ( k==0 ) then break end end return formatted end function getPlayersSortByaScore( ) local TopScore = { } for _, aPlayer in next, getElementsByType 'player' do aTime = getElementData ( aPlayer, 'PlayTime' ) or 0 player = aPlayer table.insert (TopScore, {player, aTime}) end table.sort( TopScore, function( a, b ) return( tonumber( a.aTime ) or 0 ) > ( tonumber( b.aTime ) or 0 ) end ) return TopScore end function TopTime ( ) guiGridListClear( GUIEditor.gridlist[1] ) local g = getPlayersSortByaScore ( ) for i = 1, 30 do local aRow = guiGridListAddRow( GUIEditor.gridlist[1] ) if ( g [ i ] )then guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 1, ""..i.."-", false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 2, getPlayerName ( g [ i ].player ), false, false ) guiGridListSetItemText( GUIEditor.gridlist[1], aRow, 3, convertNumber( g [ i ].aTime ), false, false ) if TopColors[i] then guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 1, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 2, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) guiGridListSetItemColor (GUIEditor.gridlist[1], aRow, 3, TopColors[i][1], TopColors[i][2], TopColors[i][3] ) end end end end addEventHandler ( "onClientGUIChanged", GUIEditor.edit[1], function() guiGridListClear(GUIEditor.gridlist[1]) local name = guiGetText(GUIEditor.edit[1]) if name ~= "" then for id, player in ipairs(getElementsByType("player")) do if string.find(getPlayerName(player):gsub("#%x%x%x%x%x%x",""):lower(), name:lower()) then local row = guiGridListAddRow ( GUIEditor.gridlist[1] ) local r, g, b = math.random(100, 255), math.random(100, 255), math.random(100, 255) guiGridListSetItemText (GUIEditor.gridlist[1], row, 1, ""..id.."-", false, false ) guiGridListSetItemText (GUIEditor.gridlist[1], row, 2, getPlayerName(player):gsub("#%x%x%x%x%x%x",""), false, false ) guiGridListSetItemText (GUIEditor.gridlist[1], row, 3, getElementData(player,"PlayTime"), false, false ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 1, r, g, b ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 2, r, g, b ) guiGridListSetItemColor ( GUIEditor.gridlist[1], row, 3, r, g, b ) end end else guiGridListClear(GUIEditor.gridlist[1]) TopTime() end end ) المشكلة هي انو ما يرتب الأسامي وش الحلل
  4. localPlayer = getLocalPlayer() addEventHandler("onClientGUIClick", root, function() if source == BTN then setElementData(localPlayer, "AntiSink", true) end end) addEventHandler("onClientPlayerDamage", root, function() if getElementData(localPlayer, "AntiSink") == true then cancelEvent() end end)
  5. سلام عليكم انا جبت استضافة تيم السبيك السلفة اني لما اسوي له رستارت يقولي Failed to start the remote server. Error code: وش الحل
  6. كلو علي بعضو الطلب الأول setPedWalkingStyle التاني getElementData aclGroupAddObject
  7. اه يب يسحب مشكور جدا كروس حليت لي ازمة
  8. يعطي رتبة بس ما يسحب لما تروح الداتا منو
  9. فكرك ما جربتها :- مو شغالة
  10. سلام عليكم انا مسوي كود تحقق بلتايمر ابي اتحقق لو اللاعب معه داتا PoliceKing و لو معه يعطيه جروب في اي بي بس ما ظبتت الكود function CheakBest() for i, player in ipairs(getElementsByType("player")) do if getElementData(player, "PoliceKing") == true then local accountName = getAccountName(getPlayerAccount(player)) aclGroupAddObject (aclGetGroup("VIP"), "user."..accountName) else aclGroupRemoveObject (aclGetGroup("VIP"), "user."..accountName) end end end setTimer(CheakBest, 2000, 0, true)
  11. هههههه فهمتك انتا قصدك علي جيم مود حرب العصابات لوحة تغير اللاغت تقدر تسوي اول ما اللاعب يسجل فلسيرفر تظهر له اللوحة addEventHandler("onPlayerLogin", root, triggerClientEvent guiSetVisible
  12. جرب ملف بدل ملف سيرفر بهاد --Server --[[ *** *** *** *** *** *** *** *** * * *** *** *** *** ****** ****** ************* ************ ************* ***** ***** **** ************ ****** ****** ************** ****** ****** **** ********* ****** ****** **** ************* ******* ******* *** **** **** **** *** **** ******** ******* **** *** **** *** *** *** *** *** **** *** *** **** *** **** ******** **** *** **** *** *** **** *** ************** **** **** ** ************** **** *** **** **** **** *** **** *** *** *** *** *********** **** ********* *********** **** **** **** **** **** *** **** *** ******* *** *** ***** **** *** *** ***** ************* **** ******** *** **** *** ****** *** *** **** ***** *** *** **** ************** **** ******* *** **** *** ***** *** *** **** **** ******* ******* *** **** **** **** **** ****** ************* *** **** *** *** **** **** *********** **** **** *** **** **** ***** *********** --]] addEvent( 'ChangeSkin', true ) addEventHandler( 'ChangeSkin', root, function( Data ) if ( getElementType(source) == "player" ) then if (Data == 0) or not Data then cancelEvent() outputChatBox( 'Please Select a skin to change it !', source, 255,0,0, true) else setElementModel(source,tonumber(Data)) outputChatBox( 'Skin Changed seccessfully !', source, 0,255,0, true) end end end ) addEventHandler(onPlayerLogin, root, function() triggerClientEvent( 'openwindow', source) end)
  13. ما في شي هيك + لو تبي تسوي هيك سوي داتا لما اللاعب يقتل حد تزيد + 1 بعدها سوي جيب عدد الداتا الي مع اللاعب فلأخر الفنكشنات الي تحتاجها addEventHandler == "onPlayerWasted" setElementData getElementData
  14. addEventHandler("onPlayerChat", root, function () if ( isGuestAccount ( getPlayerAccount ( source ) ) ) then cancelEvent() outputChatBox ( "Please Login First !!", source, 255, 0, 0, true ) end end) addEventHandler("onPlayerCommand", root, function( cmd ) if cmd == "register" then cancelEvent() end end)
  15. هو يسوي بس مو فلمكان الي اباه
  16. السلام عليكم و رحمة الله و بركاته انا الحين ابي اسوي ماء في مكان بـ createWater المشكلة هي اني كل ما اجيب احدثيات الماء ما اللاقيه في مكانه و احيانا ما اللاقيه اصلن وش الحل
  17. مبدع ما شاء الله واصل يا وحش و ان شاء الله تكون من اوال المبرمجين
  18. تحيا مصر بعد كل ده يا عم كلها سنة او 2 و هتلاقي مفيش نت ولا كهرباء
  19. bindKey executeCommandHandler
  20. انتا أول مرة تعرف الشركة قالت من زمان
  21. مبدع + عندي اقتراح شوف سوي بدل سكرت لغة عربية و سكربت لغة انجليزي سوي سكربت واحد و خله يغير اللغة من السكربت نفسو
×
×
  • Create New...