MhStR Posted December 29, 2015 Posted December 29, 2015 السسلام عليكم ورحمة الله وبركاتة بسسم الله الرحمن الرحيم ابي كود وهو لـ جيم مود حرب ععصابات يسوي حساب 1 فقط وشكراً لكم
#Soking Posted December 29, 2015 Posted December 29, 2015 if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then ٢ - عدد الحسابات
` Allawi Posted December 29, 2015 Posted December 29, 2015 https://forum.multitheftauto.com/viewtopic.php?f=160&t=95344
MhStR Posted December 30, 2015 Author Posted December 30, 2015 اخوي مافهمت من الرابط الي رسلت بس ذا المود ( جيم مود ) ياليت تسوهه لي انا حاولت بالاكواد ماضبط معي التححميل : http://up.top4top.net/downloadf-559q5cq1-zip.html
a7zan Posted December 30, 2015 Posted December 30, 2015 في الموضوع كود ماتقدر تسجل اكثر من حسابين شوف اخر رد روك هذا كوده addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( msg:find ( "register" ) ) then if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then outputChatBox ( "You Can Register 2 time only", source, 255, 0, 0, true ) cancelEvent ( ) else outputChatBox ( "Thank You For Registering", source, 255, 0, 0, true ) end end end ) function registerPlayer(username,password,passwordConfirm) if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then return exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFF You Can Only Register 2 Time",255,255,255,true ) end if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! An account with this username already exists!",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Passwords do not match!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please confirm your password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a username you would like to register with!",255,255,255,true) end end انت الي يهمك ذا بس if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then بالتوفيق
MhStR Posted December 30, 2015 Author Posted December 30, 2015 في الموضوع كود ماتقدر تسجل اكثر من حسابين شوف اخر رد روك هذا كوده addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( msg:find ( "register" ) ) then if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then outputChatBox ( "You Can Register 2 time only", source, 255, 0, 0, true ) cancelEvent ( ) else outputChatBox ( "Thank You For Registering", source, 255, 0, 0, true ) end end end ) function registerPlayer(username,password,passwordConfirm) if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then return exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFF You Can Only Register 2 Time",255,255,255,true ) end if not (username == "") then if not (password == "") then if not (passwordConfirm == "") then if password == passwordConfirm then local account = getAccount (username,password) if (account == false) then local accountAdded = addAccount(tostring(username),tostring(password)) if (accountAdded) then triggerClientEvent(source,"hideRegisterWindow",getRootElement()) exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFYou have sucessfuly registered! [username: #ABCDEF" .. username .. " #FF0000| #FFFFFFPassword: #ABCDEF" .. password .. "#FFFFFF]",255,255,255,true ) setTimer(outputChatBox,800,1,"#0000FF* #FFFFFFYou can now login with your new account.",source,255,255,255,true ) else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFAn unknown error has occured! Please choose a different username/password and try again.",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! An account with this username already exists!",255,255,255,true ) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Passwords do not match!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please confirm your password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a password!",255,255,255,true) end else exports["guimessages"]:outputServer (source, "#0000FF* #FFFFFFError! Please enter a username you would like to register with!",255,255,255,true) end end انت الي يهمك ذا بس if ( #getAccountsBySerial ( getPlayerSerial ( source ) ) >= 2 ) then بالتوفيق =============================================================== اخوي وين اضيفه ذا؟؟؟؟؟؟؟ في اي ملف؟؟؟؟ وشكراً
Abdul KariM Posted December 30, 2015 Posted December 30, 2015 هذا تضيفه بالترايقر الي يجي يسجل به الاعب Server Side [ Skype : kreee89 - Discord : Abdul_KariM#1326 / طلبات البرمجة ] https://www.paypal.me/AbdulKariMx / اذا حاب تدعمني
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