Jump to content

سؤال بسيط


Anis

Recommended Posts

السلام عليكم

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

ارجوووو الرد :arrowleft::arrowleft::arrowleft:

Link to comment

عليكم السلام

الكلينت يجي لون احمر مثل هذا الفنكشن

guiSetPosition 

والسيرفر يجيك لون برتقالي مثل هذا الفنكشن

getAccountPlayer 

والفنكشنات الي تقبل الكلينت والسيرفر تجيك بلون ازرق مثل هذا

setElementPosition 

والكلينت يكون للاعب فقط

والسيرفر يكون للسيرفر كليا

بالتوفيق

Link to comment

بس اخي يوجد فكنش احمر وازرق وبرتقالي شو افعل

function loginHandler(username,password) 
    -- check that the username and password are correct 
    if username == "user" and password == "apple" then 
        -- the player has successfully logged in, so spawn them 
        if (client) then 
            spawnPlayer(client, 1959.55, -1714.46, 10) 
            fadeCamera(client, true) 
                        setCameraTarget(client, client) 
            outputChatBox("Welcome to My Server.", client) 
        end 
    else 
        -- if the username or password are not correct, output a message to the player 
        outputChatBox("Invalid username and password. Please re-connect and try again.",client) 
        end          
end 
  
addEvent("submitLogin",true) 
addEventHandler("submitLogin",root,loginHandler) 

ارجوووو الرد

Edited by Guest
Link to comment
بس اخي يوجد فكنش احمر وازرق وبرتقالي شو افعل
function loginHandler(username,password) 
    -- check that the username and password are correct 
    if username == "user" and password == "apple" then 
        -- the player has successfully logged in, so spawn them 
        if (client) then 
            spawnPlayer(client, 1959.55, -1714.46, 10) 
            fadeCamera(client, true) 
                        setCameraTarget(client, client) 
            outputChatBox("Welcome to My Server.", client) 
        end 
    else 
        -- if the username or password are not correct, output a message to the player 
        outputChatBox("Invalid username and password. Please re-connect and try again.",client) 
        end          
end 
  
addEvent("submitLogin",true) 
addEventHandler("submitLogin",root,loginHandler) 

ارجوووو الرد

قلت لك ان الازرق يقبل السيرفر والكلينت

يعني الازرق والاحمر مع بعض بدون البرتقالي

والازرق والبرتقالي مع بعض بدون الاحمر

فهمت

Link to comment
بس اخي يوجد فكنش احمر وازرق وبرتقالي شو افعل
function loginHandler(username,password) 
    -- check that the username and password are correct 
    if username == "user" and password == "apple" then 
        -- the player has successfully logged in, so spawn them 
        if (client) then 
            spawnPlayer(client, 1959.55, -1714.46, 10) 
            fadeCamera(client, true) 
                        setCameraTarget(client, client) 
            outputChatBox("Welcome to My Server.", client) 
        end 
    else 
        -- if the username or password are not correct, output a message to the player 
        outputChatBox("Invalid username and password. Please re-connect and try again.",client) 
        end          
  
end 
  
addEvent("submitLogin",true) 
addEventHandler("submitLogin",root,loginHandler) 

ارجوووو الرد

قلت لك ان الازرق يقبل السيرفر والكلينت

يعني الازرق والاحمر مع بعض بدون البرتقالي

والازرق والبرتقالي مع بعض بدون الاحمر

فهمت

يب فهمت شكرا اخي

Edited by Guest
Link to comment
بس اخي يوجد فكنش احمر وازرق وبرتقالي شو افعل
function loginHandler(username,password) 
    -- check that the username and password are correct 
    if username == "user" and password == "apple" then 
        -- the player has successfully logged in, so spawn them 
        if (client) then 
            spawnPlayer(client, 1959.55, -1714.46, 10) 
            fadeCamera(client, true) 
                        setCameraTarget(client, client) 
            outputChatBox("Welcome to My Server.", client) 
        end 
    else 
        -- if the username or password are not correct, output a message to the player 
        outputChatBox("Invalid username and password. Please re-connect and try again.",client) 
        end          
  
end 
  
addEvent("submitLogin",true) 
addEventHandler("submitLogin",root,loginHandler) 

ارجوووو الرد

قلت لك ان الازرق يقبل السيرفر والكلينت

يعني الازرق والاحمر مع بعض بدون البرتقالي

والازرق والبرتقالي مع بعض بدون الاحمر

فهمت

يب فهمت شكرا اخي

العفو , حياك الله

:)

Link to comment
عليكم السلام

الكلينت يجي لون احمر مثل هذا الفنكشن

guiSetPosition 

والسيرفر يجيك لون برتقالي مثل هذا الفنكشن

getAccountPlayer 

والفنكشنات الي تقبل الكلينت والسيرفر تجيك بلون ازرق مثل هذا

setElementPosition 

والكلينت يكون للاعب فقط

بس الفكنشات اللي مكتوب بازرق يعني اقدر احها في الكلينت او احطها في السيرفر واو احطها في الاثنين؟

والسيرفر يكون للسيرفر كليا

بالتوفيق

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