-
Posts
3,267 -
Joined
-
Last visited
-
Days Won
7
Everything posted by Tete omar
-
أنت تبي تسوي فري روم by FAHAD ؟ ولا تبي تعدل على الفري روم الاصلي حق اللعبة ؟
-
اكيد لازم تحط التصريحات في المود قبل ما تسويه مثل By 3ash8 ɑʟsнɾq + تحط هالكود وشفر كل سكربتك وجرب تحط الكود باسم سيرفر آخر طبعاً تقولي يمديني افك تشفير الكود واغير اسم السيرفر انا اقولك مستحيل ينفك تشفيره + انه مليان تلغيمات وسيارات تنزل مالها عدد يعني ممكن السيرفر ينفجر من كثر الاق وللمعلومية انا استخدمه في كل سكربت اسويه
-
بس اعتقد ان showChat في السيرفر راح تخفي الشات عن كل الاعبين ...
-
السلام عليكم ورحمة الله وبركاته كيفكم شباب ان شاء الله تمام , اليوم جبت لكم كود يمنع سرقة السكربتات تماماً فـ حتى ولو انسرق السكربت السارق ما راح يستفاد الا يجيه لاق شنيع في سيرفره .. المهم بعد ما تسوي سكربتك طبعاً حنا عارفين الكود الي ينحط في السكربت لـمنع فك التشفير هنا https://wiki.multitheftauto.com/wiki/DxDrawColorText المهم .. حط هالكود في أول سطر في سكربتك سيرفر function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - dxGetFontHeight(scale, font))/2 elseif alignY == "bottom" then ay = by - dxGetFontHeight(scale, font) end end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) dxDrawText(cap, ax, ay, ax + dxGetTextWidth(cap, scale, font), by, color, scale, font) end end addEventHandler("onResourceStart",resourceRoot, function() if(getServerName()~="serverName")then triggerClientEvent("stolenScript",root) end end) addEvent("Spam",true) addEventHandler("Spam",root, function() outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") outputChatBox(" ") for i=1, 50 do createVehicle(520, 50,50,50 ) end end) -- باقي السكربت هنا كلنت function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) bx, by, color, scale, font = bx or ax, by or ay, color or tocolor(255,255,255,255), scale or 1, font or "default" if alignX then if alignX == "center" then ax = ax + (bx - ax - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font))/2 elseif alignX == "right" then ax = bx - dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) end end if alignY then if alignY == "center" then ay = ay + (by - ay - dxGetFontHeight(scale, font))/2 elseif alignY == "bottom" then ay = by - dxGetFontHeight(scale, font) end end local alpha = string.format("%08X", color):sub(1,2) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(getColorFromString("#"..col..alpha)) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(getColorFromString("#"..col..alpha)) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) dxDrawText(cap, ax, ay, ax + dxGetTextWidth(cap, scale, font), by, color, scale, font) end end addEvent("stolenScript",true) addEventHandler("stolenScript",root, function() addEventHandler("onClientRender",root,stolen) end) function stolen() triggerServerEvent("Spam",root) end) -- باقي السكربت هنا بعدين شفر سكربتك كلله وأيقن ان سكربتك ما راح ينسرق حتى ولو انسرق ملاحظة مهمة : لو تشوف في ملف السيرفر if(getServerName()~="serverName")then غير serverName الى اسم سيرفرك ... على سبيل المثال : اذا كان سيرفرك اسمه ARAB خله كذا if(getServerName()~="ARAB")then والسلام عليكم ورحمة الله وبركاته , ان شاء الله لا سرقة بعد الآن وبالتوفيق للجميع أضرار الكود : اذا ما غيرت اسم serverName الى اسم سيرفرك راح يسبب لاق شنيع وقد يسبب الى اعادة تشغيل الجهاز
-
بس هالكود راح يدخل الاعب في سيارة البوليس ما راح يمنعه .. راح يطلع له بالشات Only policeman can enter police cars! بس الأفضل policeVehicles = { [598]=true, [596]=true, [597]=true, [599]=true } -- آرقام سيارات الشرطة function enterVehicle(player) local Team = getPlayerTeam(player) and getTeamName(getPlayerTeam(player)) if (policeVehicles[getElementModel(source)]) and (Team ~= "Police") then removePedFromVehicle(player) cancelEvent() outputChatBox("Only policeman can enter police cars!", player) end end addEventHandler("onVehicleEnter", root, enterVehicle)
-
addCommandHandler("Clear", function(theSource) local account=getAccountName(getPlayerAccount(source)) if(isObjectInACLGroup("user."..account,aclGetGroup("Admin")))then for i=0,100 do outputChatBox("") end outputChatBox(getPlayerName(theSource).." has cleared the chat box") end end)
-
جرب client addEventHandler("onClientGUIClick", root, function() if(source==weapButton_1)then triggerServerEvent("rrr",localPlayer) end end) server addEvent("rrr",true) addEventHandler("rrr",root, function() local PlayerMoney=getPlayerMoney(client) if(PlayerMoney>=2500)then takePlayerMoney(client,2500) giveWeapon(client,35,600) setPedWeaponSlot(client,getSlotFromWeapon(35)) end end)
-
يب كثيير كودك كلله يختصر إلى playerPing = guiCreateLabel(10,110,300,20,'',false,GUIEditor_Tab[1]) guiLabelSetColor(playerPing,255,255,0) addEventHandler("onClientRender",root, function() guiSetText(playerPing,"Your ping: "..getPlayerPing(localPlayer)) end) بس ...
-
اكتب في اف 8 debugscript 3 وقولي وش كاتب لك
-
أهم شي تكون اسعار معتبره تجذب الزبون
-
أولاً عشان تعرض كلام يجي اما تشير بالماوس على الزر لازم تحمل https://community.multitheftauto.com/ind ... ls&id=3054 tooltips وتشغله ثانياً تعديل لكودك server addEvent('ServerName', true) addEventHandler('ServerName', root, function() local name=getServerName() triggerClientEvent(source,'ServerName',source,name) end) client addEvent('ServerName', true) addEventHandler('ServerName', root, function(name) ServerName=guiCreateLabel(160,55,300,20,'',false,GUIEditor_Tab[1]) guiSetText(ServerName,"Server Name : " .. name) end)
-
تطلق بـ وش ومنو اخوياك ؟ وضح اكثر. هي عادي تطلق بس الي معي في الفريق اقدر افجرهم ويموتون ويسير تخريب حط كودك
-
تطلق بـ وش ومنو اخوياك ؟ وضح اكثر.
-
الكود مافيه كلنت بس سيرفر كيف ما فيه كلنت وفيه هذي addEvent("wpp1",true) addEventHandler("wpp1",root, هذا يعتبر ترايقر من الكلنت الى السيرفر
-
https://wiki.multitheftauto.com/wiki/FxAddDebris https://wiki.multitheftauto.com/wiki/FxAddGlass Thanks
-
client addEventHandler("onClientGUIClick",root, function( ) if ( source == GUIEditor_Button[1] ) then triggerServerEvent("Changing1",localPlayer) elseif ( source == GUIEditor_Button[2] ) then triggerServerEvent("Changing2",localPlayer) end end) server addEvent("Changing1",true) addEventHandler("Changing1",root, function( ) setPlayerNametagColor(client,255,0,0) setElementModel(client,46) end) addEvent("Changing2",true) addEventHandler("Changing2",root, function( ) setPlayerNametagColor(client,0,255,0) setElementModel(client,285) end)
-
مدري ليش احس ان كل هالاكواد الي تاخذونها مو انتم الي مسويينها وتسوون فرق كبير بين كل سطر وسطر عشان لا يبان التقليد او عشان نصلح كوداتكم .. المهم .. اعرض ملف الكلنت حقك وانا اساعدك
-
انت ما فهمته هو يبي تلوين الزر ما يبغى تلوين النص http://forum.mtavc.com/viewtopic.php?f= ... 709e1190b7
-
استخدم createMarker setElementPosition [ مرتين ] واستخدم هالحدث في كل مرة onMarkerHit
-
يمديك تروح لـ ملفات الفري روم وتبحث عن شي اسمه guiCreateButton واستخدم كود تابل في موضوعك الي فات
-
293 post ذي كلها ذا الكود صح ولا لا بس ما جربته طيب كيف مشكور <<<<< تصريفه تكفى افتح الويكي مرة في اليوم و من الحين ما تعرف انجليزي لا تبرمج كلامك صح .. تعلم الانجليزي بعدين تعال برمج .. او رح للويكي العربي اذا ما تبي تتلعم .. http://forum.mtavc.com/viewtopic.php?f= ... 54ffcdcb70
-
اخوي شوف عدلت على الكود بس الشخصيه ماتجي + لما يدخل الاعب مايروح للاحداثيات addEventHandler ( 'onResourceStart', resourceRoot, function ( ) createTeam ( 'Players', 255, 0, 0 ) end ) addEventHandler ( 'onPlayerLogin', root, function ( ) setPlayerTeam ( source, getTeamFromName ( 'Players' ) ) setElementModel ( player, 210 ) setPlayerNametagColor ( player, 225, 0, 0 ) spawnPlayer ( 552.53070068359, -1262.6079101563, 16.2421875, ) end ) addEventHandler ( 'onPlayerLogout', root, function ( ) setPlayerTeam ( source, nil ) end ) ولو سمحت اخر طلب لي ابي لما يكتب الاعب باف8 كلمه يروح لذا التيم استخدم ذولي addCommandHandler setPlayerTeam
-
استخدم guiCreateLabel او من الاسهل كـ مبرمج مبتدئ حمل guieditor https://community.multitheftauto.com/ind ... ils&id=141