Jump to content
  • 0

Ajutor Login TextDraw


StrypS

Question

Salut all, incerc sa fac in system de login pe textdraw dar ma inpiedic de ceva..

Este simplu arata
Login Server
Nick Name: [Nume]
PASSWORD: CLICK 

totul merge bine, arata login server si nick name: [nick player], dar nu arata password click..

Astea sunt liniile pe care le-am adaugat:

new Text:LoginPTD[2]; //global
new PlayerText:LoginPTD1; //player select





if(playertextid == LoginPTD1)
    {
     ShowPlayerDialog(playerid,DIALOG_LOGIN2,DIALOG_STYLE_PASSWORD,"SERVER: Login","Welcome to the Reggaeton-RPG Server.\n\nPlease enter your password below!", "Login", "Cancel");
    }

 

    new string[144];

    format(string, sizeof(string), "NICK NAME:: %s", GetName(playerid));
    TextDrawSetString(LoginPTD[1], string);
    PlayerTextDrawSetString(playerid, LoginPTD1, "PASSWORD:_CLICK");


    for(new i = 0; i < sizeof(LoginPTD); i++) TextDrawShowForPlayer(playerid, LoginPTD);
    PlayerTextDrawShow(playerid, LoginPTD1);






    LoginPTD1 = CreatePlayerTextDraw(playerid, 561.000000, 232.137481, "PASSWORD_CLICK");
    PlayerTextDrawTextSize(playerid, LoginPTD1, 15.0, 15.0);
    PlayerTextDrawLetterSize(playerid, LoginPTD1, 0.398999, 0.895625);
    PlayerTextDrawAlignment(playerid, LoginPTD1, 2);
    PlayerTextDrawColor(playerid, LoginPTD1, -1271778561);
    PlayerTextDrawSetShadow(playerid, LoginPTD1, 0);
    PlayerTextDrawSetOutline(playerid, LoginPTD1, 0);
    PlayerTextDrawBackgroundColor(playerid, LoginPTD1, 255);
    PlayerTextDrawFont(playerid, LoginPTD1, 2);
    PlayerTextDrawSetProportional(playerid, LoginPTD1, 1);
    PlayerTextDrawSetShadow(playerid, LoginPTD1, 0);
    PlayerTextDrawSetSelectable(playerid, LoginPTD1, true);







 
    for(new i = 0; i < 2; i++) TextDrawHideForPlayer(playerid, LoginPTD);
    PlayerTextDrawShow(playerid, LoginPTD1);

 


        new string[144];

        format(string, sizeof(string), "NICK NAME:: %s", GetName(playerid));
        TextDrawSetString(LoginPTD[1], string);
        PlayerTextDrawSetString(playerid, LoginPTD1, "PASSWORD: CLICK");
 

 

 

 

 

 

    LoginPTD[0] = TextDrawCreate(238.000000, 180.000000, "LOGIN REGGAETON SERVER");
    TextDrawBackgroundColor(LoginPTD[0], 255);
    TextDrawAlignment(LoginPTD[0], 2);
    TextDrawLetterSize(LoginPTD[0], 0.320000, 2.000000);
    TextDrawColor(LoginPTD[0], 65535);
    TextDrawSetOutline(LoginPTD[0], 0);
    TextDrawSetProportional(LoginPTD[0], 1);
    TextDrawSetShadow(LoginPTD[0], 1);

    LoginPTD[1] = TextDrawCreate(237.000000, 200.000000, "NICK NAME: ");
    TextDrawBackgroundColor(LoginPTD[1], 255);
    TextDrawAlignment(LoginPTD[1], 2);
    TextDrawLetterSize(LoginPTD[1], 0.320000, 2.000000);
    TextDrawColor(LoginPTD[1], -936623615);
    TextDrawSetOutline(LoginPTD[1], 0);
    TextDrawSetProportional(LoginPTD[1], 1);
    TextDrawSetShadow(LoginPTD[1], 1);






    for(new i = 0; i < 2; i++) TextDrawHideForPlayer(playerid, LoginPTD);

 

 

 

 

VAROG HELP, NU AM MAI SCRIS UNDE SUNT ADAUGATE CA SUNT CORECT ADAUGATE MA AJUTAT UN BAIAT BANDITUL, DAR V-AM ZIS NU ARATA PASSWORD: CLICK SA MA CONECTEZ HELPP!!!

Edited by StrypS
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

La "PlayerTextDrawSetSelectable(playerid, LoginPTD1, true);" pune in loc de true -> 1 si unde declari PlayerTextDrawShow pune si SelectTextDraw(playerid, culoare); si la OnPlayerLogin ( Sau cum ai tu setata functia ) pune CancelSelectTextDraw de playerid

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.