Abo-Al3ZaB Posted November 20, 2015 Share Posted November 20, 2015 السلام عليكم ,,, مساعدة بسيطة اكرمكم الله ,,, طلب التعديل على اكواد التسجيل أنه اللاعب ما يقدر يسجل اكثر من حسابين function registerPlayer(username,password,passwordConfirm) 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 بنتظر الرد : D Link to comment
Abo-Al3ZaB Posted November 21, 2015 Author Share Posted November 21, 2015 شو القصة ما حد رد عالموضوع ؟ Link to comment
SycroX Posted November 21, 2015 Share Posted November 21, 2015 دي لوحة نكستريم صح ؟ NeXTreme اطرح كلنت Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 (edited) جرب : function registerPlayer(username,password,passwordConfirm) 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 if (getElementData (source, "OnlyOneL") ~= true) 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 ) setElementData ( source, "OnlyOneL", 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* #FFFFFF You Can Only Register 1 Time",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 Edited November 21, 2015 by Guest Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 دي لوحة نكستريم صح ؟NeXTreme اطرح كلنت وش دخل الكلنت Link to comment
` Allawi Posted November 21, 2015 Share Posted November 21, 2015 viewtopic.php?f=160&t=91712&p=825164&hilit=getAccountsBySerial#p825164 Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 (edited) جرب ذة : addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( string.find ( msg, "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 Edited November 21, 2015 by Guest Link to comment
` Allawi Posted November 21, 2015 Share Posted November 21, 2015 ماراح يضبط كذا عشان التحقق بعد انشاء الحساب لازم يكون التحقق قبل انشاء الحساب عشان يضبط Link to comment
Rockyz Posted November 21, 2015 Share Posted November 21, 2015 ماراح يضبط كذا عشان التحقق بعد انشاء الحساب لازم يكون التحقق قبل انشاء الحساب عشان يضبط ههههه مانتبهت لاني بدلت getAccountsFromSerial بـ setElementData المهم تم التعديل وشكرا لك Link to comment
Abo-Al3ZaB Posted November 22, 2015 Author Share Posted November 22, 2015 جرب : function registerPlayer(username,password,passwordConfirm) 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 if (getElementData (source, "OnlyOneL") ~= true) 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 ) setElementData ( source, "OnlyOneL", 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* #FFFFFF You Can Only Register 1 Time",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 بعتذر عالتأخير بالرد ,,, بس أكوادك ما ضبطت ض Link to comment
Abo-Al3ZaB Posted November 22, 2015 Author Share Posted November 22, 2015 anybody here to help me ? : # Link to comment
Abo-Al3ZaB Posted November 23, 2015 Author Share Posted November 23, 2015 الموضوع صارله يوم وما في ردود جديدة ؟ : | شو الدعوة ؟؟؟ Link to comment
Rockyz Posted November 23, 2015 Share Posted November 23, 2015 الموضوع صارله يوم وما في ردود جديدة ؟ : |شو الدعوة ؟؟؟ راجع الردود ^ جرب ذة : addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( string.find ( msg, "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 Link to comment
Abo-Al3ZaB Posted November 23, 2015 Author Share Posted November 23, 2015 الموضوع صارله يوم وما في ردود جديدة ؟ : |شو الدعوة ؟؟؟ راجع الردود ^ جرب ذة : addEventHandler ( "onPlayerCommand", root, function ( msg ) if ( string.find ( msg, "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 رديت فوق قلتلك ما زبطت جربت الاكواد وسجلت 100 حساب عالفاضي Link to comment
Rockyz Posted November 25, 2015 Share Posted November 25, 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 اذا ماضبط /debugscript 3 Link to comment
Abo-Al3ZaB Posted November 25, 2015 Author Share Posted November 25, 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 اذا ماضبط /debugscript 3 خلص تمت الإفادة بس انا كنت غلطان بشغلة : # يعطيك العافية روك ما قصرت ,,, : ] 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