Jump to content

ليبل


Recommended Posts

السلام عليكم

addEventHandler('onClientRender',root, 
    function() 
        if guiGetVisible(GUIEditor.label[4]) then 
            local Team = getTeamFromName('..') 
                if not Team then return end 
                    guiSetText(GUIEditor.label[4],' : '..countPlayersInTeam(Team)) 
            end 
        end 
    ) 

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

لكن حق التيم ضبط

+ممكن فنكشن

لو سجل بحساب يعطيه نك مثل اسم حسابه

وما يقدر يغير نكه

+

فنكشن تشغيل مود وفنكشن ايقاف مود اخر

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

تصير لجميع الشاشات بدال الحوسه والحسابات؟؟

+وش احتاج مشان اخلي صورة معينه مثل الوميض تتطفي وتضوي

معلش كل طلبات بموضوع واحد افضل

يا ريت احصل جميع الاجابات :]

Link to comment
addEventHandler('onClientRender',root, 
    function() 
        if guiGetVisible(GUIEditor.label[4])  == true then 
            local Team = getTeamFromName("Taha") 
                if not Team then return end 
                    guiSetText(GUIEditor.label[4], ": "..countPlayersInTeam(Team).." ") 
            end 
        end 
    ) 
  
  

Link to comment
addEventHandler('onClientRender',root, 
function() 
    if guiGetVisible(GUIEditor.label[4]) == true then 
    guiSetText(GUIEditor.label[4], " Money : "..getPlayerMoney ( localPlayer ).."$ ") 
    end 
end 
) 

addEventHandler -- onPlayerLogin 
getAccountName --جب اسم الاكاونت الي بثاني ارقمنت 
setPlayerName -- وحط نكه مثل اسم حسابه 
-- 
stopResource -- يطفي مود 
startResource -- يشغل مود 
-- 
guiSetAlpha -- الوميض 
  

وسؤال عن الشاشات يب هذا يضبطها بدون حوسة حسابات

Link to comment

لا يسجل ولا يسجل دخول

كلنت

addEventHandler ("onClientGUIClick",root, 
function () 
if source == log then 
local user = guiGetText (user) 
local pass = guiGetText (pass) 
if user == "" and pass == "" then 
triggerServerEvent ("login",localPlayer,user,pass) 
end 
elseif source == reg then 
local user = guiGetText (user) 
local pass = guiGetText (pass) 
if user == "" and pass == "" then 
triggerServerEvent ("register",localPlayer,user,pass) 
end 
end 
end) 

سيرفر

addEvent ("login",true) 
addEventHandler ("login",root, 
function (user,pass) 
local acc = getAccount (user,pass) 
if acc then 
logIn (source,acc,pass) 
outputChatBox ("LOGIN-DONE",source,5,255,5) 
end 
end) 
addEvent ("register",true) 
addEventHandler ("register",root, 
function (user,pass) 
if not getAccount (user,pass) then 
addAccount (user,pass) 
outputChatBox ("REGISTER-DONE",source,5,255,5) 
else 
outputChatBox ("REGISTER-THIS ACCOUNT IS ALREADY EXISTS",source,255,5,5) 
end 
end) 

Link to comment

كلاسيك معطية من زمان

+اسف ما انتبهت للشرط

بس نفس الشي لكن يجي رساله بالشات لكن ما يسجل دخوله +يسجل لكن يسجل اكثر من مره بنفس الحساب

ومتاكد معه صلاحيات

Link to comment

جرب ذا

addEvent("login",true) 
addEventHandler("login",root, 
function ( u , p )  
local acc = getAccount ( u , p ) 
if ( acc ~= false ) then 
logIn ( source , acc , p ) 
outputChatBox("* You Have Been Login ",source,0,255,0,true) 
else 
outputChatBox("* Wrong With username or password!",source,255,0,0,true) 
end 
end 
) 
  

addEvent("register",true) 
addEventHandler("register",root, 
function ( u , p ) 
local add = addAccount (  u , p ) 
if ( add ) then  
outputChatBox("* You Have Been Register",source,0,255,0,true) 
else 
outputChatBox("* This Account is Already",source,255,0,0,true) 
end 
end 
) 

Link to comment

شباب عندي مشكله ربط من كلنت للسيرفر

سيرفر

addEvent("login",true) 
    addEventHandler("login",root, 
    function ( u , p ) 
    local acc = getAccount ( u , p ) 
    if ( acc ~= false ) then 
    logIn ( source , acc , p ) 
    outputChatBox("* Sign-in successful",source,0,255,0,true) 
    triggerClientEvent ("loginn",u , p) 
    else 
    outputChatBox("* account name or password error",source,255,0,0,true) 
  end 
    end 
    ) 

كلنت

addEvent( "loginn", true ) 
addEventHandler( "loginn", u , p , 
function () 
showChat (false) 
end ) 

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

Link to comment

addEvent("login",true) 
    addEventHandler("login",root, 
    function ( u , p ) 
    local acc = getAccount ( u , p ) 
    if ( acc ~= false ) then 
    logIn ( source , acc , p ) 
    outputChatBox("* Sign-in successful",source,0,255,0,true) 
    triggerClientEvent (source,"loginn",source) 
    else 
    outputChatBox("* account name or password error",source,255,0,0,true) 
  end 
    end 
    ) 

:mrgreen:

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