SecretBoss

Untitled

Nov 19th, 2015
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. CMD:settings(playerid, params[])
  2. {
  3. if(User[playerid][loggedin] == 0) return Error(playerid, "You must be logged in to use this command");
  4.  
  5. new ON[20], OFF[20];
  6. new DIALOG[676], string[156];
  7. ON = ""green"[ON]", OFF = ""red"[OFF]";
  8.  
  9. format(string, sizeof(string), ""lightblue"1) "white"Auto Login: \t\t\t %s\n", (User[playerid][autologin] == 1) ? (ON) : (OFF), ON, OFF);
  10. strcat(DIALOG, string);
  11.  
  12. strcat(DIALOG, ""lightblue"2) "white"Change Password\n");
  13. strcat(DIALOG, ""lightblue"3) "white"Change Username\n");
  14. strcat(DIALOG, ""lightblue"4) "white"My stats\n");
  15.  
  16. Dialog_Show(playerid, dialogSettings, DIALOG_STYLE_LIST, "Settings", DIALOG, "Select", "Close");
  17. return 1;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment