Jump to content

Ahmed Ly

Members
  • Posts

    1,304
  • Joined

  • Last visited

  • Days Won

    5

Everything posted by Ahmed Ly

  1. "onClientGUIClick" triggerServerEvent redirectPlayer + القسم غلط مفروض موضوعك في قسم البرمجه
  2. صح + شوف هدا مثال function ping () outputChatBox("you ping is "..getPlayerPing(localPlayer).."",0,255,0) end addCommandHandler("1",ping)
  3. رائع استمر + وين مكانه ازر هدا في الكمبيوتر num_1
  4. -- Client Side ! addEventHandler("onClientGUIClick",resourceRoot, function () if source == GUIEditor.button[1] then local t = guiGetText(GUIEditor.edit[1]) if t ~= "" and tonumber(t) then triggerServerEvent("GiveAll",localPlayer,tonumber(t)) else outputChatBox("Error in Number",255,0,0) end end end ) -- Server Side ! addEvent("GiveAll",true) addEventHandler("GiveAll",root, function (t) for i,p in ipairs(getElementsByType("player")) do if ( string.find("[Alex]", getPlayerName(p)) ) then givePlayerMoney(p,t) outputChatBox(getPlayerName(source) .. " Has Give You " .. t,p,0,255,0) end end end )
  5. Ahmed Ly

    Crash

    Please download, extract and run MTADiag and follow the instructions. Press 'n' when asked. Post any Pastebin URL MTADiag gives you. Also , you are using old version , try last nightly : https://nightly.multitheftauto.com/mtasa-1.5.2-f ... 160622.exe
  6. function open () 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("F2", "down",open)
  7. لا حول ولا قوة الا بالله
  8. function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing ( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end function dx_test ( ) dxDrawRectangle(129, 227, 475, 240, tocolor(0, 0, 0, 255), false) dxDrawRectangle(129, 189, 475, 43, tocolor(8, 8, 8, 255), false) dxDrawRectangle(318, 442, 90, 25, tocolor(8, 8, 8, 255), false) dxDrawRectangle(340, 444, 19, 18, tocolor(121, 9, 118, 255), false) dxDrawRectangle(365, 444, 19, 18, tocolor(121, 9, 118, 255), false) dxDrawLine(129, 232, 605, 232, tocolor(183, 15, 178, 255), 1, false) dxDrawText("Music", 314, 189, 414, 232, tocolor(255, 255, 255, 255), 1.00, "bankgothic", "center", "center", false, false, false, false, false) dxDrawText("OMGF - Hello Remix 2015 [Trap] :", 144, 255, 285, 271, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRectangle(421, 251, 55, 26, tocolor(27, 160, 9, 255), false) dxDrawRectangle(480, 251, 55, 26, tocolor(169, 0, 0, 255), false) dxDrawText("ON", 421, 251, 476, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("OFF", 480, 251, 535, 277, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("BANGARANG [FT.SIRAH] 2015 :", 144, 296, 285, 312, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRectangle(421, 292, 55, 26, tocolor(27, 160, 9, 255), false) dxDrawRectangle(480, 292, 55, 26, tocolor(169, 0, 0, 255), false) dxDrawText("ON", 421, 292, 476, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("OFF", 480, 292, 535, 318, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("KYOTO - [FT.SIRAH] 2015 :", 144, 337, 285, 353, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRectangle(421, 333, 55, 26, tocolor(27, 160, 9, 255), false) dxDrawRectangle(480, 333, 55, 26, tocolor(169, 0, 0, 255), false) dxDrawText("ON", 421, 333, 476, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("OFF", 480, 333, 535, 359, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("The Chainsmokers - Don‘t Let Me Down [Trap] :", 144, 377, 285, 393, tocolor(255, 255, 255, 255), 1.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawRectangle(421, 373, 55, 26, tocolor(27, 160, 9, 255), false) dxDrawRectangle(480, 373, 55, 26, tocolor(169, 0, 0, 255), false) dxDrawText("ON", 421, 373, 476, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("OFF", 480, 373, 535, 399, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("1", 340, 445, 359, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) dxDrawText("2", 365, 445, 384, 462, tocolor(255, 255, 255, 255), 1.00, "default-bold", "center", "center", false, false, false, false, false) end local sShowing = false bindKey("F4","down", function ( ) if ( sShowing == true ) then removeEventHandler("onClientRender",root,dx_test) showCursor ( false ) else addEventHandler("onClientRender",root,dx_test) showCursor ( true ) end sShowing = not sShowing end )
  9. GUIEditor = { gridlist = {}, window = {}, } GUIEditor.window[1] = guiCreateWindow(238, 130, 339, 265, "Cars", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.gridlist[1] = guiCreateGridList(221, 18, 108, 237, false, GUIEditor.window[1]) ok = guiCreateButton(22, 54, 161, 155, "Give", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFAAAAAA") column = guiGridListAddColumn(GUIEditor.gridlist[1], "Car", 0.2) local car = { {"Invite",100}, } for k,v in ipairs(car) do local row = guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1],row,column,v[1],false,false) guiGridListSetItemData(GUIEditor.gridlist[1],row,column,v[2]) guiGridListSetItemColor(GUIEditor.gridlist[1],row,column,255,0,0) end addEventHandler("onClientGUIClick",root, function () if source == ok then local m = guiGridListGetSelectedItem(GUIEditor.gridlist[1]) getselect = guiGridListGetItemData(GUIEditor.gridlist[1],m,column) triggerServerEvent("car",localPlayer,getselect) end end )
  10. getPlayerSerial guiSetVisible showCursor --- bindKey or addCommandHandler
  11. شرح جميل و رائع استمر ي برو
  12. function blip1 () for id, thePlayer in ipairs(getElementsByType("player")) do local r, g, b = getTeamColor(getPlayerTeam(thePlayer)) createBlipAttachedTo(thePlayer,20,1,r,g,b) end end blip1() function destroyBlipsAttachedTo(player) local attached = getAttachedElements(player) if (attached) then for k,element in ipairs(attached) do if getElementType(element) == "blip" then destroyElement(element) end end end end function quit () destroyBlipsAttachedTo(source) end addEventHandler("onPlayerQuit", getRootElement(), quit)
×
×
  • Create New...