Jump to content

Stranger

Members
  • Posts

    710
  • Joined

  • Last visited

Everything posted by Stranger

  1. خخخخ ماشاء الله واذا انا نسخ لصق ليه ما تساعده انت ؟ والكود ذا مو صعب اني اسويه ,, بس دام الكود موجود ليه اسوي واحد جديد ؟؟ قال نسخ لصق نسخ لصق الحمد لله والشكر سو لك شي مفيد غير تكتب كلام ما له داعي
  2. هذا لأن الكود ناقص فيه كود ثاني حق سيرفر بس الرجال ما طرح غير كلنت
  3. اها معناها شكلكـ ماتعرف وش يعني بوابة مقر |--___--|"
  4. بس ابيك تفهمني وين طلب "بوابه يوم تقرب تفتح" " قروب معين" ؟؟؟؟؟؟؟؟؟؟؟؟ =--------------= انت تعرف وش معنى بوابة مقر يا عمري ؟ عندكـ صعوبة في فهم الخطأ ولا كيف وضعكـ ؟ خخخخخخخخ لو ما اعرف كيف طرحت الكود الي فوق ؟؟
  5. بس ابيك تفهمني وين طلب "بوابه يوم تقرب تفتح" " قروب معين" ؟؟؟؟؟؟؟؟؟؟؟؟ =--------------=
  6. الله يشفيك بس الحمد لله والشكر ومن قال ان الكود حقي ,؟؟؟ لاتتكلم كلام من عندك وبعدين ماني شايف خطأ في الكود خل عنك الفلسفه والكود الي طرحته كود اسامه نفس طلب الرجال وبعدين الرجال ما طلب ما حدد نوع الكود كيف بيكون عطيته الكود ذا وجاي تقول ماله علاقه !!
  7. ماله علاقة بالموضوع ^ : بالنسبة لصاحب الموضوع، استخدم createObject createMarker getElementData moveObject Event: "onMarkerHit" Event: "onMarkerLeave" Event: "onPlayerQuit" وش الي ماله علاقه ؟
  8. local Object = createObject ( 980,x,y,z ) local Marker = createMarker ( x,y,z, "cylinder", 2, 255, 0, 0, 0 ) function OpenObject ( player ) if isElementWithinMarker ( player, Marker ) then if not Open then moveObject ( Object, 1500, x,y,z ) else moveObject ( Object, 1500, x, y, z ) end Open = not Open end end addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, v in ipairs ( getElementsByType ( "player" ) ) do bindKey ( v, "tab", "down", OpenObject ) end end ) addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "tab", "down", OpenObject ) end )
  9. انا شفت انه ماراح يقدر يسويه #_# و عطيته
  10. ثانكسس مانستر فيسبوك نتعلم حبة حبة حياككك حياك الله
  11. # الحين انت ليه تعطيه ؟ # نحنا نبيه يحأول شوية بـ كم سطر مو عارف يسويه وأنت تجي تعطيه , ياخي خله يحأول الكود ساهل
  12. addEventHandler("onPlayerWasted", root, function (player) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == "Police" then setTimer (giveWeapon, 2500, 1, player, 3) end end )
  13. GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} Marker = { [1] = { 849.2998046875,1283.899140625,35.099998474121 }, [2] = { 849.2998046875,1284.899140625,35.099998474121 }, [3] = { 849.2998046875,1285.899140625,35.099998474121 }, [4] = { 849.2998046875,1286.899140625,35.099998474121 }, [5] = { 849.2998046875,1287.899140625,35.099998474121 }, [6] = { 849.2998046875,1288.899140625,35.099998474121 }, } addEventHandler ( "onClientResourceStart", resourceRoot, function ( ) for _,Markers in ipairs ( Marker ) do TheMarker = createMarker ( Markers[1], Markers[2], Markers[3] - 1, "cylinder", 2, 255, 0, 0, 250 ) end end ) local groupName = 'group name' vehicleId = {411,431,415,451,485,487,521,522,541,560,586} local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(500,147,246,413,"سيارات القروب",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9,34,228,255,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"اسم المركبة",0.5) GUIEditor_Button[2] = guiCreateButton(20,308,210,41,"اختيار",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(20,352,210,41,"إغلاق",false,GUIEditor_Window[1]) for i,id in ipairs ( vehicleId ) do guiGridListSetItemText ( GUIEditor_Grid[1], guiGridListAddRow( GUIEditor_Grid[1] ), column, getVehicleNameFromModel( id ), false, false ) end addEventHandler ("onClientMarkerHit", resourceRoot, function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'No Team' and not isPedInVehicle( player ) and player == localPlayer and getElementData ( player , "Group" ) == "groupName" then x999,y999,z999 = getElementPosition( localPlayer ) setElementFrozen ( localPlayer, true ) guiSetVisible(GUIEditor_Window[1],true) showCursor( true ) end end ) addEventHandler('onClientGUIClick', root, function() if ( source == GUIEditor_Button[1] ) then guiSetVisible(GUIEditor_Window[1],false) showCursor( false ) setElementFrozen ( localPlayer, false ) elseif ( source == GUIEditor_Button[2] ) then local name = guiGridListGetItemText( GUIEditor_Grid[1], guiGridListGetSelectedItem ( GUIEditor_Grid[1] ), 1 ) triggerServerEvent('gvoa', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end )
  14. الكود ماهو ناقص ليه لأن هذا الكود if isElementWithinMarker ( player, Marker ) then فيه !!
  15. انت سو اللوحه وسو شوية كودات تخلينا نساعدك
  16. اها الكود ماهو صغير عشان اعطيك له الكود طويل تصميم اللوحه وجدول السيارات يعني ماهو صغير انت لو تسوي اللوحه وتسوي لك شي على الاقل يخلينا نساعدك بس مافيه شي جاهز محدد يصمم لك بلاش
  17. فتح الباب تحط احداثيات المكان الي تبي الباب يتحرك له غلق الباب تحط احداثيات المكان الي سويت فيه الباب
  18. خخخخخخخ لا لا ,, احداثيات الباب يعني مثلا 111.5, 555.5, 52.5 تبي تحركه كذا 111.5, 555.5, 48.5 شف لاحظ انا غيرت ال 52.5 صارت كذا 48.5 عشان الباب يتحرك لتحت لو تبيه لفوق تكتب كذا 56.5 يعني تزود اخر رقم لاتحط احداثياتي هذي مثال انت شف وين مكانك واحداثياتك وحطها اذا تبي تعرف كيف تطلع الاحدثايات اضغط ح وشف لوحة الادمنيه وتلقى تحت مكتوب x y z انسخ ال x وبعدين y وبعدين z طبعا z الارتفاع اذا تبي يرتفع لفوق تزوده اذا تبيه ينزل تنقصه ------- ياليت فهمت
  19. احداثيات الماركر نفس احداثيات الباب
  20. جرب local thegate = createObject(980, x,y,z, 0, 0, 0) -- احداثيات الباب local Marker = createMarker(x,y,z, "cylinder", 8, 255, 0, 0, 0) -- احداثيات الماركر function open(hitPlayer) local acc = getPlayerAccount(hitPlayer) if ( acc )then if ( isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("اسم القروب")) ) then moveObject(thegate, 1000, x,y,z) -- فتح الباب end end end addEventHandler("onMarkerHit", Marker, open) function close(leavePlayer) local acc = getPlayerAccount(leavePlayer) if ( acc )then if ( isObjectInACLGroup("user."..getAccountName(acc), aclGetGroup("اسم القروب")) ) then moveObject(thegate, 1000, x,y,z) -- اغلاق الباب end end end addEventHandler("onClientMarkerLeave", Marker, close)
  21. الكود اول شي شغال مافيه شي انت حط الاحداثيات بس
  22. safecol = createColCuboid ( 95.974617004395, 1751.3895263672, 17.640625, 255, 255, 255 ) safeZoneRadar = createRadarArea ( 95.974617004395, 1751.3895263672, 255, 255, 255, 255, 255 ) setElementData (safeZoneRadar, "zombieProof", true) function enterZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) if ( skin == 280 ) then toggleControl (hitPlayer, "fire", true ) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("You message here example: you entering the area 69.", hitPlayer, 0, 255, 0) else killPed (hitPlayer) end end addEventHandler( "onColShapeHit", safecol, enterZone ) function leaveZone(hitPlayer,thePlayer) local skin = getElementModel (hitPlayer) toggleControl (hitPlayer, "fire", true) toggleControl (hitPlayer, "aim_weapon", true) toggleControl (hitPlayer, "vehicle_fire", true) outputChatBox("You message here example: you out the area 69", hitPlayer, 255, 0, 0) if not ( skin == 280 ) then killPed (hitPlayer) end end addEventHandler( "onColShapeLeave", safecol, leaveZone )
×
×
  • Create New...