Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ahmed Ly

  1. ادخل علي ملف mtaserver.conf وبعدين دور علي <enablesd>31,32</enablesd> وبعدين احذف 31,32 وبعدين طفي سيرفر و شغله من جديد
  2. https://wiki.multitheftauto.com/wiki/IsTextInGridList
  3. https://forum.multitheftauto.com/forum/137-دروس-في-البرمجة/
  4. GUIEditor = { button = {}, edit = {}, checkbox = {}, label = {} } GUIEditor.button[1] = guiCreateButton(577, 515, 137, 52, "Login", false) guiSetFont(GUIEditor.button[1], "default-bold-small") guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") GUIEditor.button[2] = guiCreateButton(729, 520, 143, 41, "Register an Account", false) guiSetFont(GUIEditor.button[2], "default-bold-small") guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFAAAAAA") GUIEditor.button[3] = guiCreateButton(439, 521, 123, 40, "Play as Guest", false) guiSetFont(GUIEditor.button[3], "default-bold-small") guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFAAAAAA") GUIEditor.label[1] = guiCreateLabel(613, 369, 82, 18, "Account Name", false) guiSetFont(GUIEditor.label[1], "default-bold-small") GUIEditor.label[2] = guiCreateLabel(602, 421, 103, 15, "Account Password", false) guiSetFont(GUIEditor.label[2], "default-bold-small") GUIEditor.label[3] = guiCreateLabel(573, 481, 146, 17, "Remember Account Name", false) guiSetFont(GUIEditor.label[3], "default-bold-small") GUIEditor.checkbox[1] = guiCreateCheckBox(552, 481, 15, 14, "", false, false) guiSetFont(GUIEditor.checkbox[1], "default-bold-small") GUIEditor.edit[1] = guiCreateEdit(546, 387, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[1], 0.82) GUIEditor.edit[2] = guiCreateEdit(546, 440, 204, 28, "", false) guiSetAlpha(GUIEditor.edit[2], 0.82) addEventHandler("onClientGUIClick",root, function ( ) if source == GUIEditor.button[1] then local User = guiGuiText (GUIEditor.edit[1]) local Password = guiGetText (GUIEditor.edit[2]) if User ~= "" or password ~= "" then triggerServerEvent("onPlayerTryingToLogin",localPlayer,User,Password) end end end )
  5. طيب الاعب هو مو مسجل دخوله كيف بتعطيه الاكوانت داتا
  6. DGS = exports.dgs showCursor(true) cmd = DGS:dgsDxCreateCmd(299, 167, 451, 427,false,false,false,false,false,false,tocolor(113, 206, 106, 62)) DGS:dgsDxGUISetVisible(cmd,true) setTimer(function() local x,y = interpolateBetween(200,100,0,299,167,0,(getTickCount()-start)/3000,"OutElastic") DGS:dgsMoveTo(cmd,x,y,false,false,"OutQuad",300) end,310,1) start = getTickCount()
  7. https://forum.multitheftauto.com/forum/137-دروس-في-البرمجة/
  8. https://wiki.multitheftauto.com/wiki/Dgs https://wiki.multitheftauto.com/wiki/DgsDxCreateButton
  9. Menu = { ["Button_1"] = true, ["Button_2"] = false, ["Button_3"] = false, ["Button_4"] = false } UIEditor = { button = {} } GUIEditor.button[1] = guiCreateButton(1175, 148, 112, 37, "Skin 1", false) GUIEditor.button[2] = guiCreateButton(1175, 310, 112, 37, "Skin 2", false) GUIEditor.button[3] = guiCreateButton(1175, 472, 112, 37, "Skin 3", false) GUIEditor.button[4] = guiCreateButton(1175, 634, 112, 37, "Skin 4", false) GUIEditor.button[5] = guiCreateButton(1000, 470, 112, 37, "Skin 5", false) GUIEditor.button[7] = guiCreateButton(1264, 718, 98, 40, "CLOSE", false) GUIEditor.button[10] = guiCreateButton(1129, 718, 98, 40, "Next", false) guiSetVisible ( GUIEditor.button[1] , false ) guiSetVisible ( GUIEditor.button[2] , false ) guiSetVisible ( GUIEditor.button[3] , false ) guiSetVisible ( GUIEditor.button[4] , false ) guiSetVisible ( GUIEditor.button[5] , false ) guiSetVisible ( GUIEditor.button[7] , false ) guiSetVisible ( GUIEditor.button[9] , false ) local dxfont0_ForzaBlack = dxCreateFont("fonts/ForzaBlack.otf", 15) local sx,sy = guiGetScreenSize() local px,py = 1366,768 -- your resolution local x,y = (sx/px), (sy/py) function CosasDX() if Menu["Button_1"] == true then dxDrawRectangle(x*1100, y*0, x*782, y*1200, tocolor(254, 254, 254, 255), false) dxDrawRectangle(x*1100, y*0, x*782, y*47, tocolor(19, 19, 19, 255), false) dxDrawText("Infernus Skins", x*1190, y*0, x*1280, y*47, tocolor(123, 104, 238, 255), 1.00, dxfont0_ForzaBlack, "center", "center", false, false, false, false, false) dxDrawImage(x*1165, y*60, x*133, y*87, "images/image.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) elseif Menu["Button_2"] == true then dxDrawRectangle(x*1100, y*0, x*782, y*1200, tocolor(254, 254, 254, 255), false) dxDrawRectangle(x*1100, y*0, x*782, y*47, tocolor(19, 19, 19, 255), false) dxDrawText("Infernus Skins", x*1190, y*0, x*1280, y*47, tocolor(123, 104, 238, 255), 1.00, dxfont0_ForzaBlack, "center", "center", false, false, false, false, false) dxDrawImage(x*1165, y*222, x*133, y*87, "images/image2.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) elseif Menu["Button_3"] == true then dxDrawRectangle(x*1100, y*0, x*782, y*1200, tocolor(254, 254, 254, 255), false) dxDrawRectangle(x*1100, y*0, x*782, y*47, tocolor(19, 19, 19, 255), false) dxDrawText("Infernus Skins", x*1190, y*0, x*1280, y*47, tocolor(123, 104, 238, 255), 1.00, dxfont0_ForzaBlack, "center", "center", false, false, false, false, false) dxDrawImage(x*1165, y*383, x*133, y*87, "images/image3.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) elseif Menu["Button_4"] == true then dxDrawRectangle(x*1100, y*0, x*782, y*1200, tocolor(254, 254, 254, 255), false) dxDrawRectangle(x*1100, y*0, x*782, y*47, tocolor(19, 19, 19, 255), false) dxDrawText("Infernus Skins", x*1190, y*0, x*1280, y*47, tocolor(123, 104, 238, 255), 1.00, dxfont0_ForzaBlack, "center", "center", false, false, false, false, false) dxDrawImage(x*1165, y*544, x*133, y*87, "images/image4.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) end end addEventHandler("onClientRender", root,CosasDX) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[10] then Menu["Button_1"] = false Menu["Button_2"] = true guiSetVisible(GUIEditor.button[1],false) guiSetVisible(GUIEditor.button[2],true) elseif source == GUIEditor.button[2] then Menu["Button_2"] = false Menu["Button_3"] = true guiSetVisible(GUIEditor.button[2],false) guiSetVisible(GUIEditor.button[3],true) elseif source == GUIEditor.button[3] then Menu["Button_3"] = false Menu["Button_4"] = true guiSetVisible(GUIEditor.button[3],false) guiSetVisible(GUIEditor.button[4],true) elseif source == GUIEditor.button[4] then Menu["Button_4"] = false Menu["Button_1"] = true guiSetVisible(GUIEditor.button[4],false) guiSetVisible(GUIEditor.button[1],true) end end ) function open() addEventHandler ( "onClientRender", root, CosasDX ) guiSetVisible ( GUIEditor.button[1] , true ) guiSetVisible ( GUIEditor.button[7] , true ) guiSetVisible ( GUIEditor.button[10] , true ) showCursor(true) end bindKey("F1", "both", open)
  10. كودي يشتغل و مجربه
  11. m1 = createMarker(x,y,z, "cylinder", 1.5,255,6,0) addEventHandler("onMarkerHit",root, function (player) if getElementType(player) == "player" and source == m1 then if not isPedInVehicle(player) then setTimer(function () setElementPosition (player ,1722.58337, -1629.32336, 20.21363) setElementInterior (player , 0 ) setElementDimension (player, 0 ) outputChatBox ( "لقد إنتهى وقت اللعب !!!",player, 255,0,0,true) end,60, 1) end end end )
  12. RA = createTeam ( "Race" , 255 , 0 , 0 ) tabb = { [ 1 ] = {id = 506 , x = 6786.23828, y = -2033.16479, z = 9.54880, rx = 0 , ry = 0 , rz = 180 }, [ 2 ] = {id = 541 , x = 6791.76758, y = -2033.14282, z = 9.57411, rx = 0 , ry = 0 , rz = 180 }, [ 3 ] = {id = 415 , x = 6796.22803, y = -2033.16479, z = 9.57398, rx = 0 , ry = 0 , rz = 180 }, [ 4 ] = {id = 506 , x = 6799.81934, y = -2033.16479, z = 9.53969, rx = 0 , ry = 0 , rz = 180 }, [ 5 ] = {id = 541 , x = 6804.23145, y = -2033.16479, z = 9.53966, rx = 0 , ry = 0 , rz = 180 }, [ 6 ] = {id = 415 , x = 6807.46143, y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180 }, [ 7 ] = {id = 506 ,x = 6810.56494,y = -2033.16479, z = 9.53968, rx = 0 , ry = 0 , rz = 180} } anumber = 0 Vehicle = {} addEvent ( "warph" , true ) addEventHandler ( "warph" , root , function ( ) setPlayerTeam ( source , RA ) local team = getPlayerTeam(source) local racee = countPlayersInTeam ( team ) if racee < 23 then anumber = anumber + 1 Vehicle[source] = createVehicle(tabb[anumber].id,tabb[anumber].x,tabb[anumber].y,tabb[anumber].z,tabb[anumber].rx,tabb[anumber].ry,tabb[anumber].rz) warpPedIntoVehicle(source,Vehicle[source]) else setPlayerTeam(source,nil) end end )
  13. https://forum.multitheftauto.com/topic/89043-mta-events/
  14. setVehicleDoorOpenRatio
  15. -- Server addCommandHandler ( "nuts", function ( plr ) triggerClientEvent (root, "playS",root, plr ) end ) -- Client addEvent( "playS", true ) addEventHandler( "playS",root, function (plr) if isElement(sound) then return stopSound(sound) end sound = playSound( "nuts.mp3", false ) outputChatBox (""..getPlayerName(plr) .."#067E06 deez nuts",root, 255, 255, 255, true ) end )
  16. addCommandHandler("info",function() local info = dxGetStatus() outputChatBox(""..info["VideoCardName"].."",0,255,255,true) end )
×
×
  • Create New...