Jump to content

Speedometer (Snippet)


Recommended Posts

  • Aveți aici textdraw-urile + funcțiile cu care le actualizam ca să vă fie mai ușoară munca.
  • Atunci când vehiculul este inchis făcusem ca lăcățelu să fie pe roșu, când nu să fie pe verde.
  • Modelul vehiculului in preview model.
  • Viața și Fuel pe bară frumos aranjat.

Am folosit acest speedometer insă acum mi l-am schimbat mai simplu și pe placul mediului de jucători români din păcate

 

Imagine cu cel care il am acum:

 

MBw7R8y.jpg

Imagini cu acesta care il pun la dispozitia dvs.

uiTnozP.jpg

 

	new Text:SpeedometerTD[13];
	new PlayerText:SpeedometerPDP[MAX_PLAYERS][8];

	SpeedometerPDP[playerid][0] = CreatePlayerTextDraw(playerid, 527.916503, 304.559234, "--------");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][0], 0.671666, 6.062071);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][0], 1);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][0], -13827864);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][0], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][0], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][0], 96);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][0], 1);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][0], 1);

	SpeedometerPDP[playerid][1] = CreatePlayerTextDraw(playerid, 527.583312, 287.060913, "--------");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][1], 0.671666, 6.062071);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][1], 1);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][1], -13827864);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][1], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][1], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][1], 96);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][1], 1);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][1], 1);

	SpeedometerPDP[playerid][2] = CreatePlayerTextDraw(playerid, 624.217468, 317.757293, "100");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][2], 0.135332, 0.824293);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][2], 3);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][2], -141);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][2], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][2], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][2], 51);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][2], 2);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][2], 1);

	SpeedometerPDP[playerid][3] = CreatePlayerTextDraw(playerid, 623.343322, 335.090637, "20");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][3], 0.135332, 0.824293);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][3], 3);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][3], -141);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][3], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][3], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][3], 51);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][3], 2);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][3], 1);

	SpeedometerPDP[playerid][4] = CreatePlayerTextDraw(playerid, 572.267700, 392.829742, "PreviewModel");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][4], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, SpeedometerPDP[playerid][4], 17.000019, 16.177759);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][4], 1);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][4], 16728319);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][4], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][4], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][4], 0x00000000);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][4], 5);
	PlayerTextDrawSetPreviewModel(playerid, SpeedometerPDP[playerid][4], 19804);
	PlayerTextDrawSetPreviewRot(playerid, SpeedometerPDP[playerid][4], 0.000000, 0.000000, 0.000000, 1.000000);

	SpeedometerPDP[playerid][5] = CreatePlayerTextDraw(playerid, 553.944152, 363.805572, "300");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][5], 0.526332, 3.935408);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][5], 3);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][5], -12713729);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][5], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][5], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][5], 51);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][5], 2);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][5], 1);

	SpeedometerPDP[playerid][6] = CreatePlayerTextDraw(playerid, 559.971740, 396.087127, "000000000");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][6], 0.173666, 1.151998);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][6], 3);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][6], -141);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][6], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][6], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][6], 51);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][6], 2);
	PlayerTextDrawSetProportional(playerid, SpeedometerPDP[playerid][6], 1);

	SpeedometerPDP[playerid][7] = CreatePlayerTextDraw(playerid, 562.600646, 328.118438, "PreviewModel");
	PlayerTextDrawLetterSize(playerid, SpeedometerPDP[playerid][7], 0.000000, 0.000000);
	PlayerTextDrawTextSize(playerid, SpeedometerPDP[playerid][7], 70.666717, 119.466674);
	PlayerTextDrawAlignment(playerid, SpeedometerPDP[playerid][7], 1);
	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][7], -91);
	PlayerTextDrawSetShadow(playerid, SpeedometerPDP[playerid][7], 0);
	PlayerTextDrawSetOutline(playerid, SpeedometerPDP[playerid][7], 0);
	PlayerTextDrawBackgroundColor(playerid, SpeedometerPDP[playerid][7], 0x00000000);
	PlayerTextDrawFont(playerid, SpeedometerPDP[playerid][7], 5);
	PlayerTextDrawSetPreviewModel(playerid, SpeedometerPDP[playerid][7], 505);
	PlayerTextDrawSetPreviewRot(playerid, SpeedometerPDP[playerid][7], 342.000000, 360.000000, 56.000000, 1.830031);




	SpeedometerTD[12] = TextDrawCreate(629.349609, 313.583374, "usebox");
	TextDrawLetterSize(SpeedometerTD[12], 0.000000, 12.430576);
	TextDrawTextSize(SpeedometerTD[12], 493.226806, 0.000000);
	TextDrawAlignment(SpeedometerTD[12], 1);
	TextDrawColor(SpeedometerTD[12], 0);
	TextDrawUseBox(SpeedometerTD[12], true);
	TextDrawBoxColor(SpeedometerTD[12], -1734830070);
	TextDrawSetShadow(SpeedometerTD[12], 0);
	TextDrawSetOutline(SpeedometerTD[12], 0);
	TextDrawFont(SpeedometerTD[12], 0);



	SpeedometerTD[0] = TextDrawCreate(628.466369, 352.420288, "usebox");
	TextDrawLetterSize(SpeedometerTD[0], 0.000000, 7.839833);
	TextDrawTextSize(SpeedometerTD[0], 495.124084, 0.000000);
	TextDrawAlignment(SpeedometerTD[0], 1);
	TextDrawColor(SpeedometerTD[0], 0);
	TextDrawUseBox(SpeedometerTD[0], true);
	TextDrawBoxColor(SpeedometerTD[0], 50);
	TextDrawSetShadow(SpeedometerTD[0], 0);
	TextDrawSetOutline(SpeedometerTD[0], 0);
	TextDrawBackgroundColor(SpeedometerTD[0], 0x00000000);
	TextDrawFont(SpeedometerTD[0], 0);

	SpeedometerTD[1] = TextDrawCreate(628.466369, 333.434844, "usebox");
	TextDrawLetterSize(SpeedometerTD[1], 0.000000, 1.379463);
	TextDrawTextSize(SpeedometerTD[1], 495.124084, 0.000000);
	TextDrawAlignment(SpeedometerTD[1], 1);
	TextDrawColor(SpeedometerTD[1], 0);
	TextDrawUseBox(SpeedometerTD[1], true);
	TextDrawBoxColor(SpeedometerTD[1], 50);
	TextDrawSetShadow(SpeedometerTD[1], 0);
	TextDrawSetOutline(SpeedometerTD[1], 0);
	TextDrawBackgroundColor(SpeedometerTD[1], 0x00000000);
	TextDrawFont(SpeedometerTD[1], 0);

	SpeedometerTD[2] = TextDrawCreate(628.466369, 314.934814, "usebox");
	TextDrawLetterSize(SpeedometerTD[2], 0.000000, 1.379463);
	TextDrawTextSize(SpeedometerTD[2], 495.124084, 0.000000);
	TextDrawAlignment(SpeedometerTD[2], 1);
	TextDrawColor(SpeedometerTD[2], 0);
	TextDrawUseBox(SpeedometerTD[2], true);
	TextDrawBoxColor(SpeedometerTD[2], 50);
	TextDrawSetShadow(SpeedometerTD[2], 0);
	TextDrawSetOutline(SpeedometerTD[2], 0);
	TextDrawBackgroundColor(SpeedometerTD[2], 0x00000000);
	TextDrawFont(SpeedometerTD[2], 0);

	SpeedometerTD[3] = TextDrawCreate(502.736785, 395.892578, "-----------");
	TextDrawLetterSize(SpeedometerTD[3], 0.789331, 4.034962);
	TextDrawAlignment(SpeedometerTD[3], 1);
	TextDrawColor(SpeedometerTD[3], -253);
	TextDrawSetShadow(SpeedometerTD[3], -1);
	TextDrawSetOutline(SpeedometerTD[3], 0);
	TextDrawBackgroundColor(SpeedometerTD[3], 64);
	TextDrawFont(SpeedometerTD[3], 1);
	TextDrawSetProportional(SpeedometerTD[3], 1);

	SpeedometerTD[4] = TextDrawCreate(502.736785, 336.170257, "-----------");
	TextDrawLetterSize(SpeedometerTD[4], 0.789331, 4.034962);
	TextDrawAlignment(SpeedometerTD[4], 1);
	TextDrawColor(SpeedometerTD[4], -253);
	TextDrawSetShadow(SpeedometerTD[4], -1);
	TextDrawSetOutline(SpeedometerTD[4], 0);
	TextDrawBackgroundColor(SpeedometerTD[4], 64);
	TextDrawFont(SpeedometerTD[4], 1);
	TextDrawSetProportional(SpeedometerTD[4], 1);

	SpeedometerTD[5] = TextDrawCreate(570.277282, 385.961151, "km/h");
	TextDrawLetterSize(SpeedometerTD[5], 0.209665, 1.023408);
	TextDrawAlignment(SpeedometerTD[5], 3);
	TextDrawColor(SpeedometerTD[5], -141);
	TextDrawSetShadow(SpeedometerTD[5], 0);
	TextDrawSetOutline(SpeedometerTD[5], 0);
	TextDrawBackgroundColor(SpeedometerTD[5], 51);
	TextDrawFont(SpeedometerTD[5], 1);
	TextDrawSetProportional(SpeedometerTD[5], 1);


	SpeedometerTD[6] = TextDrawCreate(570.638610, 396.916809, "km");
	TextDrawLetterSize(SpeedometerTD[6], 0.209665, 1.023408);
	TextDrawAlignment(SpeedometerTD[6], 3);
	TextDrawColor(SpeedometerTD[6], -141);
	TextDrawSetShadow(SpeedometerTD[6], 0);
	TextDrawSetOutline(SpeedometerTD[6], 0);
	TextDrawBackgroundColor(SpeedometerTD[6], 51);
	TextDrawFont(SpeedometerTD[6], 1);
	TextDrawSetProportional(SpeedometerTD[6], 1);

	SpeedometerTD[7] = TextDrawCreate(566.611267, 338.903747, "PreviewModel");
	TextDrawLetterSize(SpeedometerTD[7], 0.000000, 0.000000);
	TextDrawTextSize(SpeedometerTD[7], 63.666625, 100.799987);
	TextDrawAlignment(SpeedometerTD[7], 1);
	TextDrawColor(SpeedometerTD[7], -1768515841);
	TextDrawSetShadow(SpeedometerTD[7], 0);
	TextDrawSetOutline(SpeedometerTD[7], 0);
	TextDrawBackgroundColor(SpeedometerTD[7], 0x00000000);
	TextDrawFont(SpeedometerTD[7], 5);
	TextDrawSetPreviewModel(SpeedometerTD[7], 19786);
	TextDrawSetPreviewRot(SpeedometerTD[7], 180.000000, 0.000000, 0.000000, 1.000000);

	SpeedometerTD[8] = TextDrawCreate(518.205627, 335.590667, "FUEL:");
	TextDrawLetterSize(SpeedometerTD[8], 0.135332, 0.824293);
	TextDrawAlignment(SpeedometerTD[8], 3);
	TextDrawColor(SpeedometerTD[8], -141);
	TextDrawSetShadow(SpeedometerTD[8], 0);
	TextDrawSetOutline(SpeedometerTD[8], 0);
	TextDrawBackgroundColor(SpeedometerTD[8], 51);
	TextDrawFont(SpeedometerTD[8], 2);
	TextDrawSetProportional(SpeedometerTD[8], 1);

	SpeedometerTD[9] = TextDrawCreate(527.916503, 303.559234, "---------");
	TextDrawLetterSize(SpeedometerTD[9], 0.671666, 6.362071);
	TextDrawAlignment(SpeedometerTD[9], 1);
	TextDrawColor(SpeedometerTD[9], -253);
	TextDrawSetShadow(SpeedometerTD[9], -1);
	TextDrawSetOutline(SpeedometerTD[9], 0);
	TextDrawBackgroundColor(SpeedometerTD[9], 96);
	TextDrawFont(SpeedometerTD[9], 1);
	TextDrawSetProportional(SpeedometerTD[9], 1);

	SpeedometerTD[10] = TextDrawCreate(527.583312, 286.060913, "---------");
	TextDrawLetterSize(SpeedometerTD[10], 0.671666, 6.362071);
	TextDrawAlignment(SpeedometerTD[10], 1);
	TextDrawColor(SpeedometerTD[10], -253);
	TextDrawSetShadow(SpeedometerTD[10], -1);
	TextDrawSetOutline(SpeedometerTD[10], 0);
	TextDrawBackgroundColor(SpeedometerTD[10], 96);
	TextDrawFont(SpeedometerTD[10], 1);
	TextDrawSetProportional(SpeedometerTD[10], 1);

	SpeedometerTD[11] = TextDrawCreate(525.296569, 317.924041, "health:");
	TextDrawLetterSize(SpeedometerTD[11], 0.135332, 0.824293);
	TextDrawAlignment(SpeedometerTD[11], 3);
	TextDrawColor(SpeedometerTD[11], -141);
	TextDrawSetShadow(SpeedometerTD[11], 0);
	TextDrawSetOutline(SpeedometerTD[11], 0);
	TextDrawBackgroundColor(SpeedometerTD[11], 51);
	TextDrawFont(SpeedometerTD[11], 2);
	TextDrawSetProportional(SpeedometerTD[11], 1);
	
	
forward UpdateCarInfo(playerid);
public UpdateCarInfo(playerid)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	new speed = GetSpeed(vehicleid);

	new speed_upd[20];
 	new Float:health;
    new veh = GetPlayerVehicleID(playerid);
    GetVehicleHealth(veh, health);
	format(speed_upd, 5, "%.0f",(health)/10);
	PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][2],speed_upd);//health

	format(speed_upd, 5, "%d",Gas[vehicleid]);
	PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][3],speed_upd);//fuel

	format(speed_upd, 5, "%d",speed);
	PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][5],speed_upd);//speed
    switch(floatround((health)/10))
	{
	    case 0..9:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],  "-");//1
	    case 10..19:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"--");//2
	    case 20..29:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"---");//3
	    case 30..39:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"----");//4
	    case 40..49:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"-----");//5
	    case 50..59:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"------");///6
        case 60..69:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"-------");//7
        case 70..79:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"--------");//8
        default:    PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][1],"---------");//9
	}
	switch(Gas[vehicleid])
	{
	    case 0..12:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0],  "-");//1
	    case 13..24:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "--");//2
	    case 25..36:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "---");//3
	    case 37..48:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "----");//4
	    case 49..60:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "-----");//5
	    case 61..72:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "------");//6
        case 73..84:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "-------");//7
        case 85..96:PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "--------");//8
        default: PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][0], "---------");//9
	}
	if(ModelAlesVehicul[playerid] == 0)
	{
	    TextDrawShowForPlayer(playerid,SpeedometerTD[7]);
		PlayerTextDrawSetPreviewModel(playerid, SpeedometerPDP[playerid][7], GetVehicleModel(GetPlayerVehicleID(playerid)));
		PlayerTextDrawSetPreviewVehCol(playerid,SpeedometerPDP[playerid][7],138,138);
		PlayerTextDrawShow(playerid,SpeedometerPDP[playerid][7]);
        PlayerTextDrawShow(playerid,SpeedometerPDP[playerid][4]);
		ModelAlesVehicul[playerid] = 1;
	}
	if(PlayerInfo[playerid][pVehicle1] != 0 && personalcar1[playerid] == vehicleid)
	{
		format(speed_upd, 5, "%.0f",PlayerInfo[playerid][pOdometer1]);
	}
	else if(PlayerInfo[playerid][pVehicle2] != 0 && personalcar2[playerid] == vehicleid)
	{
		format(speed_upd, 5, "%.0f",PlayerInfo[playerid][pOdometer2]);
	}
	else if(PlayerInfo[playerid][pVehicle3] != 0 && personalcar3[playerid] == vehicleid)
	{
		format(speed_upd, 5, "%.0f",PlayerInfo[playerid][pOdometer3]);
	}
	else
	{
		format(speed_upd, 5, "%.0f",parcurs[vehicleid]);
	}
	PlayerTextDrawSetString(playerid,SpeedometerPDP[playerid][6],speed_upd);//millage
    UpdateTDLock(playerid);
	return 1;
}

stock UpdateTDLock(playerid)
{
	new vehicleid = GetPlayerVehicleID(playerid);
	if(OldUsii[vehicleid] != Usii[vehicleid])
	{
		PlayerTextDrawHide(playerid,SpeedometerPDP[playerid][4]);
	 	PlayerTextDrawColor(playerid, SpeedometerPDP[playerid][4], (Usii[vehicleid]) ? (COLOR_RED) : (COLOR_LIGHTGREEN));
		PlayerTextDrawShow(playerid,SpeedometerPDP[playerid][4]);
		OldUsii[vehicleid] = Usii[vehicleid];
	}
	return 1;
}

 

Edited by S.Valentin (Hurdock)
  • Upvote 5
Link to comment
Share on other sites

Cel din a doua poza e chiar frumos si reusit, felicitari daca e facut de tine, ar merge perfect pe un server rp nu unul rpg

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

2 hours ago, Mister said:

Cel din a doua poza e chiar frumos si reusit, felicitari daca e facut de tine, ar merge perfect pe un server rp nu unul rpg

 

Am stat mult sa imi vina idei in cap cum sa-l fac, m-am uitat prin alte videoclipuri cu servere americane, romanesti, rusesti, italiene si am vazut ca cineva a mai facut ceva in genul asta dar intr-o maniera mult mai urata, cu background negru total, eu m-am gandit sa il fac mai transparent sa dea bine.

 

 

Link to comment
Share on other sites

Acum 36 minute, Mister a spus:

Cel din a doua poza e chiar frumos si reusit, felicitari daca e facut de tine, ar merge perfect pe un server rp nu unul rpg

RP = RPG

RP = RolePlay

RPG = RolePlay Game

Nici o diferenta.

Daca prin RP vrei sa spui RPG(RP) HARD, da ai dreptate se potriveste.

Cat despre textdraw, foarte reusit. Acum, oricine se poate folosi intr-un mod fain de patratelele rosii intr-un mod mai special, sa dispara odata cu scaderea health de la masina , la fel si cu fuel, nu e cine stie ce filozofie la mijloc.... xD.

Link to comment
Share on other sites

1 hour ago, WiDuAlK said:

RP = RPG

RP = RolePlay

RPG = RolePlay Game

Nici o diferenta.

Daca prin RP vrei sa spui RPG(RP) HARD, da ai dreptate se potriveste.

Cat despre textdraw, foarte reusit. Acum, oricine se poate folosi intr-un mod fain de patratelele rosii intr-un mod mai special, sa dispara odata cu scaderea health de la masina , la fel si cu fuel, nu e cine stie ce filozofie la mijloc.... xD.

 

Este simplu de făcut, poate o să fac un video tutorial despre Mapping  & Textdraws

Link to comment
Share on other sites

59 minutes ago, H3AtonN said:

Foarte frumos .. Ba,va rog frumos.. Spuneti-mi si mie,unde sa-l pun.. adica stiu ca in gm... dar unde..?? (Plz nu ma criticati,sunt si eu la inceput..)

La OnPlayerConnect

**********************************

Servicii Scripting de calitate:

*********************************

Future Project: ExpertGame

*********************************

Link to comment
Share on other sites

Acum 12 ore, H3AtonN a spus:

Foarte frumos .. Ba,va rog frumos.. Spuneti-mi si mie,unde sa-l pun.. adica stiu ca in gm... dar unde..?? (Plz nu ma criticati,sunt si eu la inceput..)

Dute la inceputul GM-ULUI, si pune news-urile dupaia dute la OnPlayerCannect si pune textdraw-urile, dupaaceea dute la public-uri si pune acel public si forward dupa aceea te duci la stock-uri pui acel stock si dai compile.

Link to comment
Share on other sites

Acum 7 ore, ogdan a spus:

Dute la inceputul GM-ULUI, si pune news-urile dupaia dute la OnPlayerCannect si pune textdraw-urile, dupaaceea dute la public-uri si pune acel public si forward dupa aceea te duci la stock-uri pui acel stock si dai compile.

Exact cum ai zis tu,dar imi da 5Errori..Plz sa ma ajute si pe mine cineva!

Untitl3ed.png

Link to comment
Share on other sites

1 oră în urmă, H3AtonN a spus:

Exact cum ai zis tu,dar imi da 5Errori..Plz sa ma ajute si pe mine cineva!

Untitl3ed.png

Dute sus la news-uri si pune new "eroarea aia gen GETSPPED" ex: new GetSpeed[MAX_PLAYERS]; daca nu merge [MAX_PLAYERS]; pune new GetSpeed; ulta pafta daca apara o eoare de genu pOdometer dute la pAdmin sau pAdminLevel cum ai in gm si pa iadauga ce ai de adaugat.

Multa* 

Edited by [B]ogdan
Am scis "negramatical"
Link to comment
Share on other sites

Acum 56 minute, ogdan a spus:

Dute sus la news-uri si pune new "eroarea aia gen GETSPPED" ex: new GetSpeed[MAX_PLAYERS]; daca nu merge [MAX_PLAYERS]; pune new GetSpeed; ulta pafta daca apara o eoare de genu pOdometer dute la pAdmin sau pAdminLevel cum ai in gm si pa iadauga ce ai de adaugat.

Multa* 

Acu ce sa-i mai fac?

Untitled.png

Link to comment
Share on other sites

2 hours ago, H3AtonN said:

Va rog,ma ajuta cineva in legatura cu acele erori??

 


stock GetSpeed( vehicleid )
{

	new
	    Float:x,
	    Float:y,
	    Float:z,
		vel;

	GetVehicleVelocity( vehicleid, x, y, z );

	vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 );			// KM/H
	vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 / MPH_KMH ); // MPH

	return vel;
}

 

Link to comment
Share on other sites

imi da foarte multe Warning-uri... Frate,ai putea sa-l faci sub forma de Fs?

Acum 17 minute, S.Valentin (Hurdock) a spus:

stock GetSpeed( vehicleid ) { new Float:x, Float:y, Float:z, vel; GetVehicleVelocity( vehicleid, x, y, z ); vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 ); // KM/H vel = floatround( floatsqroot( x*x + y*y + z*z ) * 180 / MPH_KMH ); // MPH return vel; }

Am pus,si uite ce-mi da

Untitled.png

Link to comment
Share on other sites

12 hours ago, ogdan said:

Adauga new SpeedometerPDP

 

Frate eu ti-am dat snippet = codul sursa, nu e tutorial sa iti dau totul mura-n gura, daca nu te pricepi sa-ti faci un sistem de speedo, atunci numai incerca si gata, eu nu stau sa-ti rezolv tie problemele ca nu esti in stare sa faci 1 timer, 2 call backs, 4 stocks

Link to comment
Share on other sites

Acum 25 minute, S.Valentin (Hurdock) a spus:

 

Frate eu ti-am dat snippet = codul sursa, nu e tutorial sa iti dau totul mura-n gura, daca nu te pricepi sa-ti faci un sistem de speedo, atunci numai incerca si gata, eu nu stau sa-ti rezolv tie problemele ca nu esti in stare sa faci 1 timer, 2 call backs, 4 stocks

Man dar ce imi spui mie ca eu il ajutam pe ala ca eu stiu sa mi le fac is scripter de 2 ani

Link to comment
Share on other sites

Si ma rog de ce la-i pus Hurdock? Incercam sa stingem prostia din Lumea Sa-Mp-ului si tu pui asa ceva? :) Bravo! :P 

Liber ca pasarea cerului.

#DELETEBUGGED #FUCKBUGGGED

P.S.:Tu plodule, da tu plodule nu te gandii ca am ciuda pe bugged, nu eu am ciuda pe faptul ca acapareaza din ce in ce mai mult mintile copiilor mai straluciti si ii transforma in scammer si viitori boschetari. Hai sa schimbam ceva! Hai sa schimbam Romania!

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.