INSIDE RESURSE

Resurse pentru toate jocurile online! samp, csgo, mape, muzica, filme, ps, divertisment, geforce, fzarea, muzica, clan, coduri, cfg, inside, resurse, servere, gata, facute, war, zone, pgl, long, nvid


Nu sunteti conectat. Conectati-va sau inregistrati-va

Textdraw - Driving School

Por favor, faça o login para responder

Vezi subiectul anterior Vezi subiectul urmator In jos  Mesaj [Pagina 1 din 1]

#1vendME 

la data de Lun Mai 01, 2017 11:19 pm

avatar

Fondator
Fondator
Mai jos aveti cateva instructiuni de 'instalare'.
Crem cateva variabile la nivel global:
 
new Text:Textdraw0, Text:Textdraw1, Text:Textdraw2, Text:Textdraw3;
 
Si la OnGameModeInit()

Textdraw0 = TextDrawCreate(627.000000, 266.380004, "usebox");
TextDrawLetterSize(Textdraw0, 0.000000, 6.327777);
TextDrawTextSize(Textdraw0, 488.000000, 0.000000);
TextDrawAlignment(Textdraw0, 1);
TextDrawColor(Textdraw0, 0);
TextDrawUseBox(Textdraw0, true);
TextDrawBoxColor(Textdraw0, 102);
TextDrawSetShadow(Textdraw0, 0);
TextDrawSetOutline(Textdraw0, 0);
TextDrawFont(Textdraw0, 0);


Textdraw1 = TextDrawCreate(533.500000, 248.080047, "Dmv");
TextDrawLetterSize(Textdraw1, 0.783000, 3.229598);
TextDrawAlignment(Textdraw1, 1);
TextDrawColor(Textdraw1, -1);
TextDrawSetShadow(Textdraw1, 0);
TextDrawSetOutline(Textdraw1, 1);
TextDrawBackgroundColor(Textdraw1, 51);
TextDrawFont(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);


Textdraw2 = TextDrawCreate(507.000000, 281.120025, "If you pass the driving test you will receive driver`s licence");
TextDrawLetterSize(Textdraw2, 0.103000, 1.454401);
TextDrawAlignment(Textdraw2, 1);
TextDrawColor(Textdraw2, -1);
TextDrawSetShadow(Textdraw2, 0);
TextDrawSetOutline(Textdraw2, 1);
TextDrawBackgroundColor(Textdraw2, 51);
TextDrawFont(Textdraw2, 1);
TextDrawSetProportional(Textdraw2, 1);


Textdraw3 = TextDrawCreate(527.000000, 298.480072, "checkpoint: 5/9");
TextDrawLetterSize(Textdraw3, 0.254999, 1.493600);
TextDrawColor(Textdraw3, -1);
TextDrawSetShadow(Textdraw3, 0);
TextDrawSetOutline(Textdraw3, 1);
TextDrawBackgroundColor(Textdraw3, 51);
TextDrawFont(Textdraw3, 3);
TextDrawSetProportional(Textdraw3, 1);

 
Iar mai jos va voi lasa un exemplu, cum puteti sa il folositi.

stock ShowDMV(playerid)
{
       new dmstr[16];
       TextDrawShowForPlayer(playerid, Textdraw0);
       TextDrawShowForPlayer(playerid, Textdraw1);
       TextDrawShowForPlayer(playerid, Textdraw2);
       format(dmvstr, 16, "~w~checkpoints: ~r%d~w~/~y~9", variabila);
       TextDrawShowForPlayer(playerid, TextDraw3);
       return 1;
}

http://resurseinside.forumgratuit.ro

Vezi subiectul anterior Vezi subiectul urmator Sus  Mesaj [Pagina 1 din 1]

Por favor, faça o login para responder

Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum