Jump to content

Ajutor text inainte de Login


Recommended Posts

Am incercat sa fac un text care sa apara in momentul in care scrie in chat "Connected. Joining the game..."(in momentul in care este apelata functia OnPlayerConnect), sa tina cateva secunde, iar mai apoi sa dispara si sa apara si "Connected to..." o data cu functiile aferente de login etc. In momentul actual textul apare , dar dupa se suprapune dialogul de login peste el destul de repede, asa ca as vrea sa stiu cum fac lucrurile sa "intarzie un pic".

Link to comment
Share on other sites

1 hour ago, AlexTove said:

Am incercat sa fac un text care sa apara in momentul in care scrie in chat "Connected. Joining the game..."(in momentul in care este apelata functia OnPlayerConnect), sa tina cateva secunde, iar mai apoi sa dispara si sa apara si "Connected to..." o data cu functiile aferente de login etc. In momentul actual textul apare , dar dupa se suprapune dialogul de login peste el destul de repede, asa ca as vrea sa stiu cum fac lucrurile sa "intarzie un pic".

Foloseste un timer

http://wiki.sa-mp.com/wiki/SetTimer 

poftim

poti face ceva gen

SetTimer("mesajlogin", 1000, false)  //1000 de milisecunde = 1 secunda

function mesajlogin()

{

     print("Logheaza-te frate pe server!");

}

Edited by AndreiB
Link to comment
Share on other sites

12 minutes ago, AlexTove said:

Si cum folosesc eu un timer care efectiv sa imi tina player-ul sa nu intre pe server ?

Foloseste un timer

http://wiki.sa-mp.com/wiki/SetTimer 

poftim

poti face ceva gen

SetTimer("mesajlogin", 1000, false)  //1000 de milisecunde = 1 secunda

function mesajlogin()

{

     print("Logheaza-te frate pe server!");

}

Link to comment
Share on other sites

Deja am pus chestia asta...dupa cum spuneam. Daca pui doar aia efectiv iti apare text-ul, dar dupa efectiv imediat apare si "Connected to server...". Iar o data cu asta apar si chestiile cum ar fi dialogul pentru login, care ajunge sa fie suprapus peste text. 

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.