Jump to content
  • 0

Problema Click TextDraw



Nume: Adyi

Problema: am creeat un TD cu click dai click pe el si iti da un mesaj sa fiu mai specific: Am facut o comanda dupa ce scriu comanda imi apare acel textdraw si imi apare si mausul (sageata) si daca vreau sa dau click pe text nu face nimic dau si nu zice nici un mesaj nici nu dispare nimic

Ce am incercat sa fa:

Am pus acest new


    new PlayerText:BaiatText[MAX_PLAYERS];


Am pus asta la onplayerconnect


    BaiatText[playerid] = CreatePlayerTextDraw(playerid,293.000000, 115.000000, "ClickBaiat");

    PlayerTextDrawAlignment(playerid,BaiatText[playerid], 3);

    PlayerTextDrawBackgroundColor(playerid,BaiatText[playerid], 799);

    PlayerTextDrawFont(playerid,BaiatText[playerid], 5);

    PlayerTextDrawLetterSize(playerid,BaiatText[playerid], 0.699998, 2.999999);

    PlayerTextDrawColor(playerid,BaiatText[playerid], -1);

    PlayerTextDrawSetOutline(playerid,BaiatText[playerid], 1);

    PlayerTextDrawSetProportional(playerid,BaiatText[playerid], 1);

    PlayerTextDrawUseBox(playerid,BaiatText[playerid], 1);

    PlayerTextDrawBoxColor(playerid,BaiatText[playerid], 65535);

    PlayerTextDrawTextSize(playerid,BaiatText[playerid], -114.000000, 167.000000);

    PlayerTextDrawSetPreviewModel(playerid,BaiatText[playerid], 48);

    PlayerTextDrawSetPreviewRot(playerid,BaiatText[playerid], -20.000000, 0.000000, -14.000000, 1.200000);

    PlayerTextDrawSetSelectable(playerid,BaiatText[playerid], 1);



    public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid)


      if(playertextid == BaiatText[playerid])


          PlayerTextDrawHide(playerid, BaiatText[playerid]);

          SendClientMessage(playerid, 0xFFFFFFAA, "You clicked on a textdraw.");



      return 1;



Si comanda asat o am


    if(strcmp(cmd, "/testtd", true) == 0)




          if(PlayerData[playerid][pAdmin] >= 3)


              PlayerTextDrawShow(playerid, BaiatText[playerid]);

              SelectTextDraw(playerid, 0xFF4040AA);




    return 1;


Link to comment
Share on other sites

5 answers to this question

Recommended Posts

[pawn] PlayerTextDrawTextSize(playerid,BaiatText[playerid], -114.000000, 167.000000);[/pawn]

Incearca sa pui valori pozitive..

Nu mai deschideti in pu*a mea servere de SA:MP !

Jucati-va pe cele care sunt !   Sunt suficiente !

Reguli de bun simt:

1. Nu faceti reclama unde nu trebuie !

2. Nu injurati ca la usa cortului !

3. Daca esti analfabeti, taci din gura !

4. Nu abuza de 'scuze', 'din greseala' !


My work ::: http://pastebin.com/VRNRcaAs

Link to comment
Share on other sites

This topic is now closed to further replies.
  • 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.