Counter-Strike Federation Welcome , Leecher | RSS | Monday, 25 November 24
A Place Where Player Becomes Developer Home | Sign Up | Log In
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
[Share] Script Login & Register
Grade: Sergeant Nouris_Hamada_103Date: Monday, 11 May 15, 10:33 PM | Message # 1
Sergeant
Clan: Member
Experience: 50
Status: Offline
Kali ini saya akan membagikan cara membuat System Login  & Register pada AMS

Buat 3 Page beri nama Login , Register & Lobby

- Page Login

buat 2 Input
- Input 1 beri nama "ID Input"
- Input 2 beri nama "Pass Input"

Buat 2 Button Beri nama "Sign In" dan "Sign Up"

Masukan script berikut di Button "Sign In"


Code
id = Input.GetText("ID Input");
get_id = INIFile.GetValue("AutoPlay\\Docs\\Account.ini", id, "ID");
pass = Input.GetText("Pass Input");
get_pass = INIFile.GetValue("AutoPlay\\Docs\\Account.ini", id, "Pass");

if id =="" or pass =="" then
result = DialogEx.Show("EnterID", true, nil, nil);
else
if get_id == id then
if get_pass == pass then
Page.Jump("Lobby");
else
Dialog.TimedMessage("Notice", "Password Salah Coeg", 2000, MB_ICONNONE);
end
else
Dialog.TimedMessage("Notice", "ID Salah Coeg", 2000, MB_ICONNONE);
end
end


Untuk Button "Sign Up"
Tinggal ke "Quick Action" pilih "Show Page" ----> "Spesific Page" ----> "Register"

- Page Register

buat 4 Input
- Input 1 beri nama "ID Input"
- Input 2 beri nama "Nick Input"
- Input 3 beri nama "Pass Input"
- Input 4 beri nama "Re-Pass Input"

Buat 1 Button Beri nama "Sign Up"

Masukan script berikut di Button "Sign Up"


Code
id = Input.GetText("ID Input");
nick = Input.GetText("Nick Input");
pass = Input.GetText("Pass Input");
repass = Input.GetText("Re-Pass Input");

if id =="" or pass =="" then

else

if pass == repass then
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "ID", id)
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "Nickname", nick)
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "Pass", pass)
TextFile.WriteFromString("AutoPlay\\Docs\\Account.ini", " \r\n", true);
Dialog.TimedMessage("Success!", "Your ID has been created!\r\nThank you for registering.", 2000, MB_ICONINFORMATION);
Page.Jump("LOGIN");
else
Dialog.TimedMessage("Notice", "Password kgk sama Coeg :v", 2000, MB_ICONNONE);
end

end

Database lihat di  ( Login & Register (Multi Account)\CD_Root\AutoPlay\Docs )

Maaf kalau kurang jelas


Regards,

By Nouriez Hamada BC

 
Grade: Commander DavidJrDate: Tuesday, 12 May 15, 6:06 PM | Message # 2
Commander
Clan: Executive
Experience: 2256
Status: Offline
Quote Nouris_Hamada_103 ()
Kali ini saya akan membagikan cara membuat System Login & Register pada AMSBuat 3 Page beri nama Login , Register & Lobby

- Page Login

buat 2 Input
- Input 1 beri nama "ID Input"
- Input 2 beri nama "Pass Input"

Buat 2 Button Beri nama "Sign In" dan "Sign Up"

Masukan script berikut di Button "Sign In"


Code
id = Input.GetText("ID Input");
get_id = INIFile.GetValue("AutoPlay\\Docs\\Account.ini", id, "ID");
pass = Input.GetText("Pass Input");
get_pass = INIFile.GetValue("AutoPlay\\Docs\\Account.ini", id, "Pass");

if id =="" or pass =="" then
result = DialogEx.Show("EnterID", true, nil, nil);
else
if get_id == id then
if get_pass == pass then
Page.Jump("Lobby");
else
Dialog.TimedMessage("Notice", "Password Salah Coeg", 2000, MB_ICONNONE);
end
else
Dialog.TimedMessage("Notice", "ID Salah Coeg", 2000, MB_ICONNONE);
end
end

Untuk Button "Sign Up"
Tinggal ke "Quick Action" pilih "Show Page" ----> "Spesific Page" ----> "Register"

- Page Register

buat 4 Input
- Input 1 beri nama "ID Input"
- Input 2 beri nama "Nick Input"
- Input 3 beri nama "Pass Input"
- Input 4 beri nama "Re-Pass Input"

Buat 1 Button Beri nama "Sign Up"

Masukan script berikut di Button "Sign Up"


Code
id = Input.GetText("ID Input");
nick = Input.GetText("Nick Input");
pass = Input.GetText("Pass Input");
repass = Input.GetText("Re-Pass Input");

if id =="" or pass =="" then

else

if pass == repass then
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "ID", id)
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "Nickname", nick)
INIFile.SetValue("AutoPlay\\Docs\\Account.ini", id, "Pass", pass)
TextFile.WriteFromString("AutoPlay\\Docs\\Account.ini", " \r\n", true);
Dialog.TimedMessage("Success!", "Your ID has been created!\r\nThank you for registering.", 2000, MB_ICONINFORMATION);
Page.Jump("LOGIN");
else
Dialog.TimedMessage("Notice", "Password kgk sama Coeg :v", 2000, MB_ICONNONE);
end

end

Database lihat di ( Login & Register (Multi Account)\CD_Root\AutoPlay\Docs )

Maaf kalau kurang jelas
Ini nih yang dicari banyak orang


posted via BlackBerry

Personal Site | CSF Website
 
Grade: Sergeant Nouris_Hamada_103Date: Tuesday, 12 May 15, 8:23 PM | Message # 3
Sergeant
Clan: Member
Experience: 50
Status: Offline
DavidJr, benar sekali happy

Regards,

By Nouriez Hamada BC

 
Grade: Copral daffa_budimanDate: Sunday, 19 July 15, 5:18 PM | Message # 4
Copral
Clan: Member
Experience: 34
Status: Offline
Sip izin coba biggrin
 
Grade: Sergeant Nouris_Hamada_103Date: Monday, 20 July 15, 10:38 AM | Message # 5
Sergeant
Clan: Member
Experience: 50
Status: Offline
Quote daffa_budiman ()
Sip izin coba biggrin

daffa_budiman, Monggo biggrin


Regards,

By Nouriez Hamada BC

 
Grade: Trainee rakaroseDate: Thursday, 09 June 16, 1:17 AM | Message # 6
Trainee
Clan: Member
Experience: 1
Status: Offline
gan ini gimana loginnya ya?
 
Grade: Sergeant Nouris_Hamada_103Date: Monday, 20 June 16, 1:10 PM | Message # 7
Sergeant
Clan: Member
Experience: 50
Status: Offline
rakarose, Ada kok coba di perhatiin dengan seksama

Regards,

By Nouriez Hamada BC

 
  • Page 1 of 1
  • 1
Search:

Mirum
sample map