
SycroX
Members-
Posts
2,141 -
Joined
-
Last visited
-
Days Won
15
Everything posted by SycroX
-
يب يجي ولله 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
-
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 ) المشكلة هي انو ما يرتب الأسامي وش الحلل
-
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)
-
سلام عليكم انا جبت استضافة تيم السبيك السلفة اني لما اسوي له رستارت يقولي Failed to start the remote server. Error code: وش الحل
-
كلو علي بعضو الطلب الأول setPedWalkingStyle التاني getElementData aclGroupAddObject
-
اه يب يسحب مشكور جدا كروس حليت لي ازمة
-
يعطي رتبة بس ما يسحب لما تروح الداتا منو
-
سلام عليكم انا مسوي كود تحقق بلتايمر ابي اتحقق لو اللاعب معه داتا 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)
-
هههههه فهمتك انتا قصدك علي جيم مود حرب العصابات لوحة تغير اللاغت تقدر تسوي اول ما اللاعب يسجل فلسيرفر تظهر له اللوحة addEventHandler("onPlayerLogin", root, triggerClientEvent guiSetVisible
-
جرب ملف بدل ملف سيرفر بهاد --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)
-
ما في شي هيك + لو تبي تسوي هيك سوي داتا لما اللاعب يقتل حد تزيد + 1 بعدها سوي جيب عدد الداتا الي مع اللاعب فلأخر الفنكشنات الي تحتاجها addEventHandler == "onPlayerWasted" setElementData getElementData
-
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)
-
مبدع ما شاء الله واصل يا وحش و ان شاء الله تكون من اوال المبرمجين
-
#طلبآت تصميم آلآسماء على شكل ثري دي او مقارب له
SycroX replied to i,xAhmed's topic in Arabic / العربية
#x1AhMeD.K1Ler,-07 -
تحيا مصر بعد كل ده يا عم كلها سنة او 2 و هتلاقي مفيش نت ولا كهرباء
-
انتا أول مرة تعرف الشركة قالت من زمان
-
مبدع + عندي اقتراح شوف سوي بدل سكرت لغة عربية و سكربت لغة انجليزي سوي سكربت واحد و خله يغير اللغة من السكربت نفسو
-
اشترك في فودا فون احسن