Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- _______________________________
- | |
- | SMUGGLERS CITY |
- | Lead Developer: LordButhers |
- | Version: 0.1 DEV |
- | (c) SmCt 2020 |
- |_______________________________|
- */
- /*
- Ce fichier est réservé au regroupement des fonctions de l'entité Player.
- */
- /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- * _______________________________ *
- * | | *
- * | DEFINES | *
- * |_______________________________| *
- * *
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
- /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- * _______________________________ *
- * | | *
- * | VARIABLES | *
- * |_______________________________| *
- * *
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
- /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- * _______________________________ *
- * | | *
- * | FORWARDS | *
- * |_______________________________| *
- * *
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
- /*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
- * _______________________________ *
- * | | *
- * | CORE | *
- * |_______________________________| *
- * *
- *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*/
- Player::RequestClass(playerid, classid)
- return 0;
- Player::Connect(playerid)
- {
- UI->ShowPlayerLoadScreenCinematic(playerid);
- 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);
- 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);
- UI->AddPlayerElementToContent(playerid, BOX_LOGSCREEN_AUTH_BG, CONTENT_LOGSCREEN_AUTH);
- UI->AddPlayerElementToContent(playerid, TEXT_LOGSCREEN_AUTH_TITLE, CONTENT_LOGSCREEN_AUTH);
- UI->ShowPlayerContent(playerid, CONTENT_LOGSCREEN_AUTH);
- UI->CreatePlayerHorizontalList(playerid, LIST_LOGSCREEN_AUTH, 25.000000, 140.000000, 5, "Connexion", "Inscription");
- UI->ShowPlayerList(playerid, LIST_LOGSCREEN_AUTH);
- new playerName[MAX_PLAYER_NAME+1], welcomeMessage[128];
- GetPlayerName(playerid, playerName, sizeof(playerName));
- format(welcomeMessage, sizeof(welcomeMessage), "~w~~h~Bienvenue, ~r~~h~%s ~w~~h~!~n~Vous êtes déjà inscrit sur notre serveur ? Connectez-vous !", playerName);
- 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);
- UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 26.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
- UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 26.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
- UI->AddPlayerElementToContent(playerid, BOX_LOGSCREEN_LOGIN_BG, CONTENT_LOGSCREEN_LOGIN);
- UI->AddPlayerElementToContent(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, CONTENT_LOGSCREEN_LOGIN);
- UI->ShowPlayerContent(playerid, CONTENT_LOGSCREEN_LOGIN);
- UI->CreatePlayerText(playerid, TEXT_LOGSCREEN_LOGIN_WMESSAGE, 30.000000, 161.000000, welcomeMessage, 0.200000, 1.500000, 1, -1, 0, 1, 51, 1, 1);
- UI->CreatePlayerField(playerid, FIELD_LOGSCREEN_LOGIN_EMAIL, "Saisissez votre adresse email", 30.000000, 195.000000, 250.000000, 2.000000, GUI_FIELD_BASIC);
- UI->CreatePlayerField(playerid, FIELD_LOGSCREEN_LOGIN_PASSWORD, "Saisissez votre mot de passe", 30.000000, 225.000000, 250.000000, 2.000000, GUI_FIELD_BASIC);
- UI->ShowPlayerField(playerid, FIELD_LOGSCREEN_LOGIN_EMAIL);
- UI->ShowPlayerField(playerid, FIELD_LOGSCREEN_LOGIN_PASSWORD);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement