Jump to content

The Don

Members
  • Posts

    241
  • Joined

  • Last visited

Everything posted by The Don

  1. -- Server YourSerial = "" -- the serial that allowed to use this commands cmd = { "login",-- add more commands in the table if you want "", "", } addEventHandler("onPlayerCommand",root, function(command) if getPlayerSerial(source) ~= YourSerial then for k,v in pairs(cmd) do if command == v then outputChatBox("You can't use this command /"..command.."",source,255,0,0) cancelEvent( ) end end end end )
  2. local Markerarmor = createMarker(1459.035, -1156.93, 23.67, "cylinder", 2, 255, 0, 0, 150) addEventHandler("onMarkerHit", Markerarmor, function(player) if getElementType(player) == "player" then if getPlayerMoney(player) >= 1500 and getPedArmor(player) >= 50 then takePlayerMoney(player, 1500) setPedArmor(player, 100) end end end)
  3. function drawRender () dxDrawRectangle(467, 156, 433, 455, tocolor(0, 0, 0, 60)) dxDrawLine(467 - 1, 156 - 1, 467 - 1, 611, tocolor(255, 255, 255, 255), 1) dxDrawLine(900, 156 - 1, 467 - 1, 156 - 1, tocolor(255, 255, 255, 255), 1) dxDrawLine(467 - 1, 611, 900, 611, tocolor(255, 255, 255, 255), 1) dxDrawLine(900, 611, 900, 156 - 1, tocolor(255, 255, 255, 255), 1) dxDrawLine(604 - 1, 556 - 1, 604 - 1, 596, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(764, 556 - 1, 604 - 1, 556 - 1, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(604 - 1, 596, 764, 596, tocolor(255, 255, 255, 255), 1, false) dxDrawLine(764, 596, 764, 556 - 1, tocolor(255, 255, 255, 255), 1, false) dxDrawRectangle(604, 556, 160, 40, tocolor(0, 0, 0, 60), false) dxDrawText("Go ! | اذهب #", 618 + 1, 562 + 1, 754 + 1, 591 + 1, tocolor(147, 0, 0, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("Go ! | اذهب #", 618, 562, 754, 591, tocolor(255, 255, 255, 255), 2.00, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("-[ لوحة انتقلات ]-", 608 + 1, 156 + 1, 881 + 1, 173 + 1, tocolor(255, 255, 255, 255), 1.80, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("-[ لوحة انتقلات ]-", 608, 156, 881, 173, tocolor(39, 191, 185, 255), 1.80, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("* Select a Place From The List / اختر مكان من القائمة", 473 + 1, 193 + 1, 746 + 1, 210 + 1, tocolor(255, 255, 255, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("* Select a Place From The List / اختر مكان من القائمة", 473, 193, 746, 210, tocolor(0, 58, 147, 255), 1.50, "default-bold", "left", "top", false, false, false, false, false) end function lel() Antiq_Gridlist = guiCreateGridList(10, 62, 412, 342, false) guiGridListSetSelectionMode(Antiq_Gridlist,1) Antiq_Anti_Column = guiGridListAddColumn(Antiq_Gridlist,"Places",0.-- s8) --> Antiq_button = guiCreateButton(135, 409, 182, 35, "Go", false) end OpenPanel = true bindKey ("F5", "down", function () if ( OpenPanel == true ) then OpenPanel = false showCursor ( true ) addEventHandler("onClientRender", root, drawRender) lel() else removeEventHandler("onClientRender", root, drawRender) OpenPanel = true showCursor ( false ) guiSetVisible (Antiq_Gridlist, false) guiSetVisible (Antiq_button, false) end end ) فيه بق في السطر 23 عدله الى 0.8 البق من المنتدى وبخصوص الاماكن حقت القريد والدي اكس ذي منك انت ما ركبتها على بعض شاتل كل وحده في جهه
  4. -- Server addEventHandler('onPlayerChat',root, function ( Message , MessageType) if MessageType == 0 or MessageType == 1 or MessageType == 2 then if isGuestAccount ( getPlayerAccount ( source ) ) then cancelEvent() outputChatBox ('Please log in first to chat!',source,255,0,0) end end end )
  5. addEventHandler( "onPlayerSpawn", root, function ( ) if getPlayerTeam ( source ) then if getTeamFromName ( "Heavy" ) then setPedArmor( source,100 ) end end end )
  6. The Don

    cancelevent

    if Button then if Button == "F1" then ------------------------ if Button and Button == "F1" then it is all works , and if i delete if Button then + the end the script will not work very well
  7. The Don

    cancelevent

    another code addEventHandler("onClientKey", root, function ( Button ) if Button then if Button == "F1" then cancelEvent() outputChatBox("You can't press that key now !",255,0,0) end end end )
  8. addEventHandler('onPlayerSpawn',root, function () if getElementData( source, 'Class' ) == 'Heavy' then setPedArmor( source,100 ) end end )
  9. ي ريت انك تدور ترى ما اخذت من وقتي نص دقيقه https://forum.multitheftauto.com/viewtopic.php?f ... 1&p=736611
  10. I upload the decompiler version feel free to edit it :0
  11. The owner of the script https://forum.multitheftauto.com/memberlist.php? ... le&u=67520 connect with him PM
  12. here we go addCommandHandler('ct', function ( player , cmd , team , r,g,b) if getPlayerMoney ( player ) >= 10000 then takePlayerMoney ( player , 10000 ) theteam = createTeam ( team , r,g,b or 255,255,255 ) setPlayerTeam ( player , theteam ) outputChatBox ( 'Successfully create the team ! '..team..' congrats',player ,0,255,0) else outputChatBox ( 'You dont have enough money',player,255,0,0) end end ) how to use it ./ct teamname colour r g b or 255,255,255 ( white colour )
  13. addEventHandler('onPlayerChat',root, function ( Message , MessageType ) if MessageType == 0 then if Message == "فلوس" then outputChatBox('لقد حصلت على فلوس',source,0,255,0) givePlayerMoney(source,1000) end end end )
  14. عادي يغير الاسم بس aTab2.ManageACL
  15. جرب حق شوقي تراه شغال
  16. https://community.multitheftauto.com/in ... ls&id=7613 Example -- Client dxDraw3DText = exports["3d_dx_texts"]:dxDraw3DText("Text Name",x,y,z)
  17. جرب addEventHandler('onClientGUIClick',root, function () if source == start then -- اسم الزر حق تشغيل الانشوده ( start ) local sound = playSound("anshodh.mp3") setSoundVolume(sound, 0.5) elseif source == stop then -- اسم الزر حق اطفاء الانشود ( stop ) stopSound( sound ) end end ) اذا ضبظ فا انا برى منك اذا حطيتها اغاني او شي زي كذا
  18. https://forum.multitheftauto.com/viewto ... e8c07db864 انزل في التعليقات راح تحصل الكود الي تبيه
  19. addEventHandler("onClientResourceStart", root, function () local sound = playSound("join.mp3") setSoundVolume(sound, 0.5) end ) حدث حق onClientPlayerJoin ما يضبظ لانه اول ما يخش يحمل فـ ما يقدر يسمع الاصوات
  20. رقمي القياسي للاق اتحدى اي احد يكسره في العالم
  21. اعتقد ما تقدر , والله اعلم
  22. TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end GUIEditor = { button = {}, window = {}, staticimage = {}, memo = {}, TimeGuiSetRightC = { } } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(0, 0, 674, 411, "مود شراء الشخصيات I بواسطة علاء I سكايب AlaaTailakh", false) guiMoveRightToCenter( GUIEditor.window[1] ) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF000BFE") guiSetVisible(GUIEditor.window[1],true) showCursor(false) GUIEditor.button[1] = guiCreateButton(20, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[1], "NormalTextColour", "FFFEE300") GUIEditor.button[2] = guiCreateButton(154, 295, 101, 47, "شراء بـ5000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[2], "NormalTextColour", "FFFEE300") GUIEditor.button[3] = guiCreateButton(285, 296, 101, 46, "شراء بـ7500$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[3], "NormalTextColour", "FFFEE300") GUIEditor.button[4] = guiCreateButton(418, 295, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[4], "NormalTextColour", "FFFEE300") GUIEditor.button[5] = guiCreateButton(549, 294, 101, 46, "شراء بـ10000$", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[5], "NormalTextColour", "FFFEE300") GUIEditor.button[6] = guiCreateButton(154, 351, 232, 46, "الـــغـــاء", false, GUIEditor.window[1]) guiSetProperty(GUIEditor.button[6], "NormalTextColour", "FFFE0000") GUIEditor.staticimage[1] = guiCreateStaticImage(10, 19, 121, 266, "Images/image2.png", false, GUIEditor.window[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(144, 19, 121, 266, "Images/image10.png", false, GUIEditor.window[1]) GUIEditor.staticimage[3] = guiCreateStaticImage(275, 19, 121, 266, "Images/image11.png", false, GUIEditor.window[1]) GUIEditor.staticimage[4] = guiCreateStaticImage(408, 19, 121, 266, "Images/image12.png", false, GUIEditor.window[1]) GUIEditor.staticimage[5] = guiCreateStaticImage(539, 19, 121, 265, "Images/image13.png", false, GUIEditor.window[1]) GUIEditor.memo[1] = guiCreateMemo(418, 350, 232, 46, "لن تحصل على شخصية عند قتلك ", false, GUIEditor.window[1]) end ) addEventHandler("onClientGUIClick",root, function () if source == GUIEditor.button[6] then guiSetVisible(GUIEditor.window[1],false) showCursor(false) end end ) bindKey("f2","down", function () if guiGetVisible(GUIEditor.window[1]) then guiSetVisible(GUIEditor.window[1],false) showCursor(false) guiMoveRightToCenter( GUIEditor.window[1] ) -- يمكن ما تحتاجه اذا ما تبيه يظهر بـ موثرات لما يضغظ الزر else guiSetVisible(GUIEditor.window[1],true) showCursor(true) end end )
  23. ويندوز 7 افضل من ناحيه الاستقرار والثبات 8 , 8.1 جربتهم وكان فيهم عيب انهم ياخذو من الرام اكثر من الويندوز 7 لكنه حلو لكن الافضل 7 * حتى الان * ض شطحه : فيه واحد محشش صوت لـ 95
  24. زي كذا يالحبيب TimeGuiSetRightC = { } function guiMoveRightToCenter(gui) if getElementData(gui,"HelhGui") == false then setElementData(gui,"HelhGui",true) local s1,s2=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (s1-w1)/2,(s2-w2)/2 guiSetPosition(gui,-x,y,false) TimeGuiSetRightC[gui] = setTimer(guiMoveRightToCenter,50,0,gui) end local a,b=guiGetScreenSize() local w1,w2=guiGetSize(gui,false) local x,y = (a-w1)/2,(b-w2)/2 local x1,y1 = guiGetPosition ( gui, false) if (x1 >= x) then killTimer(TimeGuiSetRightC[gui]) setElementData(gui,"HelhGui",false) else guiSetPosition(gui,x1+10,y,false) end end addEventHandler('onClientResourceStart',resourceRoot, function () test = guiCreateWindow(200,200,100,100, "Test", false) showCursor(true) guiMoveRightToCenter ( test ) end)
×
×
  • Create New...