αвυ-wαleed
Members-
Posts
495 -
Joined
-
Last visited
Everything posted by αвυ-wαleed
-
الحين ضغط h من برى الماركر يسوي الحركة ويشتري ابغى حاجة ما يشتري الا اذا اللاعب جوا الماركر يعني ابغى يتأكد من دخول اللاعب الماركر قبل القيام بالوظيفة local marker1 = createMarker ( 2759.8745117188,-2015.3276367188,12.9000000, "cylinder", 0.70, 252, 0, 252 ); local marker2 = createMarker ( 2127.2795410156,-1778.0109863281,13.357691574097, "cylinder", 0.70, 252, 0, 252 ); local bind = { } addEventHandler ( "onResourceStart", resourceRoot, function ( ) for _, p in ipairs( getElementsByType ( "player" ) ) do bindKey ( p, "h", "down", Animation ); end end ); addEventHandler ( "onPlayerJoin", root, function ( ) bindKey ( source, "h", "down", Animation ); end ); function Animation ( plr ) if isElementWithinMarker(plr, marker1)==isElementWithinMarker(plr, marker2) then local PlayerMoney = getPlayerMoney ( plr ); if ( PlayerMoney >= 150 ) then takePlayerMoney ( plr, 150 ); setElementFrozen ( plr, true ) setTimer (setElementFrozen, 5500, 1, plr, false) setPedArmor ( plr, 100 ); setPedAnimation ( plr, "FOOD", "EAT_Burger", _, false, _, _, false ); exports['topbarchat']:sendClientMessage ( " لقد قمت بشراء العصير ", plr, 0, 255, 255, true ) exports['topbarchat']:sendClientMessage ( "150$ ", plr, 0, 255, 255, true ) else exports['topbarchat']:sendClientMessage ( "* لا يوجد لديك المال الكافي لشراء العصير ", plr, 0, 252, 255, true ) exports['topbarchat']:sendClientMessage ( "150$ ", plr, 0, 252, 255, true ) end bind[ plr ] = true end end addEventHandler ( 'onMarkerLeave', root, function ( player ) if source == marker1 or source == marker2 then if ( getElementType ( player ) == "player" ) then exports['topbarchat']:sendClientMessage ( " H أذا أردت شراء العصير اضغط ", player, 255, 0, 255, true ) exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) end end end
-
مشكوووور ذا بست + أبو زهرة شغال %100
-
الكلام يطلع في الماركر 1 ابغى في الماركرين اتمنى التعديل local marker1 = createMarker ( 2759.8745117188,-2015.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); local marker2 = createMarker ( 2759.8745117188,-2022.3276367188,12.9000000, "cylinder", 0.75, 252, 0, 252 ); addEventHandler ( "onMarkerLeave", marker1, function ( player ) if ( getElementType ( player ) == "player" ) then if not ( bind[ player ] ) then exports['topbarchat']:sendClientMessage ( " H أذا أردت شراء العصير اضغط ", player, 255, 0, 255, true ) exports['topbarchat']:sendClientMessage ( " 150$ بمبلغ ", player, 255, 0, 255, true ) bind[ player ] = nil else bind[ player ] = nil end end end )
-
createMarker addEventHandler -- "onMarkerHit" getElementType getTeamName getPlayerTeam getElementPosition
-
اش الخطأ ؟؟؟؟ GUIEditor_Button = {} GUIEditor_Image = {} s = guiCreateWindow(302,239,705,295,"شيلات",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) ss = guiCreateGridList(224,23,468,207,false,s) guiGridListSetSelectionMode(ss,2) GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) guiSetFont(GUIEditor_Button[2],"default-bold-small") local Namesound = guiGridListAddColumn(ss,"شيلات",0.2) Namesound = { {"أبغى ارفع الصوت"}, {"الهلال والنصر"}, {"يارفيقي"}, {"ياعبد الغني"}, } if ( Namesound ) then for id,Namesound in ipairs(Namesound) do local row = guiGridListAddRow ( ss ) guiGridListSetItemText(ss, row, 1, tostring(Namesound[1]), false, false) end end 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", getRootElement(), function () if source == GUIEditor_Button[2] then local selectedRow, selectedCol = guiGridListGetSelectedItem( ss ) local Name = guiGridListGetItemText( ss, selectedRow, selectedCol ) elseif Name == "يارفيقي" then local sound1 = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "الهلال والنصر" then local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound1 = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "ياعبد الغني" then local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,true) local sound3 = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) local sound2 = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795,false) elseif Name == "أبغى ارفع الصوت" then setSoundVolume(sound, 0.9) end end end )
-
debugscript: Your debug mode was set to 3 debugscript: Your debug mode is already that
-
في اف 8 ولا في حقت المودات الي تحط فيه كودات التهكير
-
1.mp3 ياعبد الغني 2.mp3ابغى ارفع الصوت 3.mp3 الهلال والنصر 4.mp3يارفيقي نفس الاحداثيات حقت يارفيقي local sound = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795)
-
يب اشتغل انا ابغى الكل يشتغل واذا شغلت أي شيلة تقفل الباقي الا الي مشغلها واذا ضغطت على ايقاف تقفل كل الشيلات
-
طلعت بس اضغط عليها بعدين تشغيل ما اشتغل الصوت
-
كفوووو بس في حاجة خطا اسماء الشيلات ماهي ظاهرة يعني ماكأن فيه ولا شيلة
-
طيب سويت قريد لست لكن مدري اش الخطا GUIEditor_Button = {} GUIEditor_Image = {} s = guiCreateWindow(302,239,705,295,"شيلات",false) GUIEditor_Image[1] = guiCreateStaticImage(9,23,208,256,"A.png",false,s) ss = guiCreateGridList(224,23,468,207,false,s) guiGridListSetSelectionMode(ss,2) guiGridListAddColumn(ss,"شيلات",0.2) for i = 1, 4 do guiGridListAddRow(ss) end guiGridListSetItemText(ss,0,1,"أبغى ارفع الصوت") guiGridListSetItemText(ss,1,1,"الهلال والنصر") guiGridListSetItemText(ss,2,1,"يارفيقي") guiGridListSetItemText(ss,3,1,"ياعبد الغني") GUIEditor_Button[1] = guiCreateButton(317,235,134,48,"ايقاف",false,s) guiSetFont(GUIEditor_Button[1],"default-bold-small") GUIEditor_Button[2] = guiCreateButton(472,235,134,48,"تشغيل",false,s) guiSetFont(GUIEditor_Button[2],"default-bold-small") addEventHandler("onClientGUIClick",root, function () local sel = guiGridListGetSelectedItem(s) local text = guiGridListGetItemText(s,sel,1) if ( source == GUIEditor_Button[2] ) then if ( sel ~= -1 ) then destroyElement( sound ) end if ( source == GUIEditor_Button[3] ) then if ( sel ~= -1 ) then local sound = playSound3D("sound", -1490.0997314453, 762.89318847656, 8.3803997039795) end end end )
-
ماضبط اضغط زر a11 يشتغل صح واضغط a55 ماتقفل واضغط a22 او a33 او a44 تشتغل شيلتين معى بعض
-
ذا كلير كفوووو بس افهمني شوي ابغى الزر a55 يقفل كل الاغاني والزر a11 a22 a33 a44 اذا ضغطتها تشتغل الشيلة وتقفل الباقي مثلن فتح 1 تقفل 2 3 4
-
ابغى تعديل على الكود ابغى اذا ضغط على أي زر يشغل الاغنية تطفى الاغاني الباقية والزر a55 ابغاه يطفيها كلها 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 if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("1.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("2.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a33 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("3.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a44 ) then if ( isElement( sound ) ) then destroyElement( sound ) end local sound = playSound3D("4.mp3", -1490.0997314453, 762.89318847656, 8.3803997039795, true) setSoundMaxDistance(sound, 25) setSoundVolume(sound, 20.0) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == a55 ) then stopSound( 1.mp3,false ) stopSound( 2.mp3,false ) stopSound( 3.mp3,false ) stopSound( 4.mp3,false) end end ) addEventHandler("onClientGUIClick",root, function () if ( source == x ) then guiSetVisible ( sss ,false ) showCursor( false ) end end )
-
ماضبط الكوبرا احط الكود هذا في المود الي حملته ولا المود الي انا سويته
-
addEventHandler("onClientGUIClick",root, function () if ( source == a55 ) then end end ) ابغى الزر هذا يقفل الشيلا هذي 1.mp3 2.mp3 3.mp.3 4.mp3
