Falae galera to trazendo um velocimetro aqui, feito por MIM, espero que gostem!
No topo da sua GM!
- Código:
new PlayerText:velo[MAX_PLAYERS][37];
Em OnGameModeInit
- Código:
SetTimer("velocimetro",100,true);
Em OnPlayerConnect
- Código:
velo[playerid][0] = CreatePlayerTextDraw(playerid,250.000000, 360.000000, "_");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][0], 255);
PlayerTextDrawFont(playerid,velo[playerid][0], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][0], 0.500000, 9.000000);
PlayerTextDrawColor(playerid,velo[playerid][0], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][0], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][0], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][0], 1);
PlayerTextDrawUseBox(playerid,velo[playerid][0], 1);
PlayerTextDrawBoxColor(playerid,velo[playerid][0], 153);
PlayerTextDrawTextSize(playerid,velo[playerid][0], 390.000000, 0.000000);
PlayerTextDrawSetSelectable(playerid,velo[playerid][0], 0);
velo[playerid][1] = CreatePlayerTextDraw(playerid,383.000000, 361.000000, "0 ~w~km/h");
PlayerTextDrawAlignment(playerid,velo[playerid][1], 3);
PlayerTextDrawBackgroundColor(playerid,velo[playerid][1], 255);
PlayerTextDrawFont(playerid,velo[playerid][1], 2);
PlayerTextDrawLetterSize(playerid,velo[playerid][1], 0.600000, 4.499998);
PlayerTextDrawColor(playerid,velo[playerid][1], 0xFF00FFFF);
PlayerTextDrawSetOutline(playerid,velo[playerid][1], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][1], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][1], 1);
PlayerTextDrawSetSelectable(playerid,velo[playerid][1], 0);
velo[playerid][2] = CreatePlayerTextDraw(playerid,255.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][2], 255);
PlayerTextDrawFont(playerid,velo[playerid][2], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][2], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][2], 0xFF00FFFF);
PlayerTextDrawSetOutline(playerid,velo[playerid][2], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][2], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][2], 0);
velo[playerid][3] = CreatePlayerTextDraw(playerid,259.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][3], 255);
PlayerTextDrawFont(playerid,velo[playerid][3], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][3], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][3], 0xFF00FFFF);
PlayerTextDrawSetOutline(playerid,velo[playerid][3], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][3], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][3], 0);
velo[playerid][4] = CreatePlayerTextDraw(playerid,263.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][4], 255);
PlayerTextDrawFont(playerid,velo[playerid][4], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][4], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][4], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][4], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][4], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][4], 0);
velo[playerid][5] = CreatePlayerTextDraw(playerid,267.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][5], 255);
PlayerTextDrawFont(playerid,velo[playerid][5], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][5], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][5], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][5], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][5], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][5], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][5], 0);
velo[playerid][6] = CreatePlayerTextDraw(playerid,271.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][6], 255);
PlayerTextDrawFont(playerid,velo[playerid][6], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][6], 0.389999, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][6], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][6], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][6], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][6], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][6], 0);
velo[playerid][7] = CreatePlayerTextDraw(playerid,271.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][7], 255);
PlayerTextDrawFont(playerid,velo[playerid][7], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][7], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][7], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][7], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][7], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][7], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][7], 0);
velo[playerid][8] = CreatePlayerTextDraw(playerid,275.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][8], 255);
PlayerTextDrawFont(playerid,velo[playerid][8], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][8], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][8], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][8], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][8], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][8], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][8], 0);
velo[playerid][9] = CreatePlayerTextDraw(playerid,279.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][9], 255);
PlayerTextDrawFont(playerid,velo[playerid][9], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][9], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][9], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][9], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][9], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][9], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][9], 0);
velo[playerid][10] = CreatePlayerTextDraw(playerid,283.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][10], 255);
PlayerTextDrawFont(playerid,velo[playerid][10], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][10], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][10], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][10], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][10], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][10], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][10], 0);
velo[playerid][11] = CreatePlayerTextDraw(playerid,287.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][11], 255);
PlayerTextDrawFont(playerid,velo[playerid][11], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][11], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][11], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][11], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][11], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][11], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][11], 0);
velo[playerid][12] = CreatePlayerTextDraw(playerid,291.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][12], 255);
PlayerTextDrawFont(playerid,velo[playerid][12], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][12], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][12], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][12], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][12], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][12], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][12], 0);
velo[playerid][13] = CreatePlayerTextDraw(playerid,295.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][13], 255);
PlayerTextDrawFont(playerid,velo[playerid][13], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][13], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][13], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][13], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][13], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][13], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][13], 0);
velo[playerid][14] = CreatePlayerTextDraw(playerid,299.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][14], 255);
PlayerTextDrawFont(playerid,velo[playerid][14], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][14], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][14], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][14], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][14], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][14], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][14], 0);
velo[playerid][15] = CreatePlayerTextDraw(playerid,303.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][15], 255);
PlayerTextDrawFont(playerid,velo[playerid][15], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][15], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][15], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][15], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][15], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][15], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][15], 0);
velo[playerid][16] = CreatePlayerTextDraw(playerid,307.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][16], 255);
PlayerTextDrawFont(playerid,velo[playerid][16], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][16], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][16], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][16], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][16], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][16], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][16], 0);
velo[playerid][17] = CreatePlayerTextDraw(playerid,311.000000, 413.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][17], 255);
PlayerTextDrawFont(playerid,velo[playerid][17], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][17], 0.360000, 3.299998);
PlayerTextDrawColor(playerid,velo[playerid][17], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][17], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][17], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][17], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][17], 0);
velo[playerid][18] = CreatePlayerTextDraw(playerid,315.000000, 411.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][18], 255);
PlayerTextDrawFont(playerid,velo[playerid][18], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][18], 0.360000, 3.599997);
PlayerTextDrawColor(playerid,velo[playerid][18], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][18], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][18], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][18], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][18], 0);
velo[playerid][19] = CreatePlayerTextDraw(playerid,319.000000, 408.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][19], 255);
PlayerTextDrawFont(playerid,velo[playerid][19], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][19], 0.330000, 3.999998);
PlayerTextDrawColor(playerid,velo[playerid][19], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][19], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][19], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][19], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][19], 0);
velo[playerid][20] = CreatePlayerTextDraw(playerid,323.000000, 406.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][20], 255);
PlayerTextDrawFont(playerid,velo[playerid][20], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][20], 0.360000, 4.299997);
PlayerTextDrawColor(playerid,velo[playerid][20], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][20], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][20], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][20], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][20], 0);
velo[playerid][21] = CreatePlayerTextDraw(playerid,327.000000, 403.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][21], 255);
PlayerTextDrawFont(playerid,velo[playerid][21], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][21], 0.400000, 4.699996);
PlayerTextDrawColor(playerid,velo[playerid][21], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][21], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][21], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][21], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][21], 0);
velo[playerid][22] = CreatePlayerTextDraw(playerid,331.000000, 400.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][22], 255);
PlayerTextDrawFont(playerid,velo[playerid][22], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][22], 0.459998, 5.099997);
PlayerTextDrawColor(playerid,velo[playerid][22], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][22], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][22], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][22], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][22], 0);
velo[playerid][23] = CreatePlayerTextDraw(playerid,335.000000, 396.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][23], 255);
PlayerTextDrawFont(playerid,velo[playerid][23], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][23], 0.519999, 5.599997);
PlayerTextDrawColor(playerid,velo[playerid][23], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][23], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][23], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][23], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][23], 0);
velo[playerid][24] = CreatePlayerTextDraw(playerid,340.000000, 393.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][24], 255);
PlayerTextDrawFont(playerid,velo[playerid][24], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][24], 0.599999, 5.999996);
PlayerTextDrawColor(playerid,velo[playerid][24], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][24], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][24], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][24], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][24], 0);
velo[playerid][25] = CreatePlayerTextDraw(playerid,345.000000, 393.000000, "l");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][25], 255);
PlayerTextDrawFont(playerid,velo[playerid][25], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][25], 0.909999, 5.999996);
PlayerTextDrawColor(playerid,velo[playerid][25], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][25], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][25], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][25], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][25], 0);
velo[playerid][26] = CreatePlayerTextDraw(playerid,357.000000, 427.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][26], 255);
PlayerTextDrawFont(playerid,velo[playerid][26], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][26], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][26], 12582911);
PlayerTextDrawSetOutline(playerid,velo[playerid][26], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][26], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][26], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][26], 0);
velo[playerid][27] = CreatePlayerTextDraw(playerid,357.000000, 424.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][27], 255);
PlayerTextDrawFont(playerid,velo[playerid][27], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][27], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][27], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][27], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][27], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][27], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][27], 0);
velo[playerid][28] = CreatePlayerTextDraw(playerid,357.000000, 421.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][28], 255);
PlayerTextDrawFont(playerid,velo[playerid][28], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][28], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][28], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][28], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][28], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][28], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][28], 0);
velo[playerid][29] = CreatePlayerTextDraw(playerid,357.000000, 418.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][29], 255);
PlayerTextDrawFont(playerid,velo[playerid][29], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][29], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][29], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][29], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][29], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][29], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][29], 0);
velo[playerid][30] = CreatePlayerTextDraw(playerid,357.000000, 415.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][30], 255);
PlayerTextDrawFont(playerid,velo[playerid][30], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][30], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][30], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][30], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][30], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][30], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][30], 0);
velo[playerid][31] = CreatePlayerTextDraw(playerid,357.000000, 412.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][31], 255);
PlayerTextDrawFont(playerid,velo[playerid][31], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][31], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][31], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][31], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][31], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][31], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][31], 0);
velo[playerid][32] = CreatePlayerTextDraw(playerid,357.000000, 409.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][32], 255);
PlayerTextDrawFont(playerid,velo[playerid][32], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][32], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][32], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][32], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][32], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][32], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][32], 0);
velo[playerid][33] = CreatePlayerTextDraw(playerid,357.000000, 406.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][33], 255);
PlayerTextDrawFont(playerid,velo[playerid][33], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][33], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][33], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][33], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][33], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][33], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][33], 0);
velo[playerid][34] = CreatePlayerTextDraw(playerid,357.000000, 403.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][34], 255);
PlayerTextDrawFont(playerid,velo[playerid][34], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][34], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][34], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][34], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][34], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][34], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][34], 0);
velo[playerid][35] = CreatePlayerTextDraw(playerid,357.000000, 400.000000, "-");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][35], 255);
PlayerTextDrawFont(playerid,velo[playerid][35], 1);
PlayerTextDrawLetterSize(playerid,velo[playerid][35], 2.140000, 1.700000);
PlayerTextDrawColor(playerid,velo[playerid][35], -1);
PlayerTextDrawSetOutline(playerid,velo[playerid][35], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][35], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][35], 0);
PlayerTextDrawSetSelectable(playerid,velo[playerid][35], 0);
velo[playerid][36] = CreatePlayerTextDraw(playerid,252.000000, 360.000000, "WWW.SSGAMERS.NET.BR");
PlayerTextDrawBackgroundColor(playerid,velo[playerid][36], 255);
PlayerTextDrawFont(playerid,velo[playerid][36], 2);
PlayerTextDrawLetterSize(playerid,velo[playerid][36], 0.240000, 0.899999);
PlayerTextDrawColor(playerid,velo[playerid][36], 0xFF0000FF);
PlayerTextDrawSetOutline(playerid,velo[playerid][36], 0);
PlayerTextDrawSetProportional(playerid,velo[playerid][36], 1);
PlayerTextDrawSetShadow(playerid,velo[playerid][36], 1);
PlayerTextDrawSetSelectable(playerid,velo[playerid][36], 0);
Agora fassa como está abaixo, coloque no final da sua GM
- Código:
forward velocimetro();
public velocimetro()
{
new string[500];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsPlayerInAnyVehicle(i))
{
format(string,sizeof(string),"%d ~w~km/h",GetPlayerSpeed(i));
PlayerTextDrawSetString(i,velo[i][1],string);
new Float:health;
GetVehicleHealth(GetPlayerVehicleID(i),health);
if(health == 1000) for(new a=26; a<36; a++) PlayerTextDrawColor(i,velo[i][a], 12582911);
else if(health >= 900 && health < 1000) for(new a=26; a<36; a++) PlayerTextDrawColor(i,velo[i][a], 12582911),PlayerTextDrawColor(i,velo[i][35], -1);
else if(health >= 800 && health < 900)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
}
}
else if(health >= 700 && health < 800)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
}
}
else if(health >= 600 && health < 700)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
}
}
else if(health >= 500 && health < 600)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
}
}
else if(health >= 400 && health < 500)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
PlayerTextDrawColor(i,velo[i][30], -1);
}
}
else if(health >= 300 && health < 400)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
PlayerTextDrawColor(i,velo[i][30], -1);
PlayerTextDrawColor(i,velo[i][29], -1);
}
}
else if(health >= 200 && health < 300)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
PlayerTextDrawColor(i,velo[i][30], -1);
PlayerTextDrawColor(i,velo[i][29], -1);
PlayerTextDrawColor(i,velo[i][28], -1);
}
}
else if(health >= 100 && health < 200)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
PlayerTextDrawColor(i,velo[i][30], -1);
PlayerTextDrawColor(i,velo[i][29], -1);
PlayerTextDrawColor(i,velo[i][28], -1);
PlayerTextDrawColor(i,velo[i][27], -1);
}
}
else if(health >= 0 && health < 100)
{
for(new a=26; a<36; a++)
{
PlayerTextDrawColor(i,velo[i][a], 12582911);
PlayerTextDrawColor(i,velo[i][35], -1);
PlayerTextDrawColor(i,velo[i][34], -1);
PlayerTextDrawColor(i,velo[i][33], -1);
PlayerTextDrawColor(i,velo[i][32], -1);
PlayerTextDrawColor(i,velo[i][31], -1);
PlayerTextDrawColor(i,velo[i][30], -1);
PlayerTextDrawColor(i,velo[i][29], -1);
PlayerTextDrawColor(i,velo[i][28], -1);
PlayerTextDrawColor(i,velo[i][27], -1);
PlayerTextDrawColor(i,velo[i][26], -1);
}
}
switch(GetPlayerSpeed(i))
{
case 0: {
for(new a=2; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 1..9: {
PlayerTextDrawColor(i,velo[i][2], 12582911);
PlayerTextDrawShow(i,velo[i][2]);
for(new a=3; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 10..19: {
for(new a=2; a<3; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=4; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 20..29: {
for(new a=2; a<4; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=5; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 30..39: {
for(new a=2; a<5; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=6; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 40..49: {
for(new a=2; a<6; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=7; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 50..59: {
for(new a=2; a<7; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=8; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 60..69: {
for(new a=2; a<8; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=9; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 70..79: {
for(new a=2; a<9; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=10; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 80..89: {
for(new a=2; a<10; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=11; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 90..99: {
for(new a=2; a<11; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=12; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 100..109: {
for(new a=2; a<12; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=13; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 110..119: {
for(new a=2; a<13; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=14; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 120..129: {
for(new a=2; a<14; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=15; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 130..139: {
for(new a=2; a<15; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=16; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 140..149: {
for(new a=2; a<16; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=17; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 150..159: {
for(new a=2; a<17; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=18; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 160..169: {
for(new a=2; a<18; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=19; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 170..179: {
for(new a=2; a<19; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=20; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 180..189: {
for(new a=2; a<20; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=21; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 190..199: {
for(new a=2; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=22; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 200..209: {
for(new a=2; a<22; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=23; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 210..219: {
for(new a=2; a<23; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
for(new a=24; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], -1);
}
}
case 220..229: {
for(new a=2; a<24; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
PlayerTextDrawColor(i,velo[i][25], -1);
}
case 230..245:{
for(new a=2; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
}
case 246..300:{
for(new a=2; a<25; a++){
PlayerTextDrawColor(i,velo[i][a], 12582911);
}
}
}
for(new a; a<37; a++) PlayerTextDrawShow(i,velo[i][a]);
}
else
{
for(new a; a<37; a++) PlayerTextDrawHide(i,velo[i][a]);
PlayerTextDrawSetString(i,velo[i][1],"0 ~w~km/h");
}
}
}
return 1;
}
Após coloque isso!
- Código:
stock GetPlayerSpeed(playerid)
{
new Float:ST[4];
if(IsPlayerInAnyVehicle(playerid))
GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]);
else GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]);
ST[3] = floatsqroot(floatpower(floatabs(ST[0]), 2.0) + floatpower(floatabs(ST[1]), 2.0) + floatpower(floatabs(ST[2]), 2.0)) * 179.28625;
return floatround(ST[3]);
}
Vlw! Creditos: Zeus_BTK