Jump to content

sajad

Members
  • Posts

    20
  • Joined

  • Last visited

Posts posted by sajad

  1. السلام عليكم

    شباب ابي كود لاهنتو

    كود شعار فوق الى يلعب السيرفر

    مابية من يكتب ابية من يمشي شعار فوقة مكتوب اسم السيرفر

  2. اخوي , جربت الكود اللي نزلته :D

    والكود سليم , إلا إنه المشكلة ان البوابة تفتح لجميع الاعضاء سواء شرطة او غيرهم

    ولو عندي خبره افضل لعطيتك كود الخاص بالتيم ولكن مازلت مبتدى ^^

    ارجوا ان يفيدوك مبرمجين !

    زين اي سطر اكتب اسمم قروبي

  3. السلام عليكم شباب

    ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس

    وعليكم السلام ..

    createObject

    moveObject

    getPlayerTeam

    getTeamName

    وكود سباون

    حدد سباون وش

    وولوحة سيارات

    setVehiclePlateText

    شكرأأأ

    بس شوف الكود صح تبع البوابات

    local x,y,z = 2096.3, 1721, 12.7 
    local easing = "OutBounce" 
    local time = 2000 
    local gate = createObject(980, x,y,z, 0, 0, 63) 
    local marker = createMarker(x,y,z, "cylinder", 12, 0, 0, 0, 0) 
      
    function moveGate(hitPlayer, matchingDimension) 
            moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing) 
    end 
    addEventHandler("onMarkerHit", marker, moveGate) 
      
    function moveBack() 
        moveObject(gate, time, x, y, z, 0, 0, 0, easing) 
    end 
    addEventHandler("onMarkerLeave", marker, moveBack) 
    function teamName ( source, key, newTeamName ) 
        local playerTeam = getPlayerTeam ( source )           
        if ( playerTeam ) then                                
            local oldTeamName = getTeamName ( playerTeam )    
            setTeamName ( playerTeam, newTeamName )           
            outputChatBox ( "Changed " .. getPlayerName ( source ).."'s team name from " .. oldTeamName .. " to " .. newTeamName ) 
        else 
            outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) 
        end 
    end 
    addCommandHandler ( "teamname", teamName ") 
      
    function whatTeamAmIOn ( source ) 
        -- Get the player's team (source is the player who entered the command) 
        local playerTeam = getPlayerTeam ( source ) 
      
        if ( playerTeam ) then -- if he was on a team 
            outputChatBox ( getPlayerName ( source ) .. " is on team: " .. getTeamName ( playerTeam ) ) 
        else 
            outputChatBox ( getPlayerName ( source ) .. " isn't on a team" ) 
        end 
    end 
      
    addCommandHandler ( "whatTeamAmIOn", whatTeamAmIOn ) 
      
      
      
     
    

    ذا الكود تبع البوابة ممكن حد يشوفة

  4. السلام عليكم شباب

    شباب ابي منكم طلب

    ابي كود لبرمجة بوابة = ابي 2 بوابة لان المقر فية 2 بوابات وابي الكود يمشي على الشرطة بس

    وكود سباون

    وولوحة سيارات

    الله يخليكم الله يخليكم ساعدوووووني ممكن والله جازكم خير الجزاء

    edit:

    شباب ممكن رد

  5. ¡Hola

    ¿Puedo obtener un cuartel general de programación de código

    1_ código de la puerta

    2_ Código de Casa

    3_ coches Código Marker

    4_ Código Shield Blood Marker

    Gracias

    Y lo siento por ese tema

  6. بعدين انت عندك فـ الكود الثالث غير هذول متحقق من تيمه باسم الداتا .. وش تقصد ؟

    onWasted = function() 
        if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) then 
                    function sp( source ) 
                    setElementPosition( source, 1223.4812,-1639.51074,10.8 ) 
                    setPedArmor( source, 100 ) 
                    giveWeapon( source, 46 ) 
                    setPedSkin( source, 285 ) 
                    end 
                    setTimer(sp,1000,1,source) 
            end 
        end 
    addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) 
    

    [/b]

    شكرأأ لانن جديد بالبرمجة الله يجازيكم كل خير

    'onPlayerSpawn' > 'onPlayerWasted' 
    

    اخطاءه كثيرة .. صححت له بعض الاغلاط الموجودة ..

  7. بعدين انت عندك فـ الكود الثالث غير هذول متحقق من تيمه باسم الداتا .. وش تقصد ؟

    onWasted = function() 
        if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) then 
                    function sp( source ) 
                    setElementPosition( source, 1223.4812,-1639.51074,10.8 ) 
                    setPedArmor( source, 100 ) 
                    giveWeapon( source, 46 ) 
                    setPedSkin( source, 285 ) 
                    end 
                    setTimer(sp,1000,1,source) 
            end 
        end 
    addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) 
    

    local GroupName = "S.W.A.T" 
    local gateID = "980" 
    local Gx, Gy, Gz = "1220.97656, -1690.26758, 36.5781" 
    local Grx, Gry, Grz = "1120.93656, -1490.26743, 36.5781" 
    local Gx1, Gy2, Gz3 = "1120.93656, -1490.26743, 36.5781" 
    local Time = "9" 
      
    local gate = createObject ( gateID, Gx, Gy, Gz, Grx, Gry, Grz ) 
    local marker = createMarker ( Gx, Gy, Gz, "cylinder", 7, 0, 0, 0, 0 ) 
      
    addEventHandler ( "onMarkerHit", marker, 
        function ( plr ) 
            if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, GroupName ) then 
                moveObject ( gate, Time * 1000, Gx1, Gy2, Gz3 ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onMarkerLeave", marker, 
        function ( plr ) 
            if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, GroupName ) then 
               moveObject ( gate, Time * 1000, Gx, Gy, Gz ) 
           end 
       end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
       function ( ) 
           if ( isElementWithinMarker ( source, marker ) ) and ( getElementData ( source, GroupName ) ) then 
               moveObject ( gate, Time * 1000, Gx, Gy, Gz ) 
           end 
       end 
    ) 
    

    االكود مو تبعي والله واحد ناشره

    وانا كتبتة وانا جديد بالبرمجة

  8. تبيه للقروب ولا التيم ؟

    ابية لقروب بس ابي البوابة تفتح لكل التيمات

    يعني مثل النو تيم والشرطة والمسعفين ابيهم ابيهم يفتح لهم الباب يعني مو محددد

  9. السلام عليكم شباب

    انا حبيت ابرمج مقر سوات

    وبغيت تشوفو اكوادي

    كود رسباون

      onWasted = function() 
            if getPlayerTeam( source ) and getTeamName( getPlayerTeam( source ) ) == 'Police' and getElementData ( source , "S.W.A.T" ) == groupName then 
                    function sp( source ) 
                    setElementPosition( source, 1223.4812,-1639.51074,10.8 ) 
                    setPedArmor( source, 100 ) 
                    giveWeapon( source, 46 ) 
                    setPedSkin( source, 285 ) 
                    end 
                    setTimer(sp,1000,1,source) 
            end 
        end 
        addEventHandler ( "onPlayerSpawn", getRootElement(), onWasted ) 
    

    كود دم ودرع

    marker = createMarker ( 1223.4812,-1639.51074,10.8, "cylinder", 2, 255, 0, 255, 255 ) 
          
    addEventHandler ( "onMarkerHit", marker, 
        function ( player ) 
            if getElementType ( player ) == "player" then 
                local playerTeam = getPlayerTeam ( player ) 
                if playerTeam then 
                    if playerTeam == getTeamFromName ( "S.W.A.T" ) then 
                        setPedStat ( player, 24, 989 ) 
                        setElementHealth ( player, 200 ) 
                        setPedArmor ( player, 100 ) 
                        setPedSkin ( player, 285 ) 
                    else 
                        outputChatBox ( "* You most be 'S.W.A.T'", player, 0, 0, 255, true ) 
                    end 
                end 
            end 
        end 
    , false ) 
    

    كود باب

    local GroupName = "S.W.A.T" 
    local gateID = "980" 
    local Gx, Gy, Gz = "1220.97656, -1690.26758, 36.5781" 
    local Grx, Gry, Grz = "1120.93656, -1490.26743, 36.5781" 
    local Gx1, Gy2, Gz3 = "1120.93656, -1490.26743, 36.5781" 
    local Time = "9" 
      
    local gate = createObject ( gateID, Gx, Gy, Gz, Grx, Gry, Grz ) 
    local marker = ( Gx, Gy, Gz, "cylinder", 7, 0, 0, 0, 0 ) 
      
    addEventHandler ( "onMarkerHit", marker, 
        function ( plr ) 
            if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "S.W.A.T" ) == GroupName ) then 
                moveObject ( gate, Time * 1000, Gx1, Gy2, Gz3 ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onMarkerLeave", marker, 
        function ( plr ) 
            if ( getElementType ( plr ) == "player" ) and ( getElementData ( plr, "S.W.A.T== GroupName ) then 
                moveObject ( gate, Time * 1000, Gx, Gy, Gz ) 
            end 
        end 
    ) 
      
    addEventHandler ( "onPlayerQuit", root, 
        function ( ) 
            if ( isElementWithinMarker ( source, marker ) ) and ( getElementData ( plr, "S.W.A.T" ) == GroupName ) then 
                moveObject ( gate, Time * 1000, Gx, Gy, Gz ) 
            end 
        end 
    ) 
     
    

    واتمنى ابي كود السيارات لقروب + كل التيمات

    وشكرأأ على المشاهده

  10. شباب ابي اشتري سيرفر بس انا بالعراق

    ابي استضافة فيها رقم عراقي

    دورت مش لقيت

    هدف هوست

    ديلوكس هوست

    بلاي هوست

    ساعدوني ابي رقم عراقي mta

×
×
  • Create New...