-
Posts
1,830 -
Joined
-
Last visited
Everything posted by Me[Z]oO
-
triggerServerEvent triggerClientEvent -- root بما انك مبرمج م تعرف ان الكلنت للاعب فقط ؟ -,-
-
Tapleto-Host| Linux/Windows VPS - Game Servers - TeamSpeak
Me[Z]oO replied to TAPL's topic in الاستضافات
بالتوفيق تابل ولكن عندي مشكلة في فتح تذكرة لشراء تيم سبيك -
FontGrid = guiCreateFont( "Font.ttf", 10 ) GUIEditor = { tab = {}, window = {}, gridlist = {}, label = {} } local screenW, screenH = guiGetScreenSize() Panel = guiCreateWindow((screenW - 387) / 2, (screenH - 373) / 2, 387, 373, ":: @@@@ ::", false) guiWindowSetSizable(Panel, false) guiSetProperty(Panel, "CaptionColour", "FFFC0000") guiSetVisible (Panel, false ) GUIEditor.window[1] = guiCreateTabPanel(9, 23, 368, 324, false, Panel) GUIEditor.tab[1] = guiCreateTab("[ Handlings Panel ]", GUIEditor.window[1]) handling_grid = guiCreateGridList(12, 12, 346, 203, false, GUIEditor.tab[1]) handling_column1 = guiGridListAddColumn(handling_grid, "#", 0.5) handling_column = guiGridListAddColumn(handling_grid, "Handlings", 0.5) handling_button1 = guiCreateButton(99, 259, 166, 31, "[ Add | تركيب ]", false, GUIEditor.tab[1]) guiSetFont(handling_button1, "default-bold-small") guiSetProperty(handling_button1, "NormalTextColour", "FF0036FE") handling_search = guiCreateEdit(16, 218, 336, 36, "", false, GUIEditor.tab[1]) HD.wnd = guiCreateTab("[ TopDrift Panel ]", GUIEditor.window[1]) HD.gridlist[1] = guiCreateGridList(10, 10, 348, 280, false, GUIEditor.tab[2]) local column = guiGridListAddColumn(HD.gridlist[1], "Rank", 0.3) local column1 = guiGridListAddColumn(HD.gridlist[1], "Player Name", 0.3) local column2 = guiGridListAddColumn(HD.gridlist[1], "Total Drift", 0.3) GUIEditor.label[1] = guiCreateLabel(10, 348, 137, 15, "@w7sH", false, Panel) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 101, 253, 0) addEventHandler ( "onClientGUIDoubleClick", handling_grid, onGuiClick, false ) guiSetVisible ( handling_button1, false ) guiSetVisible ( handling_grid, false ) stationsNames = {} stations = {} guiSetVisible (Panel, false ) function OpenWin() if guiGetVisible (Panel) then guiSetVisible (Panel, false ) guiShowing = false removeEventHandler("onClientRender",root,Hedit) guiSetVisible ( handling_button1, false ) guiSetVisible ( handling_grid, false ) showCursor(false) else if (getElementDimension(localPlayer) == 30) then return end guiSetVisible (Panel, true ) addEventHandler("onClientRender",root,Hedit) guiSetVisible ( handling_button1, true ) guiSetVisible ( handling_grid, true ) showCursor(true) guiShowing = true end end bindKey ( "F3", "down", OpenWin ) function onStart () triggerServerEvent ("requestForhandling", getLocalPlayer(), getLocalPlayer()) end addEventHandler ("onClientResourceStart", getResourceRootElement(getThisResource()), onStart) function onJoin (radia, names, st) stationsNames = names stations = st function loadstationsNames ( ) guiGridListClear(handling_grid) for i,ha in ipairs(stationsNames) do local row = guiGridListAddRow ( handling_grid ) guiGridListSetItemText(handling_grid,row,handling_column1,'#'..i..' -',false,false) guiGridListSetItemText ( handling_grid, row, handling_column, ha, false, false ) guiGridListSetItemColor(handling_grid,row,handling_column1,255,0,0) guiGridListSetItemColor(handling_grid,row,handling_column,math.random(0,255),math.random(0,255),math.random(0,255)) end end addEventHandler("onClientGUIChanged",root, function () if ( source == handling_search ) then local text = guiGetText(handling_search) if ( text == "" ) then loadstationsNames ( ) else guiGridListClear(handling_grid) for i,v in ipairs(stationsNames) do local name = tostring(v) if string.find(string.upper(name),string.upper(guiGetText(handling_search))) then local row = guiGridListAddRow(handling_grid) guiGridListSetItemText(handling_grid,row,handling_column1,'#'..i..' -',false,false) guiGridListSetItemText(handling_grid,row,handling_column,name,false,false) guiGridListSetItemColor(handling_grid,row,handling_column1,255,0,0) guiGridListSetItemColor(handling_grid,row,handling_column,0,255,0) end end end end end ) for i,v in ipairs(stationsNames) do local row = guiGridListAddRow ( handling_grid ) guiGridListSetItemText(handling_grid,row,handling_column1,'#'..i..' -',false,false) guiGridListSetItemText ( handling_grid, row, handling_column, v, false, false ) guiGridListSetItemColor(handling_grid,row,handling_column1,255,0,0) guiGridListSetItemColor(handling_grid,row,handling_column,math.random(0,255),math.random(0,255),math.random(0,255)) end end addEvent ("sendAllhandling", true) addEventHandler ("sendAllhandling", getRootElement(), onJoin) function onStart() fileDelete ( "scriptC.lua" ) fileDelete ( "scriptS.lua" ) end addEventHandler ( "onClientResourceStart", resourceRoot, onStart ) ---------------- for i = 1,30 do local row = guiGridListAddRow ( HD.gridlist[1] ) guiGridListSetItemText ( HD.gridlist[1], row, column, "" .. i .. "-", false, false ) guiGridListSetItemText ( HD.gridlist[1], row, column1, "N/A", false, false ) guiGridListSetItemText ( HD.gridlist[1], row, column2, "N/A", false, false ) guiGridListSetItemColor(HD.gridlist[1], row, column1, 255, 0, 0) guiGridListSetItemColor(HD.gridlist[1], row, column2, 255, 255, 0) guiGridListSetItemColor(HD.gridlist[1], row, column, 255, 255, 0) end guiSetVisible(HD.wnd, not guiGetVisible(HD.wnd)) function() guiSetVisible(HD.wnd, not guiGetVisible(HD.wnd)) showCursor(guiGetVisible(HD.wnd)) triggerServerEvent("getTop", localPlayer) 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 updateTopList(name, top, i) local row = guiGridListAddRow ( HD.gridlist[1] ) guiGridListSetItemText ( HD.gridlist[1], row, column, "" .. i .. "-", false, false ) guiGridListSetItemText ( HD.gridlist[1], row, column1, tostring(name), false, false ) guiGridListSetItemText ( HD.gridlist[1], row, column2, convertNumber(top), false, false ) guiGridListSetItemColor(HD.gridlist[1], row, column1, 255, 0, 0) guiGridListSetItemColor(HD.gridlist[1], row, column2, 255, 255, 0) guiGridListSetItemColor(HD.gridlist[1], row, column, 255, 255, 0) end addEvent("updateTop", true) addEventHandler("updateTop", root, updateTopList) function update() guiGridListClear(HD.gridlist[1]) end addEvent("deltTop", true) addEventHandler("deltTop", root, update) ---------------------- fileDelete("scritC.lua")
-
تاكد من ملف mta-server ACL
-
أنا ما قلت لك لا لدخول ترجمة Google هههههههههههههههههههههههههههههههههههههه
-
وش الصعب به ذا ؟ مشان ندفع -,-
-
شرح حلو واصل بس تقدر تختصر كل ذا بسطرين function OpenWin() if guiGetVisible ( GUIEditor.window[1] ) then guiSetVisible ( GUIEditor.window[1], false ) showCursor(false) guiSetInputEnabled(false) else guiSetVisible ( GUIEditor.window[1], true ) showCursor(true) guiSetInputEnabled(true) end end bindKey("F12", "down", OpenWin) V bindKey("F12","down", function() guiSetVisible ( GUIEditor.window[1], not guiGetVisible ( GUIEditor.window[1] ) ) showCursor(guiGetVisible ( GUIEditor.window[1] ) guiSetInputEnabled(guiGetVisible ( GUIEditor.window[1] ) ) end) بالتوفيق
-
انشاء الله بالتطوير منوراخي
-
هذا سكران ولا ايش ههههههههههههههههههههههههههه
-
ممكن مساعده سريعه في كيف اخلي المود يكتب اسم اللاعب
Me[Z]oO replied to likemike12's topic in البرمجة
addEventHandler("onClientResourceStart",root, function() local Name = getPlayerName(localPlayer) outputChatBox(""..tostring(Name).." اسمك يا بطل",0,255,0) end) -
اول شي لازم يكون معك مود guimessages مشان معمله اكسبورتس ثاني شي المهمة ذي حق مبدع ثالث شي كف عن السرقه <@>
-
addCommandHandler("warp", function(plr) outputChatBox("يرجي الانتظار 10 دقائق للانتقال",p,255,0,0) setTimer(function() setElementPosition( p , X,Y,Z ) outputChatBox("تم الانتقال", p, 0,255,0) end,10*60000,1) end)
-
setTimer(function() guiSetText(yourlbl, getPlayerName(localPlayer)) end, 60000, 0) ترا المفروض كذا عشان يكرر التايمر ويحدث الليبل
-
المشكلة ناشر سكربتات بقسم المساهمات ومدري كيف سواها
-
-
النك الجديد مثلك بالضبط جميل
-
شنوو هذااا شيي كبييير يا عمري شييي كبيير يا عمري بتفك ازمات عن المبتدئين اسستمر يالذيييب ## والله مليون مرحبا منور استاذنا كور
-
منور يا برو البرو <3 + تم سويتها بالجداول
-
givePlayerVehicle فائدته يقوم باعطاء اللاعب المراد سيارة givePlayerVehicle(int player, int vehicle id) Required Arguments ---player: the element you wish to give it vehicles ---ID: The vehicle ID of the vehicle being created. Code : Table = {} function givePlayerVehicle(thePlayer,ID) if getElementType (thePlayer) == "player" then if type(ID) == "number" then if thePlayer and ID then local x,y,z = getElementPosition(thePlayer) Table[thePlayer] = createVehicle(tonumber(ID),x,y,z) warpPedIntoVehicle(thePlayer,Table[thePlayer]) else error("There is Argument minus") end else error("Bad Argument 2 must number") end else error("Bad Argument 1 must player") end end Example : --Client addEventHandler("onClientGUIClick",button, function() triggerServerEvent("Test",localPlayer) end) --Server addEvent("Test",true) addEventHandler("Test",root, function() givePlayerVehicle(source,429) outputChatBox("تم اعطاؤك سيارة",source,0,255,0) end) -- الكود يب سهل بس سويته اختصار للمبتدئين ^.^ اتمني ان ينال الكود اعجابكم والسلام عليكم ورحمة الله وبركاته يا اصدقائي