
iQsaMi~Mg.HaMoTa_oK!
Members-
Posts
33 -
Joined
-
Last visited
Everything posted by iQsaMi~Mg.HaMoTa_oK!
-
لو سمحتو مود تصفير السكور ومود البنق عالي كيل
iQsaMi~Mg.HaMoTa_oK! replied to iQsaMi~Mg.HaMoTa_oK!'s topic in المساهمات
اخي المود مو شغال -
local car = { } function carbuy (text,r,g,b) if isElement(car[source]) then destroyElement(car[source]) end local x,y,z = getElementPosition(source) car[source] = createVehicle(411,x,y+2,z) warpPedIntoVehicle(source,car[source]) outputChatBox(text,source,r,g,b) end addEvent("onPlayerCar",true) addEventHandler("onPlayerCar",root,carbuy) addEvent("Event",true) addEventHandler("Event",root, function (text1,text2) if not isPedInVehicle(source) then outputChatBox(text1,source,0,255,0) return end local Vehicle = getPedOccupiedVehicle(source) if Vehicle then setVehicleDamageProof( Vehicle, true) else outputChatBox(text2,source,0,255,0) end end )
-
مشكور لكم بس مشكله جربت كلشي ارسلتوه ما زبط وركبت اخر شي ما زبط المود GUIEditor = { button = {}, staticimage = {}, label = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.button[1] = guiCreateButton(917, 204, 235, 477, "", false) guiSetAlpha(GUIEditor.button[1], 0.79) tankcar = guiCreateButton(15, 28, 210, 36, "Tank CaR", false, GUIEditor.button[1]) guiSetProperty(tankcar, "NormalTextColour", "FFFD0000") GUIEditor.button[2] = guiCreateButton(15, 28, 210, 36, "Tank CaR", false, GUIEditor.button[1]) infernusmod = guiCreateButton(15, 97, 210, 36, "Infernus Mod", false, GUIEditor.button[1]) guiSetProperty(infernusmod, "NormalTextColour", "FFFD0000") NRG = guiCreateButton(15, 163, 210, 36, "NRG", false, GUIEditor.button[1]) guiSetProperty(NRG, "NormalTextColour", "FFFC0500") infernus = guiCreateButton(15, 229, 210, 36, "Infernus", false, GUIEditor.button[1]) guiSetProperty(infernus, "NormalTextColour", "FFFC0500") monster = guiCreateButton(15, 297, 210, 36, "Monster", false, GUIEditor.button[1]) guiSetProperty(monster, "NormalTextColour", "FFFC0500") GUIEditor.label[1] = guiCreateLabel(25, 9, 190, 15, "ViP Panel", false, GUIEditor.button[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 0, 95, 254) guiLabelSetHorizontalAlign(GUIEditor.label[1], "center", false) GUIEditor.staticimage[1] = guiCreateStaticImage(11, 343, 214, 124, ":VIP/VIP.png", false, GUIEditor.button[1]) guiSetVisible(GUIEditor.button[1],false) end ) bindKey ( "F7", "down", function ( ) guiSetVisible ( GUIEditor.button[1], not guiGetVisible ( GUIEditor.button[1] ) ) showCursor ( guiGetVisible ( GUIEditor.button[1] ) ) end ) addEventHandler("onClientGUIClick",root, function () if source == infernus then triggerServerEvent("onPlayerCar",localPlayer,"تم اعطاك سياره",0,255,0) end end ) addEventHandler ( "onClientGUIClick",tankcar, function ( ) local Vehicle = getPedOccupiedVehicle( localPlayer ) if Vehicle then setVehicleDamageProof( Vehicle, true) end end ) جربت وبسيرفر نسخت مثل ما كتبتولي وما شتغل
-
hello guys i wan't function:~ when you click on button give you infenus and when you click another button give you NRG 2 function:~ When I click on the box becomes your car does not spoil or his health be 1000 I hope the answer to clarify
-
السلام عليكم ورحمة الله وبركاته في معي هلمود بس اذا تقدرو تساعدوني معي مود ابي اسوي الوحه فيه تفتح بس للي معه رتبة فيب مثلا او معه رتبت ادمن المود : client local sx, sy = guiGetScreenSize() localPlayer = getLocalPlayer() local visible = false local key = "F7" local neonname = { [1] = "Rotes Neon", [2] = "Blaues Neon", [3] = "Grünes Neon", [4] = "Gelbes Neon", [5] = "Pinkes Neon", [6] = "Weisses Neon", [7] = "Kein Neon" } local idModel = { [1] = 14399, [2] = 14400, [3] = 14401, [4] = 14402, [5] = 14403, [6] = 14404 } function openGui() local xBtn = 75 local yBtn = 30 local wBtn = 150 local hBtn = 21 local space = 28 window = guiCreateWindow(sx/2-150,sy/2-115,300,260,"Neon Panel",false) Btn1 = guiCreateButton(xBtn,yBtn,wBtn,hBtn,neonname[1],false, window) Btn2 = guiCreateButton(xBtn,yBtn+space,wBtn,hBtn,neonname[2],false, window) Btn3 = guiCreateButton(xBtn,yBtn+2*space,wBtn,hBtn,neonname[3],false, window) Btn4 = guiCreateButton(xBtn,yBtn+3*space,wBtn,hBtn,neonname[4],false, window) Btn5 = guiCreateButton(xBtn,yBtn+4*space,wBtn,hBtn,neonname[5],false, window) Btn6 = guiCreateButton(xBtn,yBtn+5*space,wBtn,hBtn,neonname[6],false, window) Btn7 = guiCreateButton(xBtn,yBtn+6*space,wBtn,hBtn,neonname[7],false, window) info = guiCreateLabel(200, 230, 300, 30,"By Huarycane", false, window) guiLabelSetColor (info, 0,0,255) guiSetVisible(window, visible) end function start_cl_resource() openGui() if ( guiGetVisible(window) == true ) then showCursor(true) end end addEventHandler("onClientResourceStart",getResourceRootElement(getThisResource()),start_cl_resource) function hideGui() if (guiGetVisible(window) == false) then guiSetVisible(window, true) showCursor(true) else guiSetVisible(window, false) showCursor(false) end end bindKey(key, "down", hideGui) function onGuiClickPanel (button, state, absoluteX, absoluteY) if (source == Btn1) then setElementData( localPlayer, "neon", idModel[1] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn2) then setElementData( localPlayer, "neon", idModel[2] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn3) then setElementData( localPlayer, "neon", idModel[3] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn4) then setElementData( localPlayer, "neon", idModel[4] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn5) then setElementData( localPlayer, "neon", idModel[5] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn6) then setElementData( localPlayer, "neon", idModel[6] ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) triggerServerEvent ("attachNeon", getLocalPlayer(), theVehicle) elseif (source == Btn7) then setElementData( localPlayer, "neon", 0 ) local theVehicle = getPedOccupiedVehicle ( localPlayer ) triggerServerEvent ("detachNeon", getLocalPlayer(), theVehicle) end end addEventHandler ("onClientGUIClick", getRootElement(), onGuiClickPanel) function replaceTXD() txd = engineLoadTXD ( "models/MatTextures.txd" ) engineImportTXD ( txd, idModel[1] ) engineImportTXD ( txd, idModel[2] ) engineImportTXD ( txd, idModel[3] ) engineImportTXD ( txd, idModel[4] ) engineImportTXD ( txd, idModel[5] ) engineImportTXD ( txd, idModel[6] ) col = engineLoadCOL("models/RedNeonTube1.col") engineReplaceCOL(col, idModel[1]) col = engineLoadCOL("models/BlueNeonTube1.col") engineReplaceCOL(col, idModel[2]) col = engineLoadCOL("models/GreenNeonTube1.col") engineReplaceCOL(col, idModel[3]) col = engineLoadCOL("models/YellowNeonTube1.col") engineReplaceCOL(col, idModel[4]) col = engineLoadCOL("models/PinkNeonTube1.col") engineReplaceCOL(col, idModel[5]) col = engineLoadCOL("models/WhiteNeonTube1.col") engineReplaceCOL(col, idModel[6]) dff = engineLoadDFF ( "models/RedNeonTube1.dff", idModel[1] ) engineReplaceModel ( dff, idModel[1] ) dff = engineLoadDFF ( "models/BlueNeonTube1.dff", idModel[2] ) engineReplaceModel ( dff, idModel[2] ) dff = engineLoadDFF ( "models/GreenNeonTube1.dff", idModel[3] ) engineReplaceModel ( dff, idModel[3] ) dff = engineLoadDFF ( "models/YellowNeonTube1.dff", idModel[4] ) engineReplaceModel ( dff, idModel[4] ) dff = engineLoadDFF ( "models/PinkNeonTube1.dff", idModel[5] ) engineReplaceModel ( dff, idModel[5] ) dff = engineLoadDFF ( "models/WhiteNeonTube1.dff", idModel[6] ) engineReplaceModel ( dff, idModel[6] ) end addEventHandler ( "onClientResourceStart", getResourceRootElement(getThisResource()), replaceTXD) Server;:: local vehicles = { [ 400 ] = true, [ 401 ] = true, [ 402 ] = true, [ 403 ] = true, [ 404 ] = true, [ 405 ] = true, [ 409 ] = true, [ 410 ] = true, [ 415 ] = true, [ 411 ] = true, [ 412 ] = true, [ 413 ] = true, [ 415 ] = true, [ 416 ] = true, [ 418 ] = true, [ 419 ] = true, [ 420 ] = true, [ 421 ] = true, [ 422 ] = true, [ 423 ] = true, [ 426 ] = true, [ 428 ] = true, [ 429 ] = true, [ 431 ] = true, [ 434 ] = true, [ 436 ] = true, [ 437 ] = true, [ 438 ] = true, [ 439 ] = true, [ 440 ] = true, [ 442 ] = true, [ 445 ] = true, [ 446 ] = true, [ 451 ] = true, [ 458 ] = true, [ 459 ] = true, [ 466 ] = true, [ 467 ] = true, [ 470 ] = true, [ 474 ] = true, [ 475 ] = true, [ 477 ] = true, [ 479 ] = true, [ 480 ] = true, [ 482 ] = true, [ 483 ] = true, [ 489 ] = true, [ 490 ] = true, [ 491 ] = true, [ 492 ] = true, [ 494 ] = true, [ 495 ] = true, [ 496 ] = true, [ 498 ] = true, [ 499 ] = true, [ 500 ] = true, [ 502 ] = true, [ 503 ] = true, [ 504 ] = true, [ 505 ] = true, [ 506 ] = true, [ 507 ] = true, [ 508 ] = true, [ 516 ] = true, [ 517 ] = true, [ 518 ] = true, [ 525 ] = true, [ 526 ] = true, [ 527 ] = true, [ 528 ] = true, [ 529 ] = true, [ 533 ] = true, [ 534 ] = true, [ 535 ] = true, [ 536 ] = true, [ 540 ] = true, [ 541 ] = true, [ 542 ] = true, [ 543 ] = true, [ 545 ] = true, [ 546 ] = true, [ 547 ] = true, [ 549 ] = true, [ 550 ] = true, [ 551 ] = true, [ 552 ] = true, [ 554 ] = true, [ 555 ] = true, [ 558 ] = true, [ 559 ] = true, [ 560 ] = true, [ 561 ] = true, [ 562 ] = true, [ 565 ] = true, [ 566 ] = true, [ 567 ] = true, [ 568 ] = true, [ 575 ] = true, [ 576 ] = true, [ 579 ] = true, [ 580 ] = true, [ 582 ] = true, [ 585 ] = true, [ 587 ] = true, [ 588 ] = true, [ 589 ] = true, [ 596 ] = true, [ 597 ] = true, [ 598 ] = true, [ 599 ] = true, [ 600 ] = true, [ 602 ] = true, [ 603 ] = true, [ 604 ] = true, [ 605 ] = true, [ 609 ] = true } function neons (theVehicle) local NeonType = getElementData(source, "neon") if not NeonType or ( NeonType == 0 ) then return end local x, y, z = getElementPosition ( theVehicle ) if not x or not y or not z then return end local id = getElementModel ( theVehicle ) if ( vehicles [ id ] ) then local neon = createObject ( NeonType, x, y, z ) local neon1 = createObject ( NeonType, x, y, z ) local neon2 = createObject ( NeonType, x, y, z ) local neon3 = createObject ( NeonType, x, y, z ) if ( id == 401 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.55 ) attachElements ( neon, theVehicle or source, -0.9, 0, -0.55 ) elseif ( id == 411 ) then attachElements ( neon3, theVehicle or source, 0, 1.25, -0.63, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.25, -0.63, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.63 ) attachElements ( neon, theVehicle or source, -0.95, 0, -0.63 ) elseif ( id == 416 ) then attachElements ( neon3, theVehicle or source, 0, 1.55, -0.67, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.55, -0.73, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.7 ) attachElements ( neon, theVehicle or source, -0.9, 0, -0.7 ) elseif ( id == 422 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.85, 0, -0.66 ) attachElements ( neon, theVehicle or source, -0.85, 0, -0.66 ) elseif ( id == 429 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.51 ) attachElements ( neon, theVehicle or source, -0.9, 0, -0.51 ) elseif ( id == 445 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.55, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.55, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.55 ) attachElements ( neon, theVehicle or source, -0.95, 0, -0.55 ) elseif ( id == 459 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.8, 0, -0.78 ) attachElements ( neon, theVehicle or source, -0.8, 0, -0.78 ) elseif ( id == 498 ) or ( id == 609 ) then attachElements ( neon3, theVehicle or source, 0, 1.65, -0.7, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.2, -0.7, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 1.1, 0, -0.7 ) attachElements ( neon, theVehicle or source, -1.1, 0, -0.7 ) elseif ( id == 499 ) or ( id == 498 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.8, 0, -0.6 ) attachElements ( neon, theVehicle or source, -0.8, 0, -0.6 ) elseif ( id == 504 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.55, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.55, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.55) attachElements ( neon, theVehicle or source, -0.95, 0, -0.55 ) elseif ( id == 575 ) then attachElements ( neon3, theVehicle or source, 0, 1.3, -0.38, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.25, -0.38, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.38) attachElements ( neon, theVehicle or source, -0.9, 0, -0.38 ) elseif ( id == 535 ) or ( id == 536 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.6, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.6, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.6 ) attachElements ( neon, theVehicle or source, -0.95, 0, -0.6 ) elseif ( id == 496 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.85, 0, -0.5 ) attachElements ( neon, theVehicle or source, -0.85, 0, -0.5 ) elseif ( id == 568 ) then destroyElement(neon1) destroyElement(neon2) destroyElement(neon3) attachElements ( neon, theVehicle or source, 0, 0.45, -0.42 ) elseif ( id == 602 ) then attachElements ( neon3, theVehicle or source, 0, 1.05, -0.6, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.05, -0.6, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.6 ) attachElements ( neon, theVehicle or source, -0.95, 0, -0.6 ) elseif ( id == 518 ) then attachElements ( neon3, theVehicle or source, 0, 1.3, -0.5, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.05, -0.5, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0.15, -0.5 ) attachElements ( neon, theVehicle or source, -0.95, 0.15, -0.5 ) elseif ( id == 402 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 1, 0, -0.63 ) attachElements ( neon, theVehicle or source, -1, 0, -0.63 ) elseif ( id == 541 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.45 ) attachElements ( neon, theVehicle or source, -0.9, 0, -0.45 ) elseif ( id == 482 ) then attachElements ( neon3, theVehicle or source, 0, 1.25, -0.82, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.25, -0.82, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0.05, -0.82 ) attachElements ( neon, theVehicle or source, -0.95, 0.05, -0.82 ) elseif ( id == 438 ) then attachElements ( neon3, theVehicle or source, 0, 1.25, -0.72, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.3, -0.72, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.95, 0, -0.72 ) attachElements ( neon, theVehicle or source, -0.95, 0, -0.72 ) elseif ( id == 527 ) then destroyElement(neon2) destroyElement(neon3) attachElements ( neon1, theVehicle or source, 0.92, 0.15, -0.47 ) attachElements ( neon, theVehicle or source, -0.92, 0.15, -0.47 ) elseif ( id == 483 ) then attachElements ( neon3, theVehicle or source, 0.85, -0.48, -0.80 ) attachElements ( neon2, theVehicle or source, -0.85, -0.48, -0.80 ) attachElements ( neon1, theVehicle or source, 0.85, 0.3, -0.80 ) attachElements ( neon, theVehicle or source, -0.85, 0.3, -0.80 ) elseif ( id == 431 ) or ( id == 437 ) then attachElements ( neon3, theVehicle or source, 1.3, -0.7, -0.77 ) attachElements ( neon2, theVehicle or source, -1.3, -0.7, -0.77 ) attachElements ( neon1, theVehicle or source, 1.3, 1.8, -0.77 ) attachElements ( neon, theVehicle or source, -1.3, 1.8, -0.77 ) elseif ( id == 415 ) or ( id == 542 ) or ( id == 466 ) or ( id == 604 ) then attachElements ( neon3, theVehicle or source, 0, 1.1, -0.57, 0, 0, 90 ) attachElements ( neon2, theVehicle or source, 0, -1.15, -0.57, 0, 0, 90 ) attachElements ( neon1, theVehicle or source, 0.9, 0, -0.57 ) attachElements ( neon, theVehicle or source, -0.9, 0, -0.57 ) elseif ( id == 589 ) then
-
السلام عليكم ورحمة الله وبركاته بسال سوال انا سويت لوحه علا guieditor بعد ما سويت الوحه سويت فيها مربع صغير ابيه اذا ضغط عليه مثلا يتصفر سكورك او اذا ضغط عليه يسوي ريكونكت او يعبي دمك يعني انا احط الكود يلي ابيه فيه بس ابي اعرف كيف وشكرا لتوضيح GUIEditor = { button = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(339, 308, 549, 395, "", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.button[1] = guiCreateButton(127, 142, 74, 21, "ريكونكت", false, GUIEditor.window[1]) end ) ابي مثلا لما تضغط علا ريكونكت يسوي ريكونكت او يصفر سكور
-
i need code * revive health * kill
iQsaMi~Mg.HaMoTa_oK! replied to iQsaMi~Mg.HaMoTa_oK!'s topic in Scripting
thank you it's working 100/100 thanks -
i need code * revive health * kill
iQsaMi~Mg.HaMoTa_oK! replied to iQsaMi~Mg.HaMoTa_oK!'s topic in Scripting
not work -
السلام وعليكم ورحمة الله وبركاته اما بعد جاتني فكره من صديق يقول صراحه عجبتني لاعبين التكتيك والي عندهم كلانات تكتيك وكذا في منهم يلي بيلعب سبارات ضد كلان ثاني اول شي يتقاتلو في اي سيرفر بيلعبو ثاني شي اذا واحد مات او خسر يبلشو شتم علا بعض وانا جيت اقترح علا الشباب لو نسوي شي منتدا او قسم بذا المنتدا لتكتيك واحد مسول عنده او عدة اشخاص فيه يكون للتكتيك للكلانات يلي بدها تعمل سبار ضد بعض تسجل فيه وواحد مسول يسوي السبار بسيرفر معين بدون غش وكذا يكون شي بسيط رح يكبر هشي وانا جيت اقترح عشان نحل مشاكلنا هاي يلي اذا ساويتو سبار تبلشو سب علا بعض وكذا وان شاء الله يعجبكم الموضوع وشكرا
-
Hello guys i'm trying to make a script for MTA that will increase my health everytime i kill someone but problem is i need the right codes for the mod so could you guys please help me find out what the codes are?