-
Posts
4,429 -
Joined
-
Last visited
Everything posted by #DRAGON!FIRE
-
اول سؤال .. : نعم لو خرج ودخل يمديه يرجع ياخذ الفلوس .. لانه الداتا لو اللاعب خرج من السيرفر فـ الداتا تروح ثاني سؤال .. : عادي ما في مشكلة هذا مجرد تحقق يعني تتحقق ان الداتا موجودة .. عسا حطيت تحقق الداتا بغير سكربت هو تحقق لو الداتا موجودة وش دخل انه فوقها ولا تحتها ذذ لو عندك اي اسئلة ثانية تفضل .
-
Event: "onMarkerHit" getElementType getPedOccupiedVehicle setElementPosition
-
لو تبي بـ بلب .. local marker = createMarker( ..... ) --- ماركر النو تيم اللي يروح منه للانترو local Intmarker = createMarker( ..... ) --- ماركر الانترو اللي يلصق به الاوبجكت local Quitmarker = createMarker( ..... ) --- ماركر الخروج من الانترو local WinMarker = createMarker( ..... ) --- ماركر كسب الفلوس والنجوم local TeamName = "NoTeam" --- اسم التيم حقكـ . local InteriorNumner = 5 --- رقم الانترو local object = { } local blip = { } local qX, qY, qZ = 362, 26, 135 --- احداثيات المكان اللي روح له يوم يخرج من الانترو local Money = 500 --- الفلوس اللي يكسبها ! local Stars = 4 --- عدد النجوم اللي تعطيها للاعب .. من 0 الى 6 local blipID = 52 --- ايدي البلب setElementInterior ( Intmarker, InteriorNumner ) setElementInterior ( Quitmarker, InteriorNumner ) addEventHandler( "onMarkerHit", resourceRoot, function( element ) if ( getElementType ( element ) == "player" ) then if ( source == marker ) then if ( getPlayerTeam( element ) and getPlayerTeam( element ) == getTeamFromName( TeamName ) ) then setElementInterior ( element, InteriorNumner ) end elseif ( source == Intmarker ) then if ( isElement( object[ element ] ) ) then destroyElement( object[ element ] ) object[ element ] = nil end if ( isElement( blip[ element ] ) ) then destroyElement( blip[ element ] ) blip[ element ] = nil end local x, y, z = getElementPositon ( element ) local rX, rY, rZ = getElementRotation ( element ) object[ element ] = createObject ( 1777, x + 2, y + 2, z, rX, rY, rZ ) attachElements ( object[ element ], element, x + 2, y + 2, z, rX, rY, rZ ) blip[ element ] = createBlipAttachedTo ( element, blipID ) elseif ( source == Quitmarker ) then setElementInterior ( element, 0, qX, qY, qZ ) end elseif ( source == WinMarker ) then if ( isElement( object[ element ] ) ) then destroyElement( object[ element ] ) object[ element ] = nil givePlayerMoney( element, Money ) setPlayerWantedLevel ( element, 6 ) outputChatBox ( "** u won and add Stars to u", element, 255, 0, 0, true ) if ( isElement( blip[ element ] ) ) then destroyElement( blip[ element ] ) blip[ element ] = nil end end end end ) addEventHandler( "onPlayerQuit", root, function( ) if ( isElement( object[ source ] ) ) then destroyElement( object[ element ] ) object[ source ] = nil if ( isElement( blip[ element ] ) ) then destroyElement( blip[ element ] ) blip[ element ] = nil end end end )
-
ما يحتاج .. بعدين عندك اكثر من ماركر كيف تحط اسم الماركر بالافنت ! @ Mu[T]e~> : خطا كتابي .. تم التعديل ذذ
-
ع اساس كودكـ صحيح عشان تقوله كودك هريسة ذذ لم يتم التجربة ... : local marker = createMarker( ..... ) --- ماركر النو تيم اللي يروح منه للانترو local Intmarker = createMarker( ..... ) --- ماركر الانترو اللي يلصق به الاوبجكت local Quitmarker = createMarker( ..... ) --- ماركر الخروج من الانترو local WinMarker = createMarker( ..... ) --- ماركر كسب الفلوس والنجوم local TeamName = "NoTeam" --- اسم التيم حقكـ . local InteriorNumner = 5 --- رقم الانترو local object = { } local qX, qY, qZ = 362, 26, 135 --- احداثيات المكان اللي روح له يوم يخرج من الانترو local Money = 500 --- الفلوس اللي يكسبها ! local Stars = 4 --- عدد النجوم اللي تعطيها للاعب .. من 0 الى 6 setElementInterior ( Intmarker, InteriorNumner ) setElementInterior ( Quitmarker, InteriorNumner ) addEventHandler( "onMarkerHit", resourceRoot, function( element ) if ( getElementType ( element ) == "player" ) then if ( source == marker ) then if ( getPlayerTeam( element ) and getPlayerTeam( element ) == getTeamFromName( TeamName ) ) then setElementInterior ( element, InteriorNumner ) end elseif ( source == Intmarker ) then if ( isElement( object[ element ] ) ) then destroyElement( object[ element ] ) object[ element ] = nil end local x, y, z = getElementPositon ( element ) local rX, rY, rZ = getElementRotation ( element ) object[ element ] = createObject ( 1777, x + 2, y + 2, z, rX, rY, rZ ) attachElements ( object[ element ], element, x + 2, y + 2, z, rX, rY, rZ ) elseif ( source == Quitmarker ) then setElementInterior ( element, 0, qX, qY, qZ ) end elseif ( source == WinMarker ) then if ( isElement( object[ element ] ) ) then destroyElement( object[ element ] ) object[ element ] = nil givePlayerMoney( element, Money ) setPlayerWantedLevel ( element, Stars ) outputChatBox ( "** u won and add Stars to u", element, 255, 0, 0, true ) end end end ) addEventHandler( "onPlayerQuit", root, function( ) if ( isElement( object[ source ] ) ) then destroyElement( object[ element ] ) object[ source ] = nil end end )
-
لـ طرح اكوادكـ Lua اولأ استخدم ثانيا السكربت مهو حقكـ السكربت مزروف ذذ
-
lol ! ? u cheek if Account Guest when player login !! ?
-
Event: "onMarkerHit" getElementType table setTimer math.random isPedInVehicle setElementPosition
-
setTimer guiProgressBarGetProgress guiProgressBarSetProgress killTimer
-
u mean u want command like this playSoundUrl Link
-
Client Side ! addEvent( "PlaySound", true ) addEventHandler( "PlaySound", root, function ( ) if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound( "chat.mp3" ) setSoundVolume( sound, 1.0 ) end ) Server Side ! addEventHandler( "onPlayerChat", root, function ( msg, msgType ) if ( msg ~= "" and msgType == 2 ) then triggerClientEvent( "PlaySound", root ) end end )
-
user on Server Side textCreateDisplay textCreateTextItem textDisplayAddText textDisplayAddObserver To Remove ... : textDisplayRemoveObserver on Client Side Event : "onClientResourceStart" triggerServerEvent
-
if nothing .. cheek ur level script
-
x: A float of the 2D x position of the GUI label on a player's screen. This is affected by the relative argument. y: A float of the 2D y position of the GUI label on a player's screen. This is affected by the relative argument. width: A float of the width of the GUI label. This is affected by the relative argument. height: A float of the height of the GUI label. This is affected by the relative argument.
-
حدث ضغط ليه ؟ .. 643636 يعني 300 سطر كيف بنشوف الخطا وممسوي مليون حدث ضغط شف الديبوق وهات الاخطاء
-
Problem From cancelEvent() | مشكلة بالنسبة للكناسل افنت
#DRAGON!FIRE replied to ™!>VàLéNTiNô<!™'s topic in البرمجة
. ما يتكنسل ( onPlayerDamage ) حدث -
اكوادكـ خطا وفي اشياء مالها داعي
-
اكوادكـ خطا ي الحبيب نسخ لصق ذذ
-
كل اكوادكـ خطا ذذ بس بدل الاحداثيات حق الماركر واحداثيات يوم يضغط الزر اللي هي posX, posY, posZ GUIEditor = { staticimage = {}, label = {}, gridlist = {}, combobox = {}, memo = {} } addEventHandler( "onClientResourceStart", resourceRoot, function( ) wnd = guiCreateWindow(431, 221, 748, 663, "FlyMTA|AirPort", false) guiWindowSetSizable(wnd, false) guiSetAlpha(wnd, 0.83) guiSetProperty(wnd, "CaptionColour", "FF2DB4D1") guiSetVisble( wnd, false ) ls = guiCreateButton(9, 19, 191, 250, "LS", false, wnd) guiSetFont(ls, "default-bold-small") guiSetProperty(ls, "NormalTextColour", "FF89D725") sf = guiCreateButton(9, 281, 191, 327, "SF", false, wnd) guiSetFont(sf, "clear-normal") guiSetProperty(sf, "NormalTextColour", "FF321BDF") lv = guiCreateButton(202, 21, 179, 250, "LV", false, wnd) guiSetFont(lv, "default-small") guiSetProperty(lv, "NormalTextColour", "FF7F9F5C") exit = guiCreateButton(200, 280, 181, 328, "Exit", false, wnd) guiSetFont(exit, "clear-normal") guiSetProperty(exit, "NormalTextColour", "FFF7062E") GUIEditor.gridlist[1] = guiCreateGridList(640, 28, 98, 625, false, wnd) guiGridListAddColumn(GUIEditor.gridlist[1], "AirPort Online", 0.9) guiGridListAddRow(GUIEditor.gridlist[1]) guiGridListSetItemText(GUIEditor.gridlist[1], 0, 1, "SOON", false, false) GUIEditor.label[1] = guiCreateLabel(431, 32, 195, 26, "FlyMTA V.1.0", false, wnd) guiSetFont(GUIEditor.label[1], "clear-normal") guiLabelSetColor(GUIEditor.label[1], 31, 211, 218) GUIEditor.staticimage[1] = guiCreateStaticImage(449, 173, 118, 181, ":guieditor/images/examples/mtalogo.png", false, wnd) guiSetProperty(GUIEditor.staticimage[1], "ImageColours", "tl:FF787E7C tr:FF787E7C bl:FF787E7C br:FF787E7C") GUIEditor.memo[1] = guiCreateMemo(411, 373, 200, 280, "Welcome To FlyMTA !!\n\n--\n\nمرحبا بك في فلاي ام تي اي \nلاول مره في لعبه ..\n\nMTA Plus !\nAirPort Online !\nRate ! \n\n--\n\nBy Mostafa \n\n", false, wnd) guiMemoSetReadOnly(GUIEditor.memo[1], true) GUIEditor.label[2] = guiCreateLabel(413, 89, 126, 15, "Rate :", false, wnd) guiSetFont(GUIEditor.label[2], "clear-normal") guiLabelSetColor(GUIEditor.label[2], 26, 219, 158) GUIEditor.combobox[1] = guiCreateComboBox(545, 91, 91, 61, "", false, wnd) guiSetFont(GUIEditor.combobox[1], "clear-normal") guiComboBoxAddItem(GUIEditor.combobox[1], "Bad") guiComboBoxAddItem(GUIEditor.combobox[1], "Nice") GUIEditor.label[3] = guiCreateLabel(-8, -18, 99, 18, "", false, GUIEditor.combobox[1]) GUIEditor.staticimage[2] = guiCreateStaticImage(327, 636, 24, 17, ":guieditor/images/dx_elements/slider_end.png", false, wnd) GUIEditor.staticimage[3] = guiCreateStaticImage(581, 238, 38, 38, ":guieditor/images/plus.png", false, wnd) GUIEditor.label[4] = guiCreateLabel(439, 149, 133, 14, "", false, wnd) GUIEditor.staticimage[4] = guiCreateStaticImage(620, 167, 10, 34, ":dxgui/images/checkboxcheck.png", false, wnd) marker = createMarker ( x, y, x, "cylinder", 2, 0, 125, 125, 125 ) end ) function RenderDx ( ) dxDrawImage(1378, 331, 124, 187, ":guieditor/images/examples/mtalogo.png", 0, 0, 0, tocolor(255, 255, 255, 255), true) dxDrawText("FlyMTA", 1380, 542, 1594, 577, tocolor(58, 233, 11, 255), 1.00, "pricedown", "left", "top", false, false, true, true, false) end addEventHandler( "onClientGUIClick", resourceRoot, function( ) if ( source == ls ) then setElementPosition ( localPlayer, posX, posY, posZ ) outputChatBox( "FlyMTA : Welcome To LS City" ) elseif ( source == sf ) then setElementPosition ( localPlayer, posX, posY, posZ ) outputChatBox( "FlyMTA : Welcome To SF City" ) elseif ( source == lv ) then setElementPosition ( localPlayer, posX, posY, posZ ) outputChatBox( "FlyMTA : Welcome To LV City" ) elseif ( source == exit ) then removeEventHandler( "onClientRender", root, RenderDx ) guiSetVisble( wnd, false ) showCursor( guiGetVisible ( wnd ) ) end end ) addEventHandler( "onClientMarkerHit", resourceRoot, function( element ) if ( source == marker ) then if ( element == getLocalPlayer( ) ) then addEventHandler( "onClientRender", root, RenderDx ) guiSetVisble( wnd, true ) showCursor( guiGetVisible ( wnd ) ) end end end )
-
الله يعافيكـ .. وفي اكثر من طريقة مو بالضروري ان باك
-
انت تبي يوم يخش ماركر ولا يضغط زر ؟ !
-
for i = 1, #Pos ["Pos"] do setElementPosition ( localPlayer, Pos [ "Pos" ] [i] ) end ثلاث ارقمنات انت ما جبتها وحطيتها بشكل صحيح setElementPosition فنشكن زي ما قالك استخدم unpack ممكن ما تستخدمها تسوي زي كذا setElementPosition ( localPlayer, Positions[ "Pos" ] [1], Positions[ "Pos" ] [2], Positions[ "Pos" ] [3] ) باستخدام ان باكـ local x, y, z = unpack ( Positions[ "Pos" ] ) setElementPosition ( localPlayer, x, y, z )