Jump to content

Cerere ajutor


_Andrei_

Recommended Posts

Deci , am un gamemode edit burned ,are acel DealerShip  in care poti edita pretul ca admin, vreau ca atunci cand dau esc sa imi iasa din DS si sa ma dea la locul de unde am fost ,ca atunci cand apas esc doar se sterge textdraw-ul si raman in masina ...Cand apas X pe textraw merge corect ,dar ai o bijnuinta sa apesi ESC sa se inchida si ramai blocat acolo...

Link to comment
Share on other sites

pune codu cu hidde la

asta se pune la OnPlayerClickTextDraw

if(clickedid == Text:INVALID_TEXT_DRAW)
{
	if(variabilacareverificadacaestiinds == 1)
    {
      CancelSelectTextDraw( playerid );
      PlayerTextDrawHide(playerid, TD);
    }
} 

 

Edited by MiritaXD
Link to comment
Share on other sites

Tine cont de primul if pe care ti l-a dat colegul MiritaXD, mai exact:

if(clickedid == Text:INVALID_TEXT_DRAW)

Trece in acest IF codul pe care il gasesti la textdraw-ul "X" atunci cand este apelat si muta-l in acest if. (Desigur, cu parantezele aferente)

Mai "la obiect", acest if este apelat atunci cand "apesi" pe un textdraw invalid, tasta "ESC" este facuta de la "mama ei" ca si textdraw selectiv atunci cand este apasata, a fost facuta asa tocmai pentru a inchide in orice circumstante dialogurile (deschise)!

Dar spre exemplu daca ai un TextDraw selectiv deschis si pe langa asta mai deschizi si un dialog atunci cand "ESC"-ul este actionat prima data se inchide TextDraw-ul Dialogul fiind deschis in continuare. Si bine inteles, mai apesi odata ESC sa inchizi si dialogul deschis anterior.

ATENTIE: Daca ai un textdraw selectiv deschis care nu-ti da voie din script sa-l inchizi cu ESC (returneaza SelectTextDraw) si pe langa asta ai si un dialog deschis, nu vei putea inchide dialogul decat daca actionezi continuu tasta ESC (apasata).

Edited by Eyser

The best of the best!

Awesome !!!

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
Reply to this topic...

×   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.