Advertisement
Guest User

Untitled

a guest
Apr 7th, 2020
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 4.83 KB | None | 0 0
  1. /*
  2.  
  3.                         _______________________________
  4.                        |                               |
  5.                        |         SMUGGLERS CITY        |
  6.                        |  Lead Developer: LordButhers  |
  7.                        |        Version: 0.1 DEV       |
  8.                        |         (c) SmCt 2020         |
  9.                        |_______________________________|
  10.  
  11. */
  12.  
  13. /*
  14.     Ce fichier est réservé au regroupement des fonctions de l'entité Player.
  15. */
  16.  
  17. /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  18. *                       _______________________________                        *
  19. *                      |                               |                       *
  20. *                      |            DEFINES            |                       *
  21. *                      |_______________________________|                       *
  22. *                                                                              *
  23. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
  24.  
  25. /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  26. *                       _______________________________                        *
  27. *                      |                               |                       *
  28. *                      |            VARIABLES          |                       *
  29. *                      |_______________________________|                       *
  30. *                                                                              *
  31. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
  32.  
  33. /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  34. *                       _______________________________                        *
  35. *                      |                               |                       *
  36. *                      |            FORWARDS           |                       *
  37. *                      |_______________________________|                       *
  38. *                                                                              *
  39. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
  40.  
  41. /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
  42. *                       _______________________________                        *
  43. *                      |                               |                       *
  44. *                      |              CORE             |                       *
  45. *                      |_______________________________|                       *
  46. *                                                                              *
  47. *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/   
  48. Player::RequestClass(playerid, classid)
  49.     return 0;
  50.  
  51. Player::Connect(playerid)
  52. {
  53.     UI->ShowPlayerLoadScreenCinematic(playerid);
  54.    
  55.     UI->CreatePlayerBox(playerid, BOX_LOGSCREEN_AUTH_BG, 20.000000, 115.000000, 0.000000, 24.700000, 260.000000, 0.000000, 1, 0, 1, GUI_BACKGROUND_TRANSPARENCY, 0, 0, 0);
  56.     UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_AUTH_TITLE, 25.000000, 118.000000, "~w~~h~PAGE D'AUTHENTIFICATION", 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
  57.     UI->AddPlayerElementToContent(playerid, BOX_LOGSCREEN_AUTH_BG, CONTENT_LOGSCREEN_AUTH);
  58.     UI->AddPlayerElementToContent(playerid, TEXT_LOGSCREEN_AUTH_TITLE, CONTENT_LOGSCREEN_AUTH);
  59.     UI->ShowPlayerContent(playerid, CONTENT_LOGSCREEN_AUTH);
  60.     UI->CreatePlayerHorizontalList(playerid, LIST_LOGSCREEN_AUTH, 25.000000, 140.000000, 5, "Connexion", "Inscription");
  61.     UI->ShowPlayerList(playerid, LIST_LOGSCREEN_AUTH);
  62.  
  63.     new playerName[MAX_PLAYER_NAME+1], welcomeMessage[128];
  64.     GetPlayerName(playerid, playerName, sizeof(playerName));
  65.     format(welcomeMessage, sizeof(welcomeMessage), "~w~~h~Bienvenue, ~r~~h~%s ~w~~h~!~n~Vous êtes déjà inscrit sur notre serveur ? Connectez-vous !", playerName);
  66.    
  67.     UI->CreatePlayerBox(playerid, BOX_LOGSCREEN_LOGIN_BG, 25.000000, 160.000000, 0.000000, 19.000000, 255.000000, 0.000000, 1, 0, 1, GUI_LIST_HORIZONTAL_ACTIVE, 0, 0, 0);
  68.     UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 26.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
  69.     UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 26.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
  70.     UI->AddPlayerElementToContent(playerid, BOX_LOGSCREEN_LOGIN_BG, CONTENT_LOGSCREEN_LOGIN);
  71.     UI->AddPlayerElementToContent(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, CONTENT_LOGSCREEN_LOGIN);
  72.     UI->ShowPlayerContent(playerid, CONTENT_LOGSCREEN_LOGIN);
  73.  
  74.     UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 30.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
  75.     UI->CreatePlayerField(playerid, FIELD_LOGSCREEN_LOGIN_EMAIL, "Saisissez votre adresse email", 30.000000, 195.000000, 250.000000, 2.000000, GUI_FIELD_BASIC);
  76.     UI->CreatePlayerField(playerid, FIELD_LOGSCREEN_LOGIN_PASSWORD, "Saisissez votre mot de passe", 30.000000, 225.000000, 250.000000, 2.000000, GUI_FIELD_BASIC);
  77.     UI->ShowPlayerField(playerid, FIELD_LOGSCREEN_LOGIN_EMAIL);
  78.     UI->ShowPlayerField(playerid, FIELD_LOGSCREEN_LOGIN_PASSWORD);
  79.     return 1;
  80. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement