Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Recommended Posts

Posted (edited)

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
Posted

=)) 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 !

Posted

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

Posted (edited)

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 !

  • 6 months later...
Posted

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

  • 2 years later...
Posted
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 ;)

  • 4 weeks later...
Posted

Bre tu in variabila ai MAX_PLAYERS in TextDraw tu ai indicat logo cu masivul [f], la final o sa ai eroare deoarece trebuie sa fie [playerid] daca tu ai #define unde f este playerid atunci asa si indica

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.