COMMAND:login(playerid,params[]) { if(PlayerAcc[playerid][LoggedIn] == 0) { new lstring[256]; format(lstring,256,"Your account is registered!\n\nLogin to access your account:"); ShowPlayerDialog(playerid,LoginDialog,DIALOG_STYLE _PASSWORD,"Account Login",lstring,"Login","Quit"); return 1; } else if(PlayerAcc[playerid][Registered] == 0) { SendClientMessage(playerid,COLOR_RED,"SERVER: You are not registered! Please use /register first!"); return 1; } else if(PlayerAcc[playerid][LoggedIn] == 1) { SendClientMessage(playerid,COLOR_RED,"SERVER: You are already logged in!"); return 1; } return 1; } COMMAND:register(playerid,params[]) { if(PlayerAcc[playerid][Registered] == 1) { SendClientMessage(playerid,COLOR_RED,"SERVER: You are already registered!"); return 1; } else if(PlayerAcc[playerid][LoggedIn] == 1) { SendClientMessage(playerid,COLOR_RED,"SERVER: You are already registered and logged in!"); return 1; } else if(PlayerAcc[playerid][Registered] == 0) { new rstring[256]; format(rstring,256,"Your account isnt registered!\n\nPlease type your password:"); ShowPlayerDialog(playerid,RegisterDialog,DIALOG_ST YLE_PASSWORD,"Register Account",rstring,"Register","Quit"); return 1; } return 1; } COMMANDecurity(playerid,params[]) { if(PlayerLogged[playerid] == 1) { ShowPlayerDialog(playerid,SecurityDialogQ,DIALOG_S TYLE_INPUT,"{00FF40}Security Question:","Please type your security question!\n\nNOTE:\nType without \"?\"!","OK",""); return 1; } return 1; } |
format(lstring,256,"Your account is registered!\n\nLogin to access your account:");
format(lstring, 256, "{00FF40}Your account is registered!\n\nLogin to access your account:");
ShowPlayerDialog(playerid,SecurityDialogQ,DIALOG_S TYLE_INPUT,"{00FF40}Security Question:","Please type your security question!\n\nNOTE:\nType without \"?\"!","OK","");
ShowPlayerDialog(playerid, SecurityDialogQ, DIALOG_STYLE_INPUT, "{00FF40}Security Question:", "{00FF40}Please type your security question!\n\nNOTE:\nType without \"?\"!", "OK","");
new lstring[256];
new lstring[128];