
khaledmhammed
Members-
Posts
535 -
Joined
-
Last visited
Everything posted by khaledmhammed
-
معليش سفاح ضهرت مشكله الان لو انا راكب السياره وخويي ركب السياره ثم انا نزلت العلامه تختفي للكل اللي بتيم وراكبين السياره يعني لو واحد نزل تختفي منه العلامه وتختفي من الكل مو منه لحاله
-
عداك العيب تممام وتختفي ولا احلى .. شكرأ لك فكيت ازمةة بالكود
-
مافي خطاء يمكن انا غلطت ب التركيب شوف ذا كامل function pe () if guiGetVisible (GUIEditor.window) == true then else showCursor (true) guiSetVisible (GUIEditor.window,true) end end addEvent ("MinerPizz", true) addEventHandler ("MinerPizz",root, pe) addEvent ( "barco_set_locationPizz", true ) addEventHandler ( "barco_set_locationPizz", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 41 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finishPizz", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end addEventHandler ( "onClientVehicleExit", root, function ( thePlayer ) if ( thePlayer == localPlayer ) then if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end ) GUIEditor_Button = {} GUIEditor_Grid = {} GUIEditor_Marker = {} GUIEditor_Window = {} vehicleId = {448}--1279.17859 -805.24109 86.12299 GUIEditor_Marker[1] = createMarker(1224.5068359375, -900.4482421875, 42.898097991943-1,"cylinder",2,255,255,0,255) -- السيارة GUIEditor_Marker[2] = createMarker(1209.6396484375, -904.720703125, 43.020980834961,"cylinder",3,255,0,0,0) -- الكلام فوق البيد local x,y = guiGetScreenSize() local x = x - 208 local y = y - 321 GUIEditor_Window[1] = guiCreateWindow(432, 152, 211, 297,"Pizz Job",false) guiSetVisible(GUIEditor_Window[1],false) guiSetAlpha(GUIEditor_Window[1],1) guiWindowSetSizable(GUIEditor_Window[1],false) GUIEditor_Grid[1] = guiCreateGridList(9, 22, 192, 228,false,GUIEditor_Window[1]) guiGridListSetSelectionMode(GUIEditor_Grid[1],2) column = guiGridListAddColumn(GUIEditor_Grid[1],"vehicle name",0.9) GUIEditor_Button[2] = guiCreateButton(9, 255, 81, 33,"Select",false,GUIEditor_Window[1]) GUIEditor_Button[1] = guiCreateButton(127, 255, 74, 33,"Close",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", GUIEditor_Marker[1], function( player ) if getPlayerTeam( player ) and getTeamName( getPlayerTeam( player ) ) == 'Pizz' and not isPedInVehicle( player ) and player == localPlayer 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('gvoaPizz', getLocalPlayer(), name) guiSetVisible(GUIEditor_Window[1],false) setElementFrozen ( localPlayer, false ) showCursor( false ) end end ) ------------------------------------------------------------------------------------------------------------- ------------------------------------------------------------------------------------------------------------- addEventHandler("onClientRender", getRootElement(), function() local x, y, z = getElementPosition (GUIEditor_Marker[2]) local x2, y2, z2 = getElementPosition(localPlayer) if(isLineOfSightClear(x, y, z, x2, y2, z2, true, true, false, true)) then local sx, sy = getScreenFromWorldPosition(x, y, z+2) if(sx) and (sy) then local distance = getDistanceBetweenPoints3D(x, y, z, x2, y2, z2) if(distance < 100) then dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") dxDrawText("Pizz Job", sx, sy, sx, sy, tocolor(255, 255, 0, 1000), 2-(distance/100), "arial", "center", "center") end end end end)
-
ماشتغل البلب معاد يطلع
-
اهاا صح والله لكن سويته ذا الحدث ونسخت الكود تحته وحطيت addEventHandler ( "onClientPlayerWasted", root, function ( thePlayer ) if ( thePlayer == localPlayer ) then if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end )
-
السلام عليكم كيفككم باختصار ممعي مود جربته تمام ذذ لكن طلع فيه مشكله الحين لو الاعب نزل من الموتر البلب يختفي لكن لو مات وهو داخل الموتر ورسبن البلب ماراح يختفي وراح يكون بق لذالك ابي اخليه الماركر يختفي لو الاعب مات وهو داخل السيارة .. اتمنى الافادة هذا الكود اللي ممكن تحتاجونه حاولت اسوي حدث الموت بدال بدال حدث النزول من سياره لكن اكتشفت ان الحدث الموت سيرفر وقلت ممكن تحتاج ترايقر و يمكن لا ومو فاهم لة addEvent ( "barco_set_locationPizz", true ) addEventHandler ( "barco_set_locationPizz", root, function ( x, y, z ) marker = createMarker ( x, y, z - 1, "cylinder", 2.5, 235, 141, 19, 153 ) blip = createBlipAttachedTo ( marker, 23 ) addEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) end ) function onBarcoStopHit ( hitPlayer ) if ( getElementType ( hitPlayer ) == "player" ) and ( hitPlayer == localPlayer ) then triggerServerEvent ( "pizza_finishPizz", localPlayer ) if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end addEventHandler ( "onClientVehicleExit", root, function ( thePlayer ) if ( thePlayer == localPlayer ) then if isElement ( blip ) then destroyElement ( blip ) end if isElement ( marker ) then removeEventHandler ( "onClientMarkerHit", marker, onBarcoStopHit ) destroyElement ( marker ) end end end )
-
تمام .. يعطيكك العافيةة
-
هنـأ يطلع خطاء ب الارجمنت اذا الاعب مات لن مابي اخطاء بالديبوق كثير تسبب لاق ذذ addEvent ("onPlayerWasted", true) addEventHandler ("onPlayerWasted", root, function (ammo,killer, weapon) if getPlayerTeam (killer) and getTeamName ( getPlayerTeam ( killer ) ) == "V" then if killer == source then return end givePlayerMoney (killer, 500) outputChatBox ("You have been killed by" .. getPlayerName (killer), source, 255,252,0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $500", killer, 255,252,0) end end ) بسطر ذا if getPlayerTeam (killer) and getTeamName ( getPlayerTeam ( killer ) ) == "V" then
-
شكرأ خيـو سفـأخ تمام
-
مازبط يقولي ارجمنت بالديبوق
-
السلام عليكم كيفكم ابي اسوي تايمر لسباون مادري وش المشكله ولا يطلع اخطاء addEventHandler("onPlayerWasted",root,function () if ( getPlayerTeam(source) == getTeamFromName("V") ) then function pp () setTimer ( spawnPlayer(source,2264.072265625, -1104.564453125, 37.9765625), 4000, 1, pp ) end end end) سوال .. كيف جعل شاشاه الاعب سوداء لمدة معينه بعد موتة
-
اتوقع قصدة ساعات تواجد الاعب في تاب
-
خلاص تمام زبط يعطيك العافية : )
-
يعطيكم العافية العقرب قولت فوق ع العموم بجرب وشوف
-
الكود لذا كيلير ع ماعتقد لا قتلت يجيك فلوس بس لا قتلت نفسك بقنبلة تربح فلوس بدون ماتقتل احد addEvent ("onPlayerKilled", true) addEventHandler ("onPlayerKilled", root, function (killer, weapon) givePlayerMoney (killer, 300) outputChatBox ("You have been killed by " .. getPlayerName (killer), source, 255, 0, 0) outputChatBox ("You have killed " .. getPlayerName (source) .. " and you earned $3000", killer, 0, 255, 0) end ) اتمنى الحل
-
يعطيك العافية مية مية التايمر نفس مابي شكرأ وكذالك نصور يعطيك العافية
-
ياليت تسوي له تايمر لا اخذ الدم و دقيقه ويرجع
-
شكرا يعطيك العافية بسالك لو ابيه يرجع كل وقت معين صح ولا setTime ذي + سوال وش الداعي من local Pickup يعني لو ماحطها وسوي كذا function dm () createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) createPickup ( 2495.8466796875, -1674.33984375, 13.335947036743, 1, 100 ) setElementHealth ( Player, 100 ) addEventHandler ( "onPickupHit", dm ) end بتكون في مشاكل ولا عادي
-
سفاح سويته كذا زبط ثم سويت رستارت للمود ثاني اختفى ولاعاد يطلع function dm () createPickup ( 2488.3349609375, -1660.029296875, 13.335947036743, 0, 100 ) setElementHealth ( Player, 100 ) addEventHandler ( "onPickupHit", dm ) end
-
السلام عليكم باختصار ابي الاعب اذا مشاء فوق هذي createPickup ( 2500.447265625, -1665.619140625, 13.353348731995, 0, 100 ) يجي له دم وش استخدم ولو في حدث حطوة
-
عداكك العيب ي شيخ ضبططت وزي العسسل soory تعبتك معي يعطيك الف الف عافية وشكرأأ
-
الكود كله 75 سطر من وين جات 85 ض1 بذا السطر بس لني حاط كود فوق صار اكثر ( Acc and not isGuestAccount ( Acc ) then
-
lua.85 ")" enpected near "then"
-
اختفى التيم