Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:settings(playerid, params[])
- {
- if(User[playerid][loggedin] == 0) return Error(playerid, "You must be logged in to use this command");
- new ON[20], OFF[20];
- new DIALOG[676], string[156];
- ON = ""green"[ON]", OFF = ""red"[OFF]";
- format(string, sizeof(string), ""lightblue"1) "white"Auto Login: \t\t\t %s\n", (User[playerid][autologin] == 1) ? (ON) : (OFF), ON, OFF);
- strcat(DIALOG, string);
- strcat(DIALOG, ""lightblue"2) "white"Change Password\n");
- strcat(DIALOG, ""lightblue"3) "white"Change Username\n");
- strcat(DIALOG, ""lightblue"4) "white"My stats\n");
- ShowPlayerDialog(playerid, dialogSettings, DIALOG_STYLE_LIST, "Settings", DIALOG, "Select", "Close");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment