Jump to content

طلب اكواد


sajad

Recommended Posts

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

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

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

وكود سباون

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

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

edit:

شباب ممكن رد

Edited by Guest
Link to post

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

ابي كود لبرمجة بوابة = ابي 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 ) 
  
  
  
 

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

Link to post
    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 ) 
      
      
      
  

Link to post

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

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

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

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

Link to post
اخوي , جربت الكود اللي نزلته :D

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

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

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

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

Link to post

        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) 
        local mm = اسم القروب 
          
        function moveGate(hitPlayer, matchingDimension) 
             if getElementData ( source, gang ) == ""..mm.."" then 
                moveObject(gate, time, x+4.9, y+9.6, z, 0, 0, 0, easing) 
            else 
                outputChatBox ( " You're Not in "..mm.." Group ! ", source, 255, 0, 0 ) 
                end 
        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 ) 
          
          
          
      

جرب

Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...