Jump to content

The Killer

Members
  • Posts

    1,336
  • Joined

Everything posted by The Killer

  1. ما اتوقع اني قلت لغز
  2. غريبه لأني جربت الكود وشغال معي شكلك حاط السيرفر كلنت والكلنت سيرفر !!
  3. wnd = guiCreateWindow(360, 306, 267, 136, "مقر", false) guiCreateLabel(50, 28, 225, 49, "ادخل كلمة المرور لفتح البوابة:", false, wnd) text = guiCreateEdit(28, 61, 221, 37, "", false, wnd) guiEditSetMasked(text, true) button = guiCreateButton(100, 108, 64, 18, "موافق", false, wnd) function wnd1 () guiSetVisible(wnd,true) showCursor(true) guiSetText(text,"") end addEvent("gui", true ) addEventHandler("gui", getRootElement(), wnd1) addEventHandler ("onClientGUIClick", button, function () if guiGetText(text) == "12345" then guiSetVisible(wnd,false) showCursor(false) triggerServerEvent ("mvmarker", localPlayer) outputChatBox ("رقم سري صحيح",0,255,0) else guiSetVisible(wnd,false) showCursor(false) outputChatBox ("رقم سري خاطئ",255,0,0) end end ) addEventHandler("onClientResourceStart",root, function() guiSetVisible(wnd,false) end )
  4. غير اسم الماركر او غير اسم الترايقر !!!!
  5. addEventHandler("onResourceStart", resourceRoot, function (player) local team = createTeam("team", r,g,b) setTeamFriendlyFire(team, true) end )
  6. جرب -- # Server Side .. local marker = createMarker ( x,y,z,"cylinder",2,255,255,255,255 ) local TableWeapons = { [3] = true, } local TableWeapons2 = { [31] = true, [38] = true, -- حط الاسلحه الي تبيها } addEventHandler ( "onMarkerHit",marker, function ( player ) if getElementType ( player ) == "player" and not isPedInVehicle ( player ) then local PlayerWeapon = getPedWeapon ( player ) if ( TableWeapons [ PlayerWeapon ] ) and not ( TableWeapons2 [ PlayerWeapon ] ) then return outputChatBox ( "عذراً ليس لديك آي سلاح", player, 255, 0, 0 ) else outputChatBox ( "حسناً لديك آسلحة", player, 0, 255, 0 ) setPedArmor ( player,100 ) end end end )
  7. غير اسماء التيبلات + الترايقر
  8. هذا لأن كود باين فيه مشكله ,, انه ما يلصق جرب ذا local g_screenX, g_screenY = guiGetScreenSize() local gScale = 0.3 local gAlphaDistance = 10 local gMaxDistance = 20 local gTextAlpha = 120 local gTextSize = 1.5 local gAlphaDiff = gMaxDistance - gAlphaDistance gScale = 1 / gScale * 800 / g_screenY local gMaxScaleCurve = { { 0, 0 }, { 3, 3 }, { 13, 5 } } local gTextScaleCurve = { { 0, 0.8 }, { 0.8, 1.2 }, { 99, 99 } } local gTextAlphaCurve = { { 0, 0 }, { 25, 100 }, { 120, 190 }, { 255, 190 } } local marker = createMarker( 1, 1, 1, 'cylinder', 0, 0, 0, 0, 0) function draw ( ) local x, y, z = getCameraMatrix( ) local x1, y1, z1 = getElementPosition ( marker ) local distance = getDistanceBetweenPoints3D( x, y, z, x1, y1, z1 ) if distance <= gMaxDistance then local x1_, y1_ = getScreenFromWorldPosition( x1, y1, z1 + 0.95, 0.06 ) if x1_ and y1_ then local scale = 1 / ( gScale * ( distance / gMaxDistance ) ) local alpha = ( ( distance - gAlphaDistance ) / gAlphaDiff ) alpha = ( alpha < 0 ) and gTextAlpha or gTextAlpha - ( alpha * gTextAlpha ) scale = math.evalCurve( gMaxScaleCurve, scale ) local textscale = math.evalCurve( gTextScaleCurve, scale ) local textalpha = math.evalCurve( gTextAlphaCurve, alpha ) dx = dxDrawText( "سيارة صاحب السيرفر", x1_, y1_, x1_, y1_+5, tocolor ( 0, 0, 0, textalpha ), textscale * gTextSize, "sans", "center", "bottom", false, false, false, false ) end end end addCommandHandler('wh',function() local x, y, z = getElementPosition(localPlayer) if getPlayerSerial() == 'EFADF293886B2ABE46F3FE7CABD7D944' and isPedInVehicle(localPlayer) then attachElements( marker, localPlayer, 0, 0, 0) addEventHandler ( 'onClientRender', root, draw) else removeEventHandler('onClientRender', root, draw) end end ) function math.evalCurve( curve, input ) if input < curve[ 1 ][ 1 ] then return curve[ 1 ][ 2 ] end for idx = 2, #curve do if input < curve[ idx ][ 1 ] then local x1 = curve[ idx - 1 ][ 1 ] local y1 = curve[ idx - 1 ][ 2 ] local x2 = curve[ idx ][ 1 ] local y2 = curve[ idx ][ 2 ] local alpha = ( input - x1 ) / ( x2 - x1 ) return math.lerp( y1, y2, alpha ) end end return curve[ #curve ][ 2 ] end function math.lerp( from, to, alpha ) return from + ( to-from ) * alpha end
  9. كيف طارحه من قبل شف ردي انا اول رديت ! بعدين انت @_@
  10. ادري انا بس قصدي ان انا طرحت كود وشغال يعني ما يحتاج يطرح كود ثاني الا اذا كان كودي غلط !!
  11. try this: local marker = createMarker(2774.49,-2418.1,12.3, "cylinder", 7, 0, 0, 255, 0) local object = createObject(10182, 2774.29,-2417.99,14.49) addEventHandler("onMarkerHit", marker, function () moveObject(object, 2000, 2774.29,-2417.99,16.99) end ) addEventHandler("onMarkerLeave", marker, function () moveObject(object, 2000, 2774.2,-2417.99,14.4) end )
  12. will, try this : local marker = createMarker(x,y,z, "cylinder", 5, 255, 0, 0) local object = createObject(980, x,y,z) addEventHandler("onMarkerHit", marker, function () moveObject(object, 2000, x,y,z) end ) addEventHandler("onMarkerLeave", marker, function () moveObject(object, 2000, x,y,z) -- move the gate back ! end ) local marker = createMarker(x,y,z, "cylinder", 1.5, 255, 0, 0) addEventHandler("onMarkerHit", marker, function (player) setElementPosition(player, x,y,z) setElementInterior(player, number) -- change number to the house number ! end )
  13. try this gate1 = createObject ( 2990, 1621.39941, -1862, 16.5, 0,0,0 ) gatecol = createColCircle ( 1621.1999511719,-1860.5,12.5, 10 ) local groupName = "Group Name" function opengates(thePlayer) if getElementData(thePlayer, "gang") == groupName then moveObject (gate1, 650, 1621.40002, -1862, 7.3 ) end end addEventHandler( "onColShapeHit", gatecol, opengates ) function closegates(thePlayer) if getElementData(thePlayer, "gang") == groupName then moveObject (gate1, 650, 1621.39941, -1862, 16.5 ) end end addEventHandler( "onColShapeLeave", gatecol, closegates ) change "Group Name" to your group name
  14. ok you can use for the moving gate: Event 'onMarkerHit' createMarker createObject -- for the gate moveObject -- when the player hit the marker the gate move for the house: Event 'onMarkerHit' createMarker setElementPosition -- to make the player who hit the marker enter the house setElementInterior -- if the house in interior !
  15. اتوقع ان كودي مب غلط !
  16. ملاحظه ! تقدر تختصر getResourceRootElement(getThisResource()) ب resourceRoot
  17. addEventHandler("onClientPlayerDamage", localPlayer, function(attacker) if attacker and getElementType(attacker) == "player" and attacker ~= source then local g1 = getElementData(source, "gang") local g2 = getElementData(attacker, "gang") if g1 and g2 and g1 == g2 then cancelEvent() end end end )
  18. الله يصلحك انت تبي الكود خذه وجربه اما تقعد تدقق عن شي منت داري عنه شي لا تتكلم كثير خذ طلبك عندك سؤال استفسار ,, قوله مب تقعد تقول كلام من عندك الكود لو انك جربته عرفت ان مافيه خطأ الله يصلحك بس !
  19. هذا يلصق الاوبجكت في اي مكان في جسم الاعب او البيد
  20. lc = getLocalPlayer() Vimtos = guiCreateStaticImage(352, 164, 104, 87, "****.png", false) showCursor(true) object = createObject(1951, 0, 0, 0) addEventHandler ("onClientGUIClick", root, function () if (source == Vimtos) then exports.bone_attach:attachElementToBone(object,lc,12,0,0,0,0,-90,0) guiSetVisible(Vimtos, false) showCursor(false) end end ) function Anim() drink () setTimer ( destroyElement, 6000, 0, object ) setTimer (unbindKey, 6500, 1, "L", "down", Anim) end bindKey("L", "down", Anim) function drink () setPedAnimation(localPlayer, "BAR", "dnk_stndM_loop") setTimer (setPedAnimation, 6300, 1, localPlayer, false) end ملاحظه لا تضغط على الزر اضغط على الصوره + لازم تحمل المود ذا وتركبه وتشغله اضغط هنا
×
×
  • Create New...