Jump to content

Tutotial Textdraw Logo+Nume


Sammich

Recommended Posts

Salutare Sa-mp.ro .

In ultima vreme am vazut ca multi dintre voi vreti sa faceti un logo.

Sa incepem tutorialul.

Adaugati acest new la new-uri

new Text:Logo[MAX_PLAYERS];

Apoi la OnGameModeInit adaugati textdraw-ul

        Logo[f] = TextDrawCreate(466.179412, 429.333160, "New TextDraw");
        TextDrawLetterSize(Logo[f], 0.204025, 2.078334);
        TextDrawAlignment(Logo[f], 1);
        TextDrawColor(Logo[f], -1);
        TextDrawSetShadow(Logo[f], 0);
        TextDrawSetOutline(Logo[f], 1);
        TextDrawBackgroundColor(Logo[f], 255);
        TextDrawFont(Logo[f], 2);
        TextDrawSetProportional(Logo[f], 1);

Apoi adaugati la OnPlayerConnect asta

 	new string[256];
	format( string , 128 , "%s / Numele server-ului" , playerVariables[playerid][pNormalName]);
    TextDrawSetString(Logo[playerid] , string);
	TextDrawShowForPlayer(playerid, Logo[playerid]);

Sper ca v-am ajutat,o sa revin cu un tutorial de scadere wanted points.

P.S:Daca nu va convine cum este pus textdraw-ul pe ecran puteti sa il modificati voi,va recomand iTD iPLEOMAX's TextDraw Editor

 
 
Edited by Sammich
  • Haha 1
Link to comment
Share on other sites

=)) cineva cereajutor si i-a fost explicat exact ce ai postat tu mai sus de catre altcineva. Tu doar ai copiat de acolo si nu ai explicat nimic. asta nu e tutorial.

  • Upvote 1

Respect acestei comunitati, dar mai presus respect membrilor ei !

Link to comment
Share on other sites

Apoi la OnGameModeInit adaugati textdraw-ul

        Logo[f] = TextDrawCreate(466.179412, 429.333160, "New TextDraw");
        TextDrawLetterSize(Logo[f], 0.204025, 2.078334);
        TextDrawAlignment(Logo[f], 1);
        TextDrawColor(Logo[f], -1);
        TextDrawSetShadow(Logo[f], 0);
        TextDrawSetOutline(Logo[f], 1);
        TextDrawBackgroundColor(Logo[f], 255);
        TextDrawFont(Logo[f], 2);
        TextDrawSetProportional(Logo[f], 1);
 
 

for(new f; f <= MAX_PLAYERS; f++)
{
    Logo[f] = TextDrawCreate(466.179412, 429.333160, "New TextDraw");
    TextDrawLetterSize(Logo[f], 0.204025, 2.078334);
    TextDrawAlignment(Logo[f], 1);
    TextDrawColor(Logo[f], -1);
    TextDrawSetShadow(Logo[f], 0);
    TextDrawSetOutline(Logo[f], 1);
    TextDrawBackgroundColor(Logo[f], 255);
    TextDrawFont(Logo[f], 2);
    TextDrawSetProportional(Logo[f], 1);
}

 

242086.png

Link to comment
Share on other sites

A copiat un raspuns dar a uitat sa creeze textdrawul in tutorial :)

stiam eu ca tu l-ai facut. ce sa faca si el :))

Edited by Ath9

Respect acestei comunitati, dar mai presus respect membrilor ei !

Link to comment
Share on other sites

  • 6 months later...
  • 2 years later...
La ‎06‎.‎02‎.‎2016 la 20:46, Zephyr. a spus:

E un bug daca eu intru cu un nume de 32+ caractere se suprapune pe pe textdraw.

Nu e un bug dar ceea ce ti-a dat el nu e chiar bine TDEditor de acolo iti poti face treaba cu caracterele , daca vrei te ajut ;)

Link to comment
Share on other sites

  • 4 weeks later...

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.