Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new PlayerText:TextLogin[16][MAX_PLAYERS];
- CriarTextsLogin (playerid) {
- TextLogin[0][playerid] = CreatePlayerTextDraw(playerid, 644.352905, 1.499998, "1");
- PlayerTextDrawLetterSize(playerid, TextLogin[0][playerid], 0.000000, 11.933333);
- PlayerTextDrawTextSize(playerid, TextLogin[0][playerid], -2.470588, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[0][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[0][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[0][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[0][playerid], 102);
- PlayerTextDrawSetShadow(playerid, TextLogin[0][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[0][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[0][playerid], 0);
- TextLogin[1][playerid] = CreatePlayerTextDraw(playerid, 642.058715, 404.416931, "2");
- PlayerTextDrawLetterSize(playerid, TextLogin[1][playerid], 0.000000, 11.933333);
- PlayerTextDrawTextSize(playerid, TextLogin[1][playerid], -2.470588, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[1][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[1][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[1][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[1][playerid], 102);
- PlayerTextDrawSetShadow(playerid, TextLogin[1][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[1][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[1][playerid], 0);
- TextLogin[2][playerid] = CreatePlayerTextDraw(playerid, 641.529418, 406.916839, "BARRA1");
- PlayerTextDrawLetterSize(playerid, TextLogin[2][playerid], 0.000000, -0.187034);
- PlayerTextDrawTextSize(playerid, TextLogin[2][playerid], -4.823530, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[2][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[2][playerid], 65535);
- PlayerTextDrawUseBox(playerid, TextLogin[2][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[2][playerid], 65535);
- PlayerTextDrawSetShadow(playerid, TextLogin[2][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[2][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[2][playerid], 65535);
- PlayerTextDrawFont(playerid, TextLogin[2][playerid], 0);
- TextLogin[3][playerid] = CreatePlayerTextDraw(playerid, 645.352844, 108.083442, "BARRA2");
- PlayerTextDrawLetterSize(playerid, TextLogin[3][playerid], 0.000000, -0.187034);
- PlayerTextDrawTextSize(playerid, TextLogin[3][playerid], -2.000000, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[3][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[3][playerid], 65535);
- PlayerTextDrawUseBox(playerid, TextLogin[3][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[3][playerid], 65535);
- PlayerTextDrawSetShadow(playerid, TextLogin[3][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[3][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[3][playerid], 65535);
- PlayerTextDrawFont(playerid, TextLogin[3][playerid], 0);
- TextLogin[4][playerid] = CreatePlayerTextDraw(playerid, 407.176513, 113.499992, "CENTRO");
- PlayerTextDrawLetterSize(playerid, TextLogin[4][playerid], 0.000000, 31.789846);
- PlayerTextDrawTextSize(playerid, TextLogin[4][playerid], 227.176544, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[4][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[4][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[4][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[4][playerid], 102);
- PlayerTextDrawSetShadow(playerid, TextLogin[4][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[4][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[4][playerid], 2);
- TextLogin[5][playerid] = CreatePlayerTextDraw(playerid, 258.353057, 104.416633, "LYW");
- PlayerTextDrawLetterSize(playerid, TextLogin[5][playerid], 0.967647, 4.930831);
- PlayerTextDrawTextSize(playerid, TextLogin[5][playerid], 420.235198, 467.833465);
- PlayerTextDrawAlignment(playerid, TextLogin[5][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[5][playerid], 41215);
- PlayerTextDrawSetShadow(playerid, TextLogin[5][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[5][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[5][playerid], -1);
- PlayerTextDrawFont(playerid, TextLogin[5][playerid], 1);
- PlayerTextDrawSetProportional(playerid, TextLogin[5][playerid], 1);
- TextLogin[6][playerid] = CreatePlayerTextDraw(playerid, 331.764617, 112.000000, "RPG 1.0");
- PlayerTextDrawLetterSize(playerid, TextLogin[6][playerid], 0.383176, 1.775000);
- PlayerTextDrawAlignment(playerid, TextLogin[6][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[6][playerid], -1);
- PlayerTextDrawSetShadow(playerid, TextLogin[6][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[6][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[6][playerid], 51);
- PlayerTextDrawFont(playerid, TextLogin[6][playerid], 1);
- PlayerTextDrawSetProportional(playerid, TextLogin[6][playerid], 1);
- TextLogin[7][playerid] = CreatePlayerTextDraw(playerid, 233.176147, 162.166854, "BARRA L1");
- PlayerTextDrawLetterSize(playerid, TextLogin[7][playerid], 0.000000, 13.507081);
- PlayerTextDrawTextSize(playerid, TextLogin[7][playerid], 228.588241, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[7][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[7][playerid], 65535);
- PlayerTextDrawUseBox(playerid, TextLogin[7][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[7][playerid], 65535);
- PlayerTextDrawSetShadow(playerid, TextLogin[7][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[7][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[7][playerid], 65535);
- PlayerTextDrawFont(playerid, TextLogin[7][playerid], 0);
- TextLogin[8][playerid] = CreatePlayerTextDraw(playerid, 405.470001, 162.000213, "BARRA L2");
- PlayerTextDrawLetterSize(playerid, TextLogin[8][playerid], 0.000000, 13.365905);
- PlayerTextDrawTextSize(playerid, TextLogin[8][playerid], 400.823272, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[8][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[8][playerid], 65535);
- PlayerTextDrawUseBox(playerid, TextLogin[8][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[8][playerid], 65535);
- PlayerTextDrawSetShadow(playerid, TextLogin[8][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[8][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[8][playerid], 65535);
- PlayerTextDrawFont(playerid, TextLogin[8][playerid], 0);
- TextLogin[9][playerid] = CreatePlayerTextDraw(playerid, 385.763793, 129.750244, "BARRA RPG");
- PlayerTextDrawLetterSize(playerid, TextLogin[9][playerid], 0.000000, -0.234089);
- PlayerTextDrawTextSize(playerid, TextLogin[9][playerid], 328.352539, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[9][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[9][playerid], 65535);
- PlayerTextDrawUseBox(playerid, TextLogin[9][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[9][playerid], 65535);
- PlayerTextDrawSetShadow(playerid, TextLogin[9][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[9][playerid], 0);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[9][playerid], 65535);
- PlayerTextDrawFont(playerid, TextLogin[9][playerid], 0);
- TextLogin[10][playerid] = CreatePlayerTextDraw(playerid, 370.470703, 185.250000, "BARRA L");
- PlayerTextDrawLetterSize(playerid, TextLogin[10][playerid], 0.000000, 0.945861);
- PlayerTextDrawTextSize(playerid, TextLogin[10][playerid], 264.352874, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[10][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[10][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[10][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[10][playerid], -2139062017);
- PlayerTextDrawSetShadow(playerid, TextLogin[10][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[10][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[10][playerid], 0);
- TextLogin[11][playerid] = CreatePlayerTextDraw(playerid, 290.823394, 185.500030, "LOGIN");
- PlayerTextDrawLetterSize(playerid, TextLogin[11][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, TextLogin[11][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[11][playerid], -1);
- PlayerTextDrawSetShadow(playerid, TextLogin[11][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[11][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[11][playerid], 255);
- PlayerTextDrawFont(playerid, TextLogin[11][playerid], 2);
- PlayerTextDrawSetProportional(playerid, TextLogin[11][playerid], 1);
- PlayerTextDrawSetSelectable(playerid, TextLogin[11][playerid], true);
- TextLogin[12][playerid] = CreatePlayerTextDraw(playerid, 371.000122, 227.666275, "BARRA R");
- PlayerTextDrawLetterSize(playerid, TextLogin[12][playerid], 0.000000, 0.945861);
- PlayerTextDrawTextSize(playerid, TextLogin[12][playerid], 264.352874, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[12][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[12][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[12][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[12][playerid], -2139062017);
- PlayerTextDrawSetShadow(playerid, TextLogin[12][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[12][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[12][playerid], 0);
- TextLogin[13][playerid] = CreatePlayerTextDraw(playerid, 271.117523, 226.750015, "RECUPERAR SENHA");
- PlayerTextDrawLetterSize(playerid, TextLogin[13][playerid], 0.238705, 1.850834);
- PlayerTextDrawTextSize(playerid, TextLogin[13][playerid], -43.764709, -2.333333);
- PlayerTextDrawAlignment(playerid, TextLogin[13][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[13][playerid], -1);
- PlayerTextDrawSetShadow(playerid, TextLogin[13][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[13][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[13][playerid], 255);
- PlayerTextDrawFont(playerid, TextLogin[13][playerid], 2);
- PlayerTextDrawSetProportional(playerid, TextLogin[13][playerid], 1);
- PlayerTextDrawSetSelectable(playerid, TextLogin[13][playerid], true);
- TextLogin[14][playerid] = CreatePlayerTextDraw(playerid, 371.058959, 270.666992, "BARRA S");
- PlayerTextDrawLetterSize(playerid, TextLogin[14][playerid], 0.000000, 0.945861);
- PlayerTextDrawTextSize(playerid, TextLogin[14][playerid], 264.352874, 0.000000);
- PlayerTextDrawAlignment(playerid, TextLogin[14][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[14][playerid], 0);
- PlayerTextDrawUseBox(playerid, TextLogin[14][playerid], true);
- PlayerTextDrawBoxColor(playerid, TextLogin[14][playerid], -2139062017);
- PlayerTextDrawSetShadow(playerid, TextLogin[14][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[14][playerid], 0);
- PlayerTextDrawFont(playerid, TextLogin[14][playerid], 0);
- TextLogin[15][playerid] = CreatePlayerTextDraw(playerid, 295.117523, 270.500000, "SAIR");
- PlayerTextDrawLetterSize(playerid, TextLogin[15][playerid], 0.449999, 1.600000);
- PlayerTextDrawAlignment(playerid, TextLogin[15][playerid], 1);
- PlayerTextDrawColor(playerid, TextLogin[15][playerid], -1);
- PlayerTextDrawSetShadow(playerid, TextLogin[15][playerid], 0);
- PlayerTextDrawSetOutline(playerid, TextLogin[15][playerid], 1);
- PlayerTextDrawBackgroundColor(playerid, TextLogin[15][playerid], 255);
- PlayerTextDrawFont(playerid, TextLogin[15][playerid], 2);
- PlayerTextDrawSetProportional(playerid, TextLogin[15][playerid], 1);
- PlayerTextDrawSetSelectable(playerid, TextLogin[15][playerid], true);
- }
- show_TextsLogin(playerid) {
- for(new text; text != sizeof TextLogin; text++) {
- PlayerTextDrawShow(playerid, TextLogin[text]);
- }
- }
- hide_TextsLogin(playerid) { // Use onde for para ocultar os text
- for(new text; text != sizeof TextLogin; text++) {
- PlayerTextDrawHide(playerid, TextLogin[text]);
- }
- }
- public OnPlayerConnect(playerid)
- {
- CriarTextsLogin(playerid);
- return 1;
- }
- public OnPlayerRequestClass( playerid, classid )
- {
- if (IsPlayerNPC(playerid))
- {
- SpawnPlayer(playerid);
- return 1;
- }
- if (!IsPlayerNPC(playerid))
- {
- LimparChat(playerid, 50);
- if(pInfo[playerid][Logado] == false) {
- show_TextsLogin(playerid);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement