taha201100 Posted April 17, 2016 Share Posted April 17, 2016 السلام عليكم 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
Me[Z]oO Posted April 17, 2016 Share Posted April 17, 2016 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
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 ذا يجيب حق عدد الاعبين بتيم معين ابي اجيب عدد فلوس الاعب انا Link to comment
Simple. Posted April 17, 2016 Share Posted April 17, 2016 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
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 getAccountName setPlayerName ما فهمت كيف يعطي النك على اسم الحساب ممكن مثال Link to comment
Simple. Posted April 17, 2016 Share Posted April 17, 2016 addEventHandler("onPlayerLogin", root, function(_, acc) local accname = getAccountName ( acc ) setPlayerName ( source, accname ) outputChatBox('Your Nick Changed To ['..accname..' ] ', source) end ) Link to comment
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 مشكوووور دب بس اتوقع لما يروح الاعدادات يتغير نكه ما في طريقة الغي تغيير النك؟ Link to comment
Simple. Posted April 17, 2016 Share Posted April 17, 2016 addEventHandler("onPlayerChangeNick", root, cancelEvent ) Link to comment
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 شكرا ما قصرت الله يسعدك ويسعد الباقي ما قصروا بعد Link to comment
Simple. Posted April 17, 2016 Share Posted April 17, 2016 العفو ويسعد الججميع إن شاء الله Link to comment
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 لا يسجل ولا يسجل دخول كلنت 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
#J2mes Posted April 17, 2016 Share Posted April 17, 2016 جرب بدل if user == "" and pass == "" then الى if user ~= "" and pass ~= "" then Link to comment
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 كلاسيك معطية من زمان +اسف ما انتبهت للشرط بس نفس الشي لكن يجي رساله بالشات لكن ما يسجل دخوله +يسجل لكن يسجل اكثر من مره بنفس الحساب ومتاكد معه صلاحيات Link to comment
#J2mes Posted April 17, 2016 Share Posted April 17, 2016 جرب ذا 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
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 اشتغل لكن وش غيرت وليه ضفت سطور جديدة ممكن توضح؟؟ Link to comment
#J2mes Posted April 17, 2016 Share Posted April 17, 2016 الاكواد حقتي ذي اول مسوي لوحة تسجيل انا يعني ماعدلت ع كودك Link to comment
taha201100 Posted April 17, 2016 Author Share Posted April 17, 2016 يا ريت الي يعرف وش اللفرق مشان اشوف وش خطأي يفيدني Link to comment
taha201100 Posted April 18, 2016 Author Share Posted April 18, 2016 شباب عندي مشكله ربط من كلنت للسيرفر سيرفر 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
#J2mes Posted April 18, 2016 Share Posted April 18, 2016 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 ) Link to comment
Mhmd.z Posted April 18, 2016 Share Posted April 18, 2016 (edited) addEvent( "loginn", true ) addEventHandler( "loginn", root, function ( u, p ) showChat (false) end ) Edited April 18, 2016 by Guest Link to comment
taha201100 Posted April 18, 2016 Author Share Posted April 18, 2016 يخوي نفس الوضع ما يقفل الشات Link to comment
#J2mes Posted April 18, 2016 Share Posted April 18, 2016 addEvent("loginn",true) addEventHandler("loginn",root, function ( ) showChat ( false ) end) Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now