Jump to content

Jw8.

Members
  • Posts

    507
  • Joined

Everything posted by Jw8.

  1. تفضل -- function createTeamsOnStart () createTeam ( "Staff", 255, 255, 245 ) end addEventHandler ( "onResourceStart", getResourceRootElement(getThisResource()), createTeamsOnStart ) addEventHandler ( "onClientPlayerDamage",root, function () if getElementData(source,"invincible") then cancelEvent() setElementHealth ( source, 200 ) end end) --serverside function da() end addEvent("onmta", true) addEventHandler("onmta", getRootElement(), da) function ad() end addEvent("offmta", true) addEventHandler("offmta", getRootElement(), ad) --client vuelo = false function mta() if (vuelo == false) then vuelo = false local vehicle = getPedOccupiedVehicle(localPlayer) local team = getPlayerTeam(localPlayer) if ( isElement(vehicle) ) and (isVehicleOnGround( vehicle )) and ( getTeamName(team) ) and ( getTeamName(team) == "Staff" ) then setWorldSpecialPropertyEnabled("aircars", true) triggerServerEvent("onmta", getLocalPlayer()) else vuelo = false setWorldSpecialPropertyEnabled("aircars", false) triggerServerEvent("offmta", getLocalPlayer()) end end end addCommandHandler("fly", mta) --أذ مظبط استخدم كود كونان
  2. الله الله وش ذه الابداع ترأ ثالث سيرفر اشوفه يسوي كذاا بتوفيققق لك #@#@# ++ احمد انت ضايف له dff ولا كيف
  3. تتستهبل انت ؟ اقول لك حط ملفات كلينت + ملفات سيرفر في
  4. مب حاطهن كلينت حط هذول في ملف client local groupName = '[ARMY]' -- اسم القروب -------------------- RadioMarkerBASE1 = createMarker( 191.73413, 1903.36255, 17.64063-1, "cylinder", 1.5, 150, 0, 150, 255) setElementInterior ( RadioMarkerBASE1, 0 ) setElementDimension ( RadioMarkerBASE1, 0 ) Window_Radio = guiCreateWindow(271, 144, 342, 453, "Radio", false) guiSetVisible(Window_Radio, false) guiWindowSetSizable(Window_Radio, false) button_Play = guiCreateButton(40, 386, 61, 34, "Play", false, Window_Radio) button_Stop = guiCreateButton(127, 386, 61, 34, "Stop", false, Window_Radio) button_Close_Radio = guiCreateButton(290, 406, 33, 29, "x", false, Window_Radio) songGridList = guiCreateGridList(28, 38, 293, 324, false, Window_Radio) guiGridListSetSelectionMode(songGridList,0) songColumn = guiGridListAddColumn(songGridList,"Artist - Title",0.8) songs = { {"طني ورور","http://alshira3.com/uploads/songs/gmylh_6ny_wrwr.mp3"}, {"وديع - قمر زمان","http://www.s1.bagdady.com/songs/ferqat-alorans/garatak-aldenya.mp3"}, {"جورج وسوف - كلامك يأ حبيبي","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_kalamak_ya_habeby.mp3"}, {"رابح صقر - شفت الحياه","http://alshira3.com/uploads/songs/shft_al7yah.mp3"}, {"زايد الصالح - ذهب ذهب ","http://alshira3.com/uploads/songs/dhb_dhb.mp3"}, {"زايد الصالح - حكم المؤبد","http://alshira3.com/uploads/songs/7km_aloabd.mp3"}, {"جورج وسوف - ادي الكانو","http://www.al7an.org/songs/mp3/arabic/2008/goerge-wassof-klamk-ya-7bebe/gorg_wassof_ady_elly_kano.mp3"}, {"زايد الصالح - شسويله عشان يحبني","http://www.alshira3.com/songs/zayd-alsalh/17.mp3"}, {"زايد الصالح - سويت فيا","http://alshira3.com/uploads/songs/swyt_fya.mp3"}, {"زايد الصالح - اه من الدنيا","http://alshira3.com/uploads/songs/ah_mn_aldnya.mp3"}, {"زايد الصالح - حبيبي نساني","http://alshira3.com/uploads/songs/7byby_nsany.mp3"}, {"هيفا وهبي -واوا","http://www.al7an.org/songs/mp3/arabic/2010/Hayfa_Wehby_Baby/Haifa_Wehbi-05.El_Wawaa.mp3"}, {"Inna - Sexy Wild","http://www.woo55.pk/adata/741/Inna%20-%20Crazy%20Sexy%20Wild%20(www.SongsLover.Pk).mp3"}, {"Akon - chammak challo","http://brit-asian.com/wp-content/uploads/2011/05/Ra-One-Chamak-Challo-Akon.mp3"}, {"Pitbull - Give Me Everything","http://a.tumblr.com/tumblr_lm8dlxNmwl1qck53eo1.mp3"}, {"PSV-Gangm","http://www.al7an.org/songs/mp3/desco/02.mp3"}, } for i,v in ipairs (songs) do local row = guiGridListAddRow (songGridList) guiGridListSetItemText (songGridList, row, 1, tostring(v[1]), false, true) guiGridListSetItemData (songGridList, row, 1, tostring(v[2])) end function CloseTheGui() guiSetVisible(Window_Radio, false) showCursor(false) end addEventHandler("onClientPlayerWasted", getLocalPlayer(), CloseTheGui) addEventHandler("onClientGUIClick", button_Close_Radio, CloseTheGui, false) function PlayRadio() SongFileB = guiGridListGetItemData(songGridList, guiGridListGetSelectedItem (songGridList), 1) local scheck = guiGridListGetItemText(songGridList, guiGridListGetSelectedItem ( songGridList ), 1) outputChatBox(scheck,255, 255, 0, true ) if scheck then local stationName = guiGridListGetItemText (songGridList, scheck, songColumn) if stationName then triggerServerEvent("SetSongBASE1", localPlayer, SongFileB) else outputChatBox("unknown error") end end end addEventHandler("onClientGUIClick", button_Play, PlayRadio, false) addEvent("StartSongBASE1", true) addEventHandler("StartSongBASE1", root, function(link) if isElement(soundBASE1) then stopSound(soundBASE1) end if not link then return end CloseTheGui() soundBASE1 = playSound3D(link, 191.73413, 1903.36255, 17.64063, true) setElementInterior ( soundBASE1, 0 ) setElementDimension ( soundBASE1, 0 ) setSoundVolume(soundBASE1, 2) setSoundMaxDistance(soundBASE1, 250) end) function SongPlaying (hitPlayer) if getElementType(hitPlayer) == "vehicle" or getElementType(hitPlayer) == "marker" or hitPlayer ~= localPlayer then return end local theGroup = getElementData (hitPlayer , "Group" ) if theGroup == groupName then if isElement(soundBASE1) then stopSound(soundBASE1) end guiSetVisible(Window_Radio, true) showCursor(true) else outputChatBox("group "..groupName.." only",255, 0, 255, true ) end end addEventHandler ("onClientMarkerHit", RadioMarkerBASE1,SongPlaying) function StopRadio() if isElement(soundBASE1) then stopSound(soundBASE1) end triggerServerEvent("SetSongBASE1", localPlayer, false) end addEventHandler("onClientGUIClick", button_Stop, StopRadio, false)
  5. ما شالله أبدأع بتوفيق لـــك ْ~ صراحــه عجبني ألـــمود كثـير
  6. قبل ما تكتب الاكود اضغط <>
  7. Jw8.

    مشكله

    ههههههههههه كل الفلات منشوره لا تفكر انت صنعه يجيبونه من ذا بزوكا ويسويه دي اكس ++دايما حاقد !
  8. Jw8.

    مشكله

    هههههههههههههههههههههههه صلني ساعه ادور في الويكي مب ملاقي
  9. Jw8.

    مشكله

    ابي كل ما حد يقتل شخص يعطيه اكس بي --Server addEventHandler("onPlayerSpawn",root, function() local xp = getAccountData(account,xp) if (xp >= +15) then triggerClientEvent("kill",localPlayer) end end ) --Client addEvent("kill",true) addEventHandler("kill",root, function() if ( xp ) then triggerServerEvent("kill",localPlayer) end end)
  10. ضيف الاكود ذي في ملف client ----Warp-Mission--- local g_resRoot = getResourceRootElement( getThisResource( ) ) WarpMission = guiCreateWindow(0, 296, 326, 190, "[ Warp Missions ]", false) guiSetVisible(WarpMission, false) centerWindow(WarpMission) guiMoveDownToCenter(WarpMission) WarpButton = guiCreateButton(62, 118, 180, 27, "Warp To Missions", false, WarpMission) CloseButton = guiCreateButton(62, 153, 180, 27, "Colse Warp", false, WarpMission) PlayersLabel = guiCreateLabel(1, 24, 81, 19, "Gang ", false, WarpMission) guiLabelSetHorizontalAlign(PlayersLabel, "center", false) VsLabel = guiCreateLabel(105, 24, 81, 19, "Vs", false, WarpMission) guiLabelSetHorizontalAlign(VsLabel, "center", false) PoliceLabel = guiCreateLabel(228, 24, 81, 19, "Police", false, WarpMission) guiLabelSetHorizontalAlign(PoliceLabel, "center", false) --- addEvent("showPlayerCountTowMission", true) addEventHandler("showPlayerCountTowMission", root, function( ) guiSetText(PlayerCountLabel, getElementData(g_resRoot,"PlayerCount") or "0") guiSetText(PoliceCountLabel, getElementData(g_resRoot,"PoliceCount") or "0") end) addEvent("showWarpTowMission", true) addEventHandler("showWarpTowMission", root, function( ) guiSetVisible(WarpMission, true) guiMoveDownToCenter(WarpMission) showCursor(true) setTimer(guiSetVisible,60000,1,WarpMission,false) setTimer(showCursor,60000,1,false) end) addEventHandler("onClientGUIClick",getRootElement(), function() if ( source == WarpButton ) then if getElementData(localPlayer, "LegalStatus") == "Jailed" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Jailed !", 255, 255, 0) return end if getElementData(localPlayer, "LegalStatus") == "Arrested" then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Arrested !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 4 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer,"Stats") == 5 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Not Go Mission Because You Are Kidnapped !", 255, 255, 0) return end if getElementData(localPlayer, "bag") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Bag !", 255, 255, 0) return end if getElementData(localPlayer, "ShowMarkerPoor") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Have The Poor Marker !", 255, 255, 0) return end if getElementData(localPlayer, "ShopPanel") then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000Close The Panel First!", 255, 255, 0) return end if getElementDimension(localPlayer) == 55 then exports["guimessages"]:outputClient("#3399FF[Tow Mission] #FF0000You Can't Go The Mission. You Are Already in The Mission !", 255, 255, 0) return end if (getTeamName(getPlayerTeam(localPlayer)) == "Medic") then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Medic is Not Allowed To Join This Mission !", 0, 255, 255) return end if (isPedDead (localPlayer)) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. You Are Dead !", 255, 255, 0) return end if not getPlayerTeam(localPlayer) then exports["guimessages"]:outputClient("#3399FF[Drug Mission] #FF0000You Can't Go The Mission. Not Join To Any Team First !", 255, 255, 255) return end fadeCamera(false) setTimer(fadeCamera, 3000, 1, true) triggerServerEvent ( "WarpTowMission", localPlayer ) guiSetVisible(WarpMission, false) showCursor(false) elseif ( source == CloseButton ) then guiSetVisible(WarpMission, false) showCursor(false) end end) عل عموم ذي سويته لك بانه منشورة
  11. function createMarkerAndOutputType ( x, y, z ) تعمل ماركار local theMarker = createMarker ( x, y, z ) -- إذا تم إنشاء علامة، if ( theMarker ) then -- ثم الحصول نوعه، local markerType = getMarkerType ( theMarker ) -- مثال -- outputChatBox ( "It's a " .. markerType .. " marker!" ) end -- return theMarker end ذه مثأل
  12. سلام عليكم ورحمة الله وبركاته في كثير م يفهمو exports اكسبورت ذه يفيدكم عند تركيب مود م يشتغل مثالْ exports["new"]:outputnew(source,"test",255,255,155) يعني مسوي مود مثال جيو مسج وتوبر شات ويفيدكم في ملف ميتا <export function="test" type="server"/> والمهم انشالله عجبكمم ,,..,, طبعا ششرح بسيط
  13. متفهم انت؟ اقول لك القيم مود مشفرر يعني مشفر والفكتشانات بل ملف يعني ما له داعي
  14. سهل جدأ + لا تجيب كذا مودات جيب مودات هجولة - تككتيك - ديث ماتش ألخخخْ
  15. تستهبل انت ؟ اصلن قيم مود التكتيك مشفر ما له داعي ذي
  16. استخدم marker1 = createMarker(768.55798,8.74740,1000.70984-1,'cylinder',1.3,2,12,255,100) setElementInterior (marker1,5) function marker(player) if ( getElementModel(player) == 0 ) then if getElementType(player) == "player" and player == localPlayer then guiSetVisible(GUIEditor.window[1], true) showCursor(true) guiSetInputEnabled(true) else exports["TopBarChat"]:sendClientMessage (player,"#FF0000 You Need Cj Skin To Buy This Stat",255,255,255,true ) end end end addEventHandler("onClientMarkerHit", marker1, marker)
  17. Jw8.

    مشكله

    مستعمل اكسبورت exports["addNotification"]:addNotification(id,"new","info",255,25,155) كذا مستخدم
  18. Jw8.

    مشكله

    وش المشكله الدي بق يكتب لي كذا
  19. سلام عليكم ابي ذه المود في قروب ادمن فقط elseif ( getElementData(player,"Staff") ~= 1 ) and ( model == 217 ) then exports["guimessages"]:outputClient(staffText, 255, 0, 0) اقدر ؟ StaffText = "[Staff Team]This Skin Four Admin" ذي مثال
  20. local xx, yy = guiGetScreenSize() local rx, ry = (xx/800), (yy/600) function lo7h() dxDrawRectangle(rx*424, ry*176, rx*368, ry*366, tocolor( 238, 15, 31, 255 ), false) dxDrawRectangle(rx*424, ry*176, rx*150, ry*51, tocolor(36, 218, 216, 255), false) dxDrawText("hide/show chat", rx*424, ry*176, rx*688, ry*337, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false) end
  21. dxDrawRectangle(rx*424, ry*176, rx*368, ry*366, tocolor( 238, 15, 31, 255 ), false)
×
×
  • Create New...