Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

Everything posted by The Killer

  1. والله مدري وش مسوي انت ولا شكلك مسوي مود ثاني لاأن الكود شغال معي
  2. طيب جرب function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") setTimer (setPlayerWantedLevel, 1000, 1, source, playerWanted) end end addEventHandler("onPlayerLogin",root,playerLogin) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) end end end addEventHandler("onPlayerQuit",root,onQuit) addEventHandler("onPlayerSpawn", root, function () local playerWanted = getAccountData (source, "funmodev2-wantedlevel") if (playerWanted) then setTimer (setPlayerWantedLevel, 1000, 1, source, playerWanted) end end )
  3. ^ خرابيط Edit # جرب ذا function playerLogin (thePreviousAccount, theCurrentAccount, autoLogin) if not (isGuestAccount (getPlayerAccount (source))) then local playerWanted = getAccountData (theCurrentAccount, "funmodev2-wantedlevel") setTimer (setPlayerWantedLevel, 50, 1, source, playerWanted) end end addEventHandler("onPlayerLogin",root,playerLogin) function onQuit (quitType, reason, responsibleElement) if not (isGuestAccount (getPlayerAccount (source))) then account = getPlayerAccount (source) if (account) then setAccountData (account, "funmodev2-wantedlevel", getPlayerWantedLevel (source)) end end end addEventHandler("onPlayerQuit",root,onQuit)
  4. الله يعافيكـ Edit # طيب حط الكود بنفس الملف وضيف له حدث onClientGUIClick وحط اسم الزر حق لوحتك الثانيه فيه بس function CreateSelectorWindow() wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"Nich's Skinslector v1.0",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) guiSetVisible(wdwselector, false) end function selectorenable () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getRootElement()) end showCursor(true) end addEventHandler ("onClientResourceStart", resourceRoot, selectorenable) function clientSkinSelect(button) if button == "left" then guiSetVisible(wdwselector, false) showCursor(false) triggerServerEvent("SkinSelected", getRootElement()) end end function clientSkinRight(button) if button == "left" then triggerServerEvent("SkinRight", getRootElement()) end end function clientSkinLeft(button) if button == "left" then triggerServerEvent("SkinLeft", getRootElement()) end end ----------------- -- Window 2 ----------------- wnn = guiCreateWindow(9, 321, 212, 148, "", false) guiWindowSetSizable(wnn, false) button = guiCreateButton(42, 45, 116, 58, "", false, wnn) guiSetVisible (wnn, false) bindKey('F1','dwon',function() guiSetVisible(wnn,not guiGetVisible(wnn)) showCursor(guiGetVisible(wnn)) end) addEventHandler ('onClientGUIClick', root, function () if (source == button) then guiSetVisible (wdwselector, true) end end )
  5. # 1 function CreateSelectorWindow() wdwselector = guiCreateWindow(0.438,0.880,0.15,0.10,"Nich's Skinslector v1.0",true) guiWindowSetMovable(wdwselector,false) btnLeft = guiCreateButton(0.0,0.4,0.200,0.350,"<-",true,wdwselector) btnRight = guiCreateButton(0.76,0.4,0.200,0.350,"->",true,wdwselector) btnSelect = guiCreateButton(0.30,0.4,0.400,0.350,"Select",true,wdwselector) guiSetVisible(wdwselector, false) end function selectorenable () CreateSelectorWindow() addEventHandler("onClientGUIClick", btnLeft, clientSkinLeft, false) addEventHandler("onClientGUIClick", btnSelect, clientSkinSelect, false) addEventHandler("onClientGUIClick", btnRight, clientSkinRight, false) if (wdwselector ~= nil) then guiSetVisible(wdwselector, true) triggerServerEvent("FrontCamera", getRootElement()) end showCursor(true) end addEventHandler ("onClientResourceStart", resourceRoot, selectorenable) function clientSkinSelect(button) if button == "left" then guiSetVisible(wdwselector, false) showCursor(false) triggerServerEvent("SkinSelected", getRootElement()) end end function clientSkinRight(button) if button == "left" then triggerServerEvent("SkinRight", getRootElement()) end end function clientSkinLeft(button) if button == "left" then triggerServerEvent("SkinLeft", getRootElement()) end end # 2 ما يحتاج تظهر الماوس مره ثانيه لأنه اكيد انت ضاغط الزر بماوس ليه تسوي واحد ثاني ف شيل showCursor addEventHandler("onClientGUIClick",root,function () if ( source == btn_Login ) then guiSetVisible ( window, true ) end end)
  6. local Money = 50000 addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == GUIEditor_Button[1] ) then if ( guiGridListGetSelectedItem ( GUIEditor_Grid[1] ) ~= -1 ) then if ( isElement( Sound ) ) then destroyElement( Sound ) end triggerServerEvent( "TakeMoney", localPlayer, tonumber( Money ) ) Sound = playSound("voice.wav") end end end )
  7. -- Client side # Event # 'onClientGUIClick' function # guiCreateWindow guiCreateButton guiSetVisible triggerServerEvent -- Server side # addEvent addEventHandler createTeam setPlayerTeam addCommandHandler -- w1, w2, .. giveWeapon setPedArmor
  8. كنت اعدل فيه يا زاحف ما انتبهت لها
  9. cM = createMarker(1591.596680, -2495.323242, 18.098244-1, "cylinder", 2, 255, 0, 0 ) addEventHandler ("onClientMarkerHit",root,function (player) if ( player == localPlayer ) then else outputChatBox ( "X", 255, 255, 255, true ) myElegy = createVehicle ( 562, 1591.596680, -2495.323242, 18.098244 ) end end )
  10. اتوقع قال اذا نزل من سياره خربانه يسحبها ماقال اذا انفجرت ==== يصير كذا ! addEventHandler ("onVehicleExit", root, function () if getElementHealth (source) <= 300 then destroyElement (source) end end)
  11. addEvent("gui", true) addEventHandler ("gui", root, function () if (getLocalPlayer () == source) then guiSetVisible (wnd, true) showCursor(true) end end) addEventHandler("onClientGUIClick",root,function() if (source == close) then guiSetVisible (wnd, false) showCursor (false) elseif (source == buy) then triggerServerEvent("Account",getRootElement()) end end) setElementDimension(los,766) setElementDimension(win1,766) setElementDimension(winr,766) addEvent ("gui", true) function markerHit (hitPlayer, matchingDimension) if (source == marker) then local acc = getPlayerAccount(hitPlayer) if getElementType (hitPlayer) == 'player' and acc and not isGuestAccount(acc) then if ( getAccountData(acc,'ماعليك منه') == 'ماعليك منه') then local car = createVehicle( math.random(455,411,577), 2470.6877441406, -1614.0283203125, 1180.4453125) setElementDimension(car,766) setElementDimension(hitPlayer,766) warpPedIntoVehicle(hitPlayer,car) setAccountData(acc,"ماعليك منه") else outputChatBox ('لايوجد لديك ', hitPlayer, 255, 0, 0, false) end end elseif (source == marker1) then local acc = getPlayerAccount(hitPlayer) if acc and not isGuestAccount(acc) then triggerClientEvent ("gui", hitPlayer) end end end addEventHandler ("onMarkerHit", getRootElement(), markerHit) addEvent ("Account", true) addEventHandler ("Account", getRootElement(), function() if (getPlayerMoney (source) >= 1000) then outputChatBox ("تم شراء ", source, 255, 0, 0, false) takePlayerMoney (source, 1000) setAccountData (getPlayerAccount (source), "ماعليك منه") else outputChatBox ("ليس لديك نقود", source, 255, 0, 0, false) end end) function mkr (hitPlayer, unit) local vh = getVehicleOccupant(hitPlayer) if (source == los) and vh then destroyElement(vh) setElementPosition(hitPlayer, x, y, z) setElementDimension(hitPlayer,766) elseif (source == winr) and vh then local acc = getPlayerAccount(hitPlayer) if acc and not isGuestAccount(acc) then setAccountData (acc, "ماعليك منه") destroyElement(vh) setElementPosition(hitPlayer, x, y, z) setElementDimension(hitPlayer,766) end elseif (source == win1) and vh then if (unit == nil) then unit = 0 end if (unit == "kbh") then local Speed = getElementSpeed(hitPlayer, unit) if (Speed >= 90) then destroyElement(vh) setElementPosition(hitPlayer, x, y, z) setElementDimension(hitPlayer,766) end end end end addEventHandler ("onMarkerHit",getRootElement(),mkr)
  12. انا والله مدري وش تقصد + لو تقدر تجيب صوره لأن الي في التاب هو لونك الاصلي يتغير تلقائي اذا انت مشغل الفري روم اما اذا انت حاطه في تيم بيجيك على حسب لون التيم
  13. طيب في التاب هو لونك الاصلي اذا قصدك #ff0000 ما ادري والله ماا اتوقع تقدر
  14. جرب ؟ GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if isElement(sound) and isElement(sound2) and isElement(sound3) and isElement(sound4) then if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) local sound = playSound3D("1.mp3", -1490.1, 762.89, 8.38) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound ) destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end end ) انسخ الكود من جديد عدلت شي بسيط
  15. انسخ الكود مره ثانيه
  16. شكلك حاطه في تيم ؟
  17. GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) local sound = playSound3D("1.mp3", -1490.1, 762.89, 8.38) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound ) destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end )
  18. جرب ملاحظه عدل x,y,z بالاحداثيات GUIEditor_Image = {} sss = guiCreateWindow(408,100,459,608,"شيلات abu-waleed",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,439,115,"A.png",false,sss) x = guiCreateButton(9,146,42,38,"X",false,sss) guiSetFont(x,"default-bold-small") a11 = guiCreateButton(266,202,142,141,"شيلة ياعبد الغني",false,sss) guiSetFont(a11,"default-bold-small") a22 = guiCreateButton(50,202,142,141,"شيلة أبغى ارفع الصوت",false,sss) guiSetFont(a22,"default-bold-small") a33 = guiCreateButton(271,361,142,141,"الهلال و النصر",false,sss) guiSetFont(a33,"default-bold-small") a44 = guiCreateButton(54,361,142,141,"شيلة يارفيقي",false,sss) guiSetFont(a44,"default-bold-small") a55 = guiCreateButton(111,517,250,76,"ايقاف صوت الشيلة",false,sss) guiSetVisible ( sss, false ) local Marker = createMarker (-1491.3062744141, 762.76330566406, 6.9000, "cylinder", 1, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit', Marker, function ( hitPlayer ) setElementFrozen ( player, true ) setTimer (setElementFrozen, 500, 1, player, false) if ( hitPlayer == localPlayer ) then local _, _, Pz = getElementPosition(hitPlayer) local _, _, Mz = getElementPosition(Marker) if (Mz + 3 >= Pz) and (Pz + 3 >= Mz) then guiSetVisible ( sss ,true ) showCursor( true ) end end end) addEventHandler("onClientGUIClick",root, function () if ( source == a11 ) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound5 ) local sound = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) elseif (source == a22) then destroyElement( sound ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound5 ) local sound2 = playSound3D("2.mp3", x,y,z) elseif (source == a33) then destroyElement( sound2 ) destroyElement( sound ) destroyElement( sound4 ) destroyElement( sound5 ) local sound3 = playSound3D("3.mp3", x,y,z) elseif (source == a44) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound ) destroyElement( sound5 ) local sound4 = playSound3D("4.mp3", x,y,z) elseif (source == a55) then destroyElement( sound2 ) destroyElement( sound3 ) destroyElement( sound4 ) destroyElement( sound ) local sound5 = playSound3D("5.mp3", x,y,z) elseif (source == x) then guiSetVisible(sss, false) showCursor(false) end end )
  19. Event # 'onClientGUIClick' function # triggerServerEvent setPlayerTeam(player, nil)
  20. جرب function createPlayerList ( ) local playerList = guiCreateGridList ( 0.80, 0.10, 0.15, 0.60, true ) local column = guiGridListAddColumn( playerList, "Player", 0.85 ) if ( column ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( playerList ) local r, g, b = getPlayerNametagColor ( player ) guiGridListSetItemText ( playerList, row, column, color (getPlayerName ( player )), false, false ) guiGridListSetItemColor ( playerList, row, column, r, g, b ) end end end addEventHandler ( "onClientResourceStart", resourceRoot, createPlayerList ) function color ( name ) return type(name)=='string' and string.gsub ( name, '#%x%x%x%x%x%x', '' ) or name end
  21. -,- هو نفسه تستخدم ذااااا guiGridListSetItemColor اذا ضغط عليه راح يجيك الكود جاهز في الويكي نفس طلبك
×
×
  • Create New...