Jump to content
  • 0

Nume sub Minimap


Mihail.

Question

5 answers to this question

Recommended Posts

  • 0

1-Pune textraw-ul in OnGamemodeInit.

2-Redenumestel din textdraw0 (depinde de caz).

3-Adaugi scriptul ca sa iti apara numele sub minimap.

4-Mergi la OnPlayerConnect.

5-Scrii TextDrawShowForPlayer (numele textdraw-ului).

6-In caz ca nu iti merge adauga asta sus in gamemode  #pragma tabsize

Link to comment
Share on other sites

  • 0

Adauga asta la OnPlayerConnect

  1.      new newtext[41], name[MAX_PLAYER_NAME];
  2.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  3.     format(newtext, sizeof(newtext), "%s", name);
  4.     TextDrawSetString(TEXTDRAWNAME, newtext);  
  5.     TextDrawShowForPlayer(playerid, TEXTDRAWNAME);

 

Ai grija, %s  il lasi asa deoarece asta inseamna numele jucatorului, dupa  schimbi name cu numele serverului, ai grija sa modifici si  TEXTDRAWNAME cu numele textdtaw-ului.

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.