-
Posts
1,165 -
Joined
-
Last visited
-
Days Won
3
Everything posted by ALw7sH
-
يب لاننا مطفين الكود الي يشيله
-
صورتين لنضام تعديل السيارات http://im65.gulfup.com/aEQ5XZ.png http://im70.gulfup.com/TtkSpY.png
-
local peds = math.floor(getElementHealth (ped1))
-
ithink u use supernick script ? try to stop it
-
local Marker = createMarker(2317.8000488281,-1026.5,1049.1999511719,"cylinder",1.2,0,0,0,0) function hitmarker(Ma) if getElementType(Ma) == 'player' then if isPedInVehicle(Ma) then attachElements ( Marker, getPedOccupiedVehicle(Ma), 0, 0, 0 ) removeEventHandler('onMarkerHit',Marker,hitmarker) else setElementPosition(Ma,x,y,z) end end end addEventHandler('onMarkerHit',Marker,hitmarker)
-
الكود الي انت حاطه كود ينقل اللاعب اذا خش الماركر ! انت تبي اذا لاعب خش الماركر بسياره الماركر يلصق بالسياره؟ لو ذا قصدك : local Marker = createMarker(2317.8000488281,-1026.5,1049.1999511719,"cylinder",1.2,0,0,0,0) function hitmarker(Ma) if getElementType(Ma) == 'player' and isPedInVehicle(Ma) then attachElements ( Marker, getPedOccupiedVehicle(Ma), 0, 0, 0 ) removeEventHandler('onMarkerHit',Marker,hitmarker) end end addEventHandler('onMarkerHit',Marker,hitmarker)
-
يمديك تسوي تحقق اذا شخص ركب السياره جنب السائق يشوف الاحداثيات الجديده حقتك بأنك تسوي تريقر من سيرفر الى كلنت
-
ماعندي فكره كامله عن الشي بس تحتاج تكون عارف للشادر اعتقد Edit: تقدر تستفيد من سكربت https://community.multitheftauto.com/ind ... ls&id=5645
-
بخصوص الماركر فيه سكربت من سكربتات القفز وكذا اذا استخدمته لازم يكون موجود بالسيرفر السكربت ويكون مشغل وبخصوص الاوبجكتات اذا قصدك زي دراقون بول مايحتاج dff just TXD تعدل الصور للأوبجكت الي تبيه ببرامج تعديل ال TXD مثل txdworkshop ^ مو متاكد بالضبط من الاسم
-
اول ماتشغل السكربت مابتجيك اللوحه اذا خرجت ودخلت بتجيك بعد دقيقتين ---------------------------------- -----------| Settings |----------- ---------------------------------- blackLoginScreen = true -- Set to 'true' to display a black screen to the player untill they log in or choose to play as a guest. enableKickPlayer = true -- Set whether to kick the player after they fail to login specified amount of times. disallowLogout = false -- Set whether to show the userpanel to the players if they log out of their accounts. removeBlackScreenTime = 4 -- The time it takes for the black screen to dissapear - If you choose to display the black screen. [iN SECONDS] maxLoginAttempts = 5 -- Set the maximum incorrect login attempts before the player gets kicked - If player kicking is enabled. ---------------------------------- -- Screen and GUI sizes, don't modify screenWidth,screenHeight = guiGetScreenSize() mainWidth,mainHeight = 269,272 regWidth,regHeight = 469,372 addEvent("onRequestIncreaseAttempts",true) addEvent("onRequestDisplayPanel",true) function loginPanel() -- Check if autologin is enabled - If yes, then log the player in, else create and show the userpanel local xmlFile = xmlLoadFile("user.xml") if xmlFile then status = xmlNodeGetAttribute(xmlFile,"autologin") if (status == tostring(true)) then local username = tostring(xmlNodeGetAttribute(xmlFile,"username")) local password = tostring(xmlNodeGetAttribute(xmlFile,"password")) if not (username == "") and not (password == "") then triggerServerEvent("onRequestAutologin",getLocalPlayer(),username,password) end else if blackLoginScreen == true then fadeCamera(false,0,0,0,0) end mainWindow = guiCreateWindow(428,132,624,688,"Login-Panel",false) guiWindowSetSizable(mainWindow,false) guiCreateMemo(23,294,579,364,"قوانين:",false,mainWindow) mInfo = guiCreateMemo(23,294,579,364,infoText,false,mainWindow) guiMemoSetReadOnly(mInfo,true) guiCreateButton(453,210,156,46,"help",false,mainWindow) editUsername = guiCreateEdit(22,75,187,38,"",false,mainWindow) guiEditSetMaxLength(editUsername,30) editPassword = guiCreateEdit(22,146,187,38,"",false,mainWindow) guiEditSetMaxLength(editPassword,30) guiEditSetMasked(editPassword,true) lblUsername = guiCreateLabel(30,52,152,18,"UserName:",false,mainWindow) guiLabelSetVerticalAlign(lblUsername,"center") guiLabelSetHorizontalAlign(lblUsername,"center",false) guiSetFont(lblUsername,"default-bold-small") lblPassword = guiCreateLabel(30,129,152,18,"Passowrd:",false,mainWindow) guiLabelSetVerticalAlign(lblPassword,"center") guiLabelSetHorizontalAlign(lblPassword,"center",false) guiSetFont(lblPassword,"default-bold-small") guiSetFont(btnPlayAsGuest,"default-bold-small") btnLogin = guiCreateButton(19,210,189,46,"Login",false,mainWindow) btnToggleRegister = guiCreateButton(244,210,189,46,"Register",false,mainWindow) guiSetFont(btnToggleRegister,"default-bold-small") registerWindow = guiCreateWindow(screenWidth/2-regWidth/2,screenHeight/2-regHeight/2,regWidth,regHeight,"register-Panel",false) guiWindowSetSizable(registerWindow,false) editRegistrationUsername = guiCreateEdit(98,138,242,25,"",false,registerWindow) editRegistrationPassword = guiCreateEdit(98,195,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationPassword,true) editRegistrationRepeatPassword = guiCreateEdit(99,252,242,25,"",false,registerWindow) guiEditSetMasked(editRegistrationRepeatPassword,true) lblRUsername = guiCreateLabel(98,100,242,17,"username",false,registerWindow) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) guiSetFont(lblRUsername,"default-bold-small") lblRUsername = guiCreateLabel(98,413,242,17,"Passowrd",false,registerWindow) guiLabelSetVerticalAlign(lblRUsername,"center") guiLabelSetHorizontalAlign(lblRUsername,"center",false) guiSetFont(lblRUsername,"default-bold-small") lblRPassword = guiCreateLabel(98,171,242,17,"Passowrd",false,registerWindow) guiLabelSetVerticalAlign(lblRPassword,"center") guiLabelSetHorizontalAlign(lblRPassword,"center",false) guiSetFont(lblRPassword,"default-bold-small") lblRepeatPassword = guiCreateLabel(98,230,242,17,"Passowrd-2:",false,registerWindow) guiLabelSetVerticalAlign(lblRepeatPassword,"center") guiLabelSetHorizontalAlign(lblRepeatPassword,"center",false) guiSetFont(lblRepeatPassword,"default-bold-small") btnCancel = guiCreateButton(232,292,179,38,"Close",false,registerWindow) guiSetFont(btnCancel,"default-bold-small") btnConfirmRegistration = guiCreateButton(29,292,179,38,"Register",false,registerWindow) guiSetFont(btnConfirmRegistration,"default-bold-small") guiSetVisible(mainWindow, false) guiSetVisible(registerWindow, false) guiSetInputEnabled(true) showCursor(true) addEventHandler("onClientGUIClick",btnLogin,onClickLogin) addEventHandler("onClientGUIClick",btnToggleRegister,onClickRegisterToggle) addEventHandler("onClientGUIClick",btnPlayAsGuest,onClickGuest) addEventHandler("onClientGUIClick",btnConfirmRegistration,onClickRegisterConfirm) addEventHandler("onClientGUIClick",btnCancel,onClickCancel) addEventHandler("onRequestIncreaseAttempts",getRootElement(),increaseAttempts) attemptedLogins = 0 end end end addEventHandler('onClientPlayerJoin',getRootElement(), function() setTimer(function() guiSetVisible(mainWindow, true) end,2*60000,1) end )
-
احين هي تشتغل اول ماتشغل السكربت و أول ما اللاعب يخش السيرفر؟
-
??? ابي أفهم ليه تبكي كل ما اصححلك أخطائك؟ ترا عادي اي واحد يخطئ مافيها شي .. لكن العقول الطفولية مادري وش اقول عنها ع كلن يابني اذا ماتعرف تساعد وتبي تصير تبكي لو احد صححلك؛ إذن لاتساعد اصرفلك واضح من الي يتفلسف ومسوي فيها خبير وهو مادرى وش السالفة مايحتاج اطول الموضوع واطلعه عن مساره تبي تساعد الرجال ساعده بدون ماتتفلسف شفت الاكواد خطأ صححها وانت ساكت ماتبي مو لازم تتفلسف واذا بتقولي بعطيك معلومه المعلومه خلها لك ..
-
؟onClientMarkerHit ليه تحقق من ان الي دخل الماركر هو لاعب في حدث : هذا الحدث مايوصله إشارة إلا لما يدخله "لاعب" فقط، لاحظ الويكي وش يقولك فلذلك مايحتاج تحقق ان اللاعب الي دخل الماركر هو لاعب لكن لازم تتحقق ان اللاعب الي دخل الماركر هو اللوكال بلاير + فيه عندك اند زايد بالكود الأول وكذلك الأمر بالكود الثاني + /: انا مادري ليه تستخدمون الطرق هذي وهو فيه مود يقوم بهذا كله : راح يسهل عليك ويوفر عليك الوقت والجهد .. وهنا شرح كيفية إستعماله Interiors استخدم مود https://wiki.multitheftauto.com/wiki/Resource:Interiors أبي اعرف انت بس كذا دايم تتفلسف ؟ اذا ماتبي تساعد ليه تتفسلف ؟ دامك انت الفاهم واحنا الي مانفهم كان جيت من البدايه وساعدته انت وثاني شي الرجال طلب شي تبي تسويه تسويه ماتبي مايحتاج تجلس تقوله استخدم مود مدري وش ومدري وش
-
4 صفحات على كود بسيط !!! addEventHandler('onClientMarkerHit',MarkerName, function(plr) if getElementType(plr) == "player" then if isPedInVehicle(plr) then return end setElementInterior(plr, int, x, y, z) end end end ) edit : ولماركر الخروج لازم تصنع ماركر جوا الانتيريور مثلاً marker = createMarker(....) setElementInterior(marker,int) addEventHandler('onClientMarkerHit',MarkerName, function(plr) if getElementType(plr) == "player" then if isPedInVehicle(plr) then return end setElementInterior(plr, 0, x, y, z) end end end )
-
https://www.dropbox.com/s/5fckoits88pgn ... -59-20.png
-
https://www.dropbox.com/s/pti53uyrmea0g ... round2.png https://www.dropbox.com/s/o6ohuwcmkleov ... -06-27.png https://www.dropbox.com/s/h3u0azacki72v ... .22.07.png
-
ان شاء الله نشوفك احسن من FFS ;p بالتوفيق ومنتظرين السيرفر
-
يا شباب الله يخليك محتاج كود واحد واخلص وظيفه سيريال كيلر ا
ALw7sH replied to Mode-Magdy's topic in البرمجة
addEventHandler('onResourceStart',resourceRoot, function() team = createTeam('Team Name',255,0,0) -- يصنع تيم end ) addEvent("onPlayerGive", true) addEventHandler("onPlayerGive", root, function( ) giveWeapon(source, 31, 20) -- يعطيه رشاش setElementModel(source, 29) -- يعطيه شخصية رقم 29 setElementPosition(source, 1207.62122,-1751.25647,13.59317) -- عدل الاحداثيات x, y, z takePlayerMoney(source,5000) -- ياخذ من اللاعب فلوس setPlayerTeam(source,team) -- ينقل اللاعب للتيم outputChatBox ( "* You Have Take A Job Successfully | Kill Any One To Win 5000 Dollars !" ) end) -
اذا منت ضايف حساب Console الى قروب كونسول لو صكيت احد ميوت وخرج ودخل ينفك + حتى لو خلص وقت الميوت مابينفك
-
لازم تعدل كل الوظائف الي عندك عشان تسويها
-
addEventHandler('onClientMarkerHit',MarkerName, function(hitplr) if getElementType(hitplr) == "player" then setElementInterior(hitplr, int, x, y, z) end end )
-
addEventHandler("onMarkerHit",root, function (player) if ( source == mar ) then if getElementType(player) == "player" then if isPedInVehicle(player) then return outputChatBox ( "ERROR", player, 255, 0, 0, true ) end -- اذا بسياره مايقدر ياخذها if getTeamName( getPlayerTeam(player) ) == 'Police' then return outputChatBox ( "ERROR", player, 255, 0, 0, true ) end -- اذا شرطي مايقدر ياخذها local x,y,z = getElementPosition(player) local data = getElementData(mar,"num") local data = tonumber(data) destroyElement(mar) destroyElement(ob) destroyElement(bl) killTimer(time) setElementData(player,"bag",true) atBag = createObject(1210,x,y,z) setElementData(atBag,"num",data) exports.bone_attach:attachElementToBone(atBag,player,12,0,0.05,0.27,0,180,0) bli = createBlipAttachedTo(player,17) attachedMarker = createMarker(x, y, z, "corona", 1, 255, 0, 255, 150) attachElements(attachedMarker, player, 0, 0, 0) exports.guimessages:sendClientMessage("* #ffffff[ #ff0000" .. getPlayerName(player) .. "#ffffff ]#0069c7 Has Take The Bag",root,0,255,0,true) marker = createMarker(mark[data][1],mark[data][2],mark[data][3],"cylinder",1.5,255,255,0,255,player) marBli = createBlipAttachedTo(marker,12,2,255,0,0,255,0,99999.0,player) end end end )