Jump to content

استفسار


baba

Recommended Posts

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

انا ابي اعرف انا بدخل سيرفرات ناس

بلاقي فيديو اول ما ادخل السيرفر

مو صور تطلع صوره صوره

مثل مقدمة الفيديو(انترو) شي كذا

ابي اعرف كيف اسوي وحده كذا

وانا اسف على الازعاج

بس شي يهمني اعرفه

وشكرن

Link to comment

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

انا قصدي انو بدي مقدمه للسيرفر

مثل المقدمات حقة الفيديو

او

مثل مقدمة الفيلم

السيرفر الي فيه المقدمه وكذا

سيرفر طاره اول ما تدخل تكون تسوق قارب بس انت ما بتسوق من الاصل

ذا الفديو

ارجو المساعده

لان الموضوع ذا يهمني

Link to comment

يعمل سياره داخلها اوبجكت و يعمل الكاميره عليها

و تتحرك معه

لين توصل مكان ينهي الحدث بطريقة معينه يوم يوصل مثلن مارك بعد وقتت محدد

هذي فكره من بعض الافكار يلي يعملونها و يلي بتعتمد على وضع الكاميره في مكان انت تحدده

Link to comment
-- Server side # 
createPed 
createVehicle 
warpPedIntoVehicle 
triggerClientEvent 
  
-- Client side # 
setPedControlState 
setCameraMatrix 

البيد و السيارة كلينت، ما يحتاج التريقر

Link to comment

تفضل مثل ما تبي

و اعذرني على تاخير

+

و بدون فلوس :lol:

كلنت #

  
GUIEditor = { 
    button = {}, 
    window = {}, 
    edit = {}, 
    label = {} 
} 
  
  
  
        GUIEditor.window[1] = guiCreateWindow(336, 215, 330, 328, "Welcome To our Server", false) 
         guiSetVisible(GUIEditor.window[1], false)  
        guiWindowSetSizable(GUIEditor.window[1], false) 
        guiSetAlpha(GUIEditor.window[1], 0.50) 
        GUIEditor.label[1] = guiCreateLabel(17, 65, 92, 28, "username :", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[1], "default-bold-small") 
        GUIEditor.label[2] = guiCreateLabel(17, 140, 92, 28, "Password :", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.label[2], "default-bold-small") 
        GUIEditor.edit[1] = guiCreateEdit(123, 60, 173, 38, "", false, GUIEditor.window[1]) 
        GUIEditor.edit[2] = guiCreateEdit(123, 135, 173, 38, "", false, GUIEditor.window[1]) 
        guiEditSetMasked(GUIEditor.edit[2], true) 
        GUIEditor.button[1] = guiCreateButton(9, 244, 89, 48, "login", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[1], "default-bold-small") 
        GUIEditor.button[2] = guiCreateButton(108, 244, 89, 48, "Play as Guest", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[2], "default-bold-small") 
        GUIEditor.button[3] = guiCreateButton(207, 244, 89, 48, "Register", false, GUIEditor.window[1]) 
        guiSetFont(GUIEditor.button[3], "default-bold-small")     
    
    
addEventHandler("onClientGUIClick",root, 
function () 
if source == GUIEditor.button[1] then 
triggerServerEvent("onLogin",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) 
elseif source == GUIEditor.button[2] then 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
showChat(true) 
fadeCamera(true,5) 
elseif source == GUIEditor.button[3] then 
triggerServerEvent("onReg",getRootElement(),getLocalPlayer(),guiGetText(GUIEditor.edit[1]),guiGetText(GUIEditor.edit[2]) ) 
end 
end 
) 
addEvent("Hidewindow",true) 
addEventHandler("Hidewindow",root, 
function () 
guiSetVisible(GUIEditor.window[1],false) 
showCursor(false) 
showChat(true) 
fadeCamera(true,5) 
end 
) 
  
  
local sm = {} 
sm.moov = 0 
sm.object1,sm.object2 = nil,nil 
  
local function removeCamHandler() 
    if(sm.moov == 1)then 
        sm.moov = 0 
    end 
end 
  
local function camRender() 
    if (sm.moov == 1) then 
        local x1,y1,z1 = getElementPosition(sm.object1) 
        local x2,y2,z2 = getElementPosition(sm.object2) 
        setCameraMatrix(x1,y1,z1,x2,y2,z2) 
    end 
end 
addEventHandler("onClientPreRender",root,camRender) 
  
function smoothMoveCamera(x1,y1,z1,x1t,y1t,z1t,x2,y2,z2,x2t,y2t,z2t,time) 
    if(sm.moov == 1)then return false end 
    sm.object1 = createObject(1337,x1,y1,z1) 
    sm.object2 = createObject(1337,x1t,y1t,z1t) 
    setElementAlpha(sm.object1,0) 
    setElementAlpha(sm.object2,0) 
    setObjectScale(sm.object1,0.01) 
    setObjectScale(sm.object2,0.01) 
    moveObject(sm.object1,time,x2,y2,z2,0,0,0,"InOutQuad") 
    moveObject(sm.object2,time,x2t,y2t,z2t,0,0,0,"InOutQuad") 
    sm.moov = 1 
    setTimer(removeCamHandler,time,1) 
    setTimer(destroyElement,time,1,sm.object1) 
    setTimer(destroyElement,time,1,sm.object2) 
    setTimer(setCameraTarget,time,1,localPlayer) 
end 
  
addEventHandler("onClientResourceStart", resourceRoot, 
function( ) 
smoothMoveCamera ( 1266.0865478516, -1658.5220947266, 73.064628601074, -1658.5220947266, -1287.0975341797, 73.064628601074, 366.80706787109, -1598.6693115234, 69.612487792969, 337.96209716797, -1620.0395507813, 106.43092346191, 10000) 
setTimer(function() 
 guiSetVisible(GUIEditor.window[1],not guiGetVisible(GUIEditor.window[1])) 
    showCursor(guiGetVisible(GUIEditor.window[1])) 
fadeCamera(false,5) 
end, 10100, 1) 
end 
) 

سيرفر#

  
addEvent("onLogin", true) 
addEventHandler("onLogin",root, 
    function (player, user, pass, NameAccount, Password) 
        local account = getAccount ( user, pass ) 
    if ( account ~= true ) then 
        if (logIn ( player, account, pass ) == true) then 
            outputChatBox ( "You Logged in Sucessfuly!", player, 255, 255, 0 , true ) 
            triggerClientEvent (player, "Hidewindow", player) 
        else 
            outputChatBox ( "Login Error!", player, 255, 0, 0 ) 
        end 
    else 
        outputChatBox ( "Wrong username or password!", player, 255, 0, 0 ) 
    end 
    end 
) 
-- 
addEvent("onReg", true) 
addEventHandler("onReg",root, 
    function ( player, user, pass, NameAccount, Password ) 
        local account = getAccount ( user, pass ) 
    if ( account ~= false ) then 
        if (logIn ( player, account, pass ) == true) then 
            outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) 
            triggerClientEvent (player, "Hidewindow", player) 
        else 
            outputChatBox ( "You Are Already Logged in !", player, 255, 255, 0 ) 
            triggerClientEvent (player, "Hidewindow", player) 
        end 
    else 
        account = addAccount ( user, pass ) 
        if (logIn ( player, account, pass ) == true) then 
            outputChatBox ( "You Registerd and Logged in Sucessfuly!", player, 255, 255, 0 ) 
            triggerClientEvent (player, "Hidewindow", player) 
        else 
            outputChatBox ( "Register Error !", player, 255, 0, 0 ) 
        end 
    end 
end 
) 
  
  

Link to comment

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...