Jump to content

shwaeki

Members
  • Posts

    1,486
  • Joined

  • Last visited

Everything posted by shwaeki

  1. اخي هاد انا اعطيطك اياه من مقر انا مبرمجو و كلشي تمام
  2. تفضل اخول onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then function sp( source ) setElementPosition( source, X,Y,Z ) setPedArmor( source, 100 ) giveWeapon( source, 46 ) setPedSkin( source, ID ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) X,Y,Z = الاداثيات وين ينزل لما يموت ID = رقم الشخصية السكن giveWeapon( source, 46 ) = هاي عشين يعطي برشوت تقدر تغيرها بايدي سلاح No Team = هاي اذا كان في اي تيم يعمي رسبون لما يموت تقدر تغيرها يا التيم يلي تبي يعني اذا ارمي حطها شرطة و اذا عصابة خليها نو تيم groupName = اسم العصابة
  3. تفضل addEvent("carx",true) addEventHandler("carx",root, function (carxx) if getElementData ( source, "destroy" ) then destroyElement ( getElementData ( source, "destroy")) end local carname = getVehicleIDFromName(carxx) local x, y, z = getElementPosition ( source ) Vehicle = createVehicle (carname, x+2, y, z ) warpPedIntoVehicle ( source, Vehicle) setElementData ( source, "destroy", Vehicle ) end )
  4. اخي بس ممكن و انا راكب سيارة ما يفتح
  5. السلام عليكم انا معي كود ماركر يفتح نافذة سيارات بس ابي تفتح يا جروب معين هاد كود الماركر local car = createMarker (-2503.87964,-608.11981,132.56250, "cylinder", 1.5, 255, 255, 255, 255 ) addEventHandler('onClientMarkerHit', car, function ( hitPlayer ) if ( hitPlayer == localPlayer ) then guiSetVisible ( window ,true ) showCursor( true ) guiSetInputEnabled(false) end end ) addEventHandler( "onClientGUIClick", button , function () guiSetVisible(window,false) showCursor(false,false) end )
  6. اسف عشن ما رديت بس كتبتو و صار معي ظرف ضروري و بشكركم كلمكم ارجو ان تسامحوني
  7. السلام عليكم انا عندي مقر مبرمج و جاهز بس على مود العقرب كيف اخلية يشتغل على مود احمد فيف برمجة المقر local groupName = 'WAWI' local health = {} Door = createObject(980,1838.0999755859,888.29998779297,15.300000190735,0,0,90) markerDoor = createMarker(1838.0999755859,888.29998779297,15.300000190735,"cylinder",13,0,0,0,0) health1 = createMarker(1948.3400878906,899.49377441406,13.3,"cylinder",2,255,0,0,255) health2 = createMarker(0,0,0,"cylinder",0,0,0,0,0) eH = createMarker(1950.4020996094,892.09954833984,15,"arrow",1.5,0,255,0,255) oH = createMarker(2233.8999023438,1714.5999755859,1013.803527832,"arrow",2,0,255,0,255) setElementDimension( oH, 20 ) setElementInterior( oH, 1 ) createBlip(1893.8000488281,888.29998779297,13.5,23) fix = createMarker(1885.9619140625,907.9404296875,13,"cylinder",4,0,0,0,255) addEventHandler("onMarkerHit",root, function ( hPlayer ) if ( source == markerDoor ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject( Door, 500,1838.0999755859,888.29998779297,20 ) else outputChatBox( 'Only '..groupName..' !', hPlayer, 255, 0, 255 ) end elseif ( source == health1 ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then fixVehicle( getPedOccupiedVehicle( hPlayer ) ) setPedArmor( hPlayer, 100 ) setElementHealth( hPlayer, 100 ) end elseif ( source == eH ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then setElementDimension( hPlayer, 20 ) setElementPosition( hPlayer, 2234,1710,1012 ) setElementInterior( hPlayer, 1 ) setPedArmor( hPlayer, 100 ) setElementHealth( hPlayer, 100 ) outputChatBox('Welcome '..getPlayerName( hPlayer )..' !', hPlayer, 0, 255, 0 ) else outputChatBox('Only '..groupName..' !', hPlayer, 0, 255, 0 ) end elseif ( source == oH ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then setElementDimension( hPlayer, 0 ) setElementPosition( hPlayer, 1944,892,15 ) setElementInterior( hPlayer, 0 ) outputChatBox('See You Soon '..getPlayerName( hPlayer )..' !', hPlayer, 0, 255, 0 ) end elseif ( source == fix ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then fixVehicle( getPedOccupiedVehicle( hPlayer ) ) outputChatBox('Your Car Has Been Fixed !',hPlayer,0,255,0) end end end ) addEventHandler("onMarkerLeave",root, function ( hPlayer ) if ( source == markerDoor ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' then moveObject(Door,500,1838.0999755859,888.29998779297,15.300000190735) end end end ) onWasted = function() if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'No Team' and getElementData ( source , "Group" ) == groupName then function sp( source ) setElementDimension( source, 20 ) setPedSkin( source, 34 ) setElementPosition( source, 2236,1675,1009 ) setElementInterior( source, 1 ) setPedArmor( source, 100 ) end setTimer(sp,1000,1,source) end end addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted )
  8. السلام عليكم انا ابي كود بوابة تفتح يا تيم معين في تاب و لما اعص تاب تفتح ما ابيها تكون لما تقرب من الماركر بعرف انو راح تقولولي انو متكرر 1000 انا بحثت بس كلو بيطلع يا عصابة او يا تيم لما اقرب منو يفتح او يا سيريل ما لقين طلعب
  9. the killer والله انك كفو يا بعدين يا كينج لما اشل المود تطلع الوحة لوحدها برضو مشكور يا كنج
  10. اخي ما اشتغل الكود كلة ما طلعت لوحة
  11. اخي نفس الشي بطلع الوحة من دون الاسم و السيريل و الاي دي مو مشكلة عشين التحديث لانو السيريل و الاسم و الاي دي ما بدهم تحديث اما الفلوس بعدين احاول اسويها
  12. ممكن تسويلي اياه تكفا او تعطيني لوحة مع مثال
  13. السلام عليك اليوم سويت نافذة فيها الاسم الاي بي السيريل الفلوس كيف اخلي تجي جنب اسم الاسم اسم الاعب و السيريل سيريل الاعب و كم عدد فلوس الاعب الوحة GUIEditor = { label = {}, window = {} } addEventHandler("onClientResourceStart", resourceRoot, function() GUIEditor.window[1] = guiCreateWindow(10, 199, 277, 168, "~~<<<معلومات الاعب>>>~~", false) guiWindowSetSizable(GUIEditor.window[1], false) guiSetProperty(GUIEditor.window[1], "CaptionColour", "FF0EF0C8") GUIEditor.label[1] = guiCreateLabel(8, 143, 74, 18, " Money:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[1], 14, 240, 200) GUIEditor.label[2] = guiCreateLabel(10, 66, 74, 18, " ID", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[2], 14, 240, 200) GUIEditor.label[3] = guiCreateLabel(8, 32, 74, 18, " name: ", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[3], 14, 240, 200) GUIEditor.label[4] = guiCreateLabel(10, 105, 74, 18, " Serial:", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[4], 14, 240, 200) GUIEditor.label[5] = guiCreateLabel(5, 50, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[5], 51, 239, 14) GUIEditor.label[6] = guiCreateLabel(5, 123, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[6], 51, 239, 14) GUIEditor.label[7] = guiCreateLabel(5, 84, 272, 16, "_________________________________________________", false, GUIEditor.window[1]) guiLabelSetColor(GUIEditor.label[7], 51, 239, 14) end )
  14. مشكور يا ابو وليد و يا جعفر شكرااااااااااااااااا
  15. شكرا اخي زبط بس هو هيك يا لاعب واحد يعني بس يا الاعب يلي يعص الزر يتغير عندو
  16. انا مشغلة في HOST GAME
  17. طيب ابي كود لما اعص اغلاق تسكر النافذة
  18. يعني الحين يتغير بس يا الاعب لانو ما عندي سيرفر اجرب على الاعبين
  19. بسم الله الرحمان الرحيم سويت لوحة الطقس بس ابي اخليها لما يتغيرالطقس بس يا الاعب مو يا كل السيرفر و عشين مو ضروري الواحد يتم يعمل مواضيع ابي لما اعص اغلاق تسكر بختصار ابي كود لما اعص اغلاق تسكر النافذة و يتغير الطقس بس يا الاعب الكود GUIEditor_Window = {} GUIEditor_Button = {} GUIEditor_Window[1] = guiCreateWindow(784,322,309,253,"<<<الطقس>>>",false) GUIEditor_Button[1] = guiCreateButton(9,26,121,64,"ضباب",false,GUIEditor_Window[1]) GUIEditor_Button[2] = guiCreateButton(169,26,121,64,"ماطر",false,GUIEditor_Window[1]) GUIEditor_Button[3] = guiCreateButton(169,131,121,64,"طبيعي",false,GUIEditor_Window[1]) GUIEditor_Button[4] = guiCreateButton(9,133,121,64,"عاصفة",false,GUIEditor_Window[1]) GUIEditor_Button[5] = guiCreateButton(108,213,89,31,"اغلاق",false,GUIEditor_Window[1]) --------------------------------------------------- guiSetVisible(GUIEditor_Window[1],false) bindKey ( "F7" , "down" , function() if ( guiGetVisible ( GUIEditor_Window[1] ) == true ) then guiSetVisible ( GUIEditor_Window[1] ,false ) showCursor (false ) guiSetInputEnabled(false) elseif ( guiGetVisible ( GUIEditor_Window[1] ) == false ) then guiSetVisible ( GUIEditor_Window[1] ,true ) showCursor (false ) guiSetInputEnabled(true) end end ) addEventHandler ("onClientGUIClick", getRootElement(), function () if source == GUIEditor_Button[1] then setWeather ( 9 ) outputChatBox("تم تغير الطقس الى ضباب") end if source == GUIEditor_Button[2] then setWeather ( 8 ) outputChatBox("تم تغير الطقس الى ماطر") end if source == GUIEditor_Button[3] then setWeather ( 0 ) outputChatBox("تم تغير الطقس الى طبيعي") end if source == GUIEditor_Button[4] then setWeather ( 19 ) outputChatBox("تم تغير الطقس الى عاصفة") end end ) guiSetProperty(GUIEditor_Button[1],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[2],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[3],"NormalTextColour", "FF00FF00") guiSetProperty(GUIEditor_Button[4],"NormalTextColour", "FF00FF00")
  20. ابي كود ما ابي مود
  21. السلام عليكم ابي كود احط صورة على الخريطة اف 11 مثل هاي الصورة http://www12.0zz0.com/2013/11/21/16/350324681.png
  22. السلام عليكم شباب ابي حد يشوفلي مشكلة الكود هاد كود ماركر انتقال يا جروب معين في تيم معين local groupName = 'B13' oH = createMarker(821,-2114,14,"arrow",2,0,255,0,255) setElementInterior ( oH, 5 ) setElementDimension ( oH, 7521 ) and elseif ( source == oH ) then if getElementData( hPlayer, 'Group' ) == groupName and getPlayerTeam( hPlayer ) and getTeamName( getPlayerTeam( hPlayer ) ) == 'No Team' and not isPedInVehicle( hPlayer ) then setElementPosition( hPlayer, 3184,923,8) setElementInterior ( hPlayer, 0 ) setElementDimension ( hPlayer, 0 )
×
×
  • Create New...