Vunili
Members-
Posts
431 -
Joined
-
Last visited
-
Days Won
2
Everything posted by Vunili
-
بدت الإجازة
-
باقي ساعتين ع الإجازه
-
وعليكم السلام getElementPosition createMarker attachElements
-
باقي 7 ساعات وتخلص الإجازة
-
بدت الإجازه
-
باقي ساعتين ع الإجازه
-
addCommandHandler( "GetCameraPos", function ( ) local x, y, z, xl, yl, zl = getCameraMatrix( ) if ( x == 0 or y == 0 or z == 0 ) then return end setClipboard(" "..x..", "..y..", "..z..", "..xl..", "..yl..", "..zl.." ") end )
-
local var = 0 addCommandHandler("var", -- امر كوماند function ( cmd , mark ) if ( mark ) then if mark == "+" then -- اذا كتبت الأمر فار وحطيت موجب راح تلاحظ ان الرقم انزاد واحد var = var + 1 elseif mark == "-" then -- نفس الشي اذا حطيت سالب راح تلاحظ ان الرقم قل var = var - 1 elseif mark == "delete" then -- اذا حطيت = بعد الأمر فار يرجع الرقم 0 if var >= 1 then var = 0 end end end end ) addEventHandler("onClientRender",root, function () dxDrawText(var, 553, 361, 811, 397, tocolor(255, 255, 255, 255), 1, "default-bold", "center", "center", false, false, true, false, false) end ) edit : اشرحوا لي ذا الكود؟ function sizeFormat(size) local size = tostring(size) if size:len() >= 4 then if size:len() >= 7 then if size:len() >= 9 then local returning = size:sub(1, size:len()-9) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-7) end return returning.." GB"; else local returning = size:sub(1, size:len()-6) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-4) end return returning.." MB"; end else local returning = size:sub(1, size:len()-3) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-1) end return returning.." KB"; end else return size.." B"; end end
-
--server function speaker ( client, command ) local x, y, z = getElementPosition ( client ) local speaker = createObject ( 2229, x, y, z -1 ) if (getPedOccupiedVehicle(client)) then attachElements(speaker, getPedOccupiedVehicle(client), 0.3, -0.2, 1.1 ) end end addCommandHandler ( "spk", speaker ) --ذا مثال بسيط --سو اذا ضغط زر التشغيل ينزل السبيكر او اذا دخل السيارة --طبعا لا تنسى تسوي تريقر من كلينت ل سيرفر
-
سوق كوم مسوين عروض تشتري جهاز يعطونك الثاني مجانا الحق ماتلحق http://deals.souq.com/sa-ar/tag/8228
-
طيب اشرحوا الكود اللي فوق؟
-
سكربت جميل لاكن توجد مشكلة اذا سجلت خروج تظهر اللوحة بوجهك , بالتوفيق
-
@#BrosS يسوي حركة وما تقدر توقف الا اذا طفيت المود -- function sizeFormat(size) local size = tostring(size) if size:len() >= 4 then if size:len() >= 7 then if size:len() >= 9 then local returning = size:sub(1, size:len()-9) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-7) end return returning.." GB"; else local returning = size:sub(1, size:len()-6) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-4) end return returning.." MB"; end else local returning = size:sub(1, size:len()-3) if returning:len() <= 1 then returning = returning.."."..size:sub(2, size:len()-1) end return returning.." KB"; end else return size.." B"; end end
-
@lil'potato come here
-
@lil'potato ماذا تريد؟
-
@lil'potato
-
@lil'potato
-
صراحة سكربت اكثر من رائع ومتعو ب عليه اهنيك صراحة , بالتوفيق
-
createObject(2229, x, y, z ) getPedOccupiedVehicle attachElements
-
https://community.multitheftauto.com/index.php?p=resources&s=details&id=11717
