-
Posts
1,992 -
Joined
-
Last visited
-
Days Won
4
Everything posted by 3NAD
-
اممـ انا اشوف انه ماركر بـ لآ فائدة وش اللي تبيه يصير + وين الإيفنت حقه ؟
-
عندكـ بـ الإيفنت " عند ضغط الزر " تزيد عليه شرط إذا كان الزر كذا ينفذ كذا
-
bab = createVehicle ( 411, -0.77234786748886, 0.1968837082386, 3.1171875 ) function giveMoney ( vehicle ) if vehicle == bab then if getElementData ( source, "theMarker" ) then destroyElement ( getElementData ( source, "theMarker" ) ) removeElementData ( source, "theMarker" ) end cac = createMarker ( 14.138179779053, 14.694575309753, 2.1171875, "cylinder", 5, 0, 0, 205, 170 ) setElementData ( source, "theMarker", cac ) end end addEventHandler ( "onPlayerVehicleEnter", root, giveMoney )
-
GUIEditor_Window = {} GUIEditor_Window[1] = guiCreateWindow(360,191,545,194,"By_NicKeL'z",false) guiSetVisible ( GUIEditor_Window[1], false ) LV_B = guiCreateButton(0.0183,0.1186,0.9651,0.3866,"LV",true,GUIEditor_Window[1]) LS_B = guiCreateButton(0.0239,0.5412,0.9596,0.3454,"LS",true,GUIEditor_Window[1]) ------------------------------ --- Open Panel ------------------------------ function showUserPanel ( ) if guiGetVisible ( GUIEditor_Window[1] ) then guiSetVisible ( GUIEditor_Window[1], false ) showCursor ( false ) else guiSetVisible ( GUIEditor_Window[1], true ) showCursor ( true ) playSound ( "s3d.wav" ) triggerServerEvent ( "getVoteDatas", localPlayer ) end end bindKey ( "F3", "down", showUserPanel ) addEventHandler ( "onClientGUIClick", root, function() if source == LS_B then triggerServerEvent ( "SetTeam", localPlayer ) end end ) كان عندكـ زرين متكررين .. سطر 16 onresourceStart و وظيفة راح تتنفذ مع تشغيل المود bindKey مآلها داعي لأن سطر 27 المفروض تخليه يفتح مو يقفل إيفنت سطر 34 guiRoot = ??
-
طيب خلهم يفكونه و يعطونكـ النتيجة من الأكواد ^^
-
^ مو لآزم بالحرف سواء كان كبتل أو سمول السيرفر رآح يفهمها و يشغلها + أهنيكـ على هذا السكربت الرائع و بالتوفيق لك
-
حالياً تقدر تستخدم بدون اضافات root مباشرة -- امثلة root = getRootElement ( ) resourceRoot = getResourceRootElement ( )
-
-- حطه أول الملف 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
-
-- Server Side bab = createVehicle ( 411, -0.77234786748886, 0.1968837082386, 3.1171875 ) outputChatBox ( "#00FF00BeCool", root, 255, 255, 255, true ) function giveMoney ( vehicle ) if vehicle == bab then setPlayerWantedLevel ( source, 1 ) triggerClientEvent ( source, "theBlip", source, bab ) end end addEventHandler ( "onPlayerVehicleEnter", root, giveMoney ) -- Client Side theBlip = createBlip ( 0, 0, 0, 35 ) addEventHandler ( "theBlip", root, function ( theCar ) attachElements ( theBlip, theCar ) end )
-
حط كودك
-
سو وظيفة و حط لها اسم function BLOW ( ) وش اللي تبيه يصير حطه داخل الوظيفة function BLOW ( ) blowVehicle ( ) كذا الكود ناقص اي سيارة يفجرها ؟؟ function BLOW ( ) blowVehicle ( getPedOccupiedVehicle ( source ) ) و ننهي الوظيفة بـ كلمة end function BLOW ( ) blowVehicle ( getPedOccupiedVehicle ( source ) ) end طيب هالحين نبي شيء يشغلها متى تنفجر السيارة ؟؟ function BLOW ( ) blowVehicle ( getPedOccupiedVehicle ( source ) ) end addEventHandler ( "onPlayerVehicleEnter", root, BLOW ) root حنا استخدمنا يعني اي سيارة راح تخرج منها تنفجر
-
-- Server Side car = createVehicle ( 411, -0.77234786748886, 0.1968837082386, 3.1171875 ) createBlipAttachedTo ( car, 25 ) -- icon = 25 تاخذه من صفحة الكود addEventHandler ( "onPlayerVehicleEnter", getResourceRootElement ( getThisResource ( ) ), function ( ) givePlayerMoney ( source, 10000 ) end )
-
الكود شغال و اذا خلص اللي باليسار يطلق عادي مثل الأصل وش اللي تبي تسويه ؟
-
^ ^ سطر 16 انت الناطق الرسمي حقه ؟
-
Table = { 'MJNONFIK', 'MR.S3D', '3ɑsн8 ɑʟsнɾq', 'ρяєsτɪɢє', 'TaLaL', 'jafar', 'SoRa', 'T9', 'nony', '|Mr|-Talal07-|', '1bmnx', '3ήẰÐ', '13', '14', }
-
setTimer ( function ( ) if guiGetVisible ( GUIEditor_Window[1] ) and isPedInVehicle ( localPlayer ) then guiSetText ( GUIEditor_Label[2], "Your Car : ".. getVehicleName ( getPedOccupiedVehicle ( localPlayer ) ) ) else guiSetText(GUIEditor_Label[2],"You Don't Have Car") end end , 2000, 0 )
-
الأكواد المهمة . . -- Client Side guiGetText -- جلب المكتوب في خانة اليوزر او الباس triggerServerEvent -- تريقر لـ سيرفر -- Server Side addEvent -- اضافة إيفنت من تريقر logIn -- تسجيل الدخول addAccount -- تسجيل جديد
-
إذا الملف كلنت جرب كذآ function BOX ( ) outputChatBox ( "No #00FF00Comment !!", 255, 0, 0, true ) end setTimer ( BOX, 5000, 0 )
-
اعتقد انه شغآل اكواد اللون جرب و رد خبر
-
اممـ أعتقد هذا اسهل كود بـ نسبة لـ مبتدا =/ function BOX ( ) -- نصنع وظيفة outputChatBox ( "No Comment !!", root, 255, 0, 0, true ) -- كود مخرج النص end -- ننهي الوظيفة -- الحين الوظيفة مالها أي فائدة نبي شيء يشغلها -- نستخدم حدث - مؤقت - كلمة - زر . . إلخ -- BOX = وبما ان اسم الوظيفة setTimer ( BOX, 5000, 0 ) -- نصنع المؤقت -- 1000 = 1 Sec = ثانية -- 5000 = 5 ثواني
-
ترى الأكواد جاهزة انت اللي عليك تركبها فوق بعض وانتهى الموضوع 1- createMarker 2- isPedInVehicle 3- guiSetVisible 4- Event "onClientMarkerHit"