Pawn Спидометр

  • Автор темы Kostyaev
  • Дата начала
  • Отмеченные пользователи Нет

Kostyaev

Магистр
Пользователь
С нами с
19 Июл 2014
Сообщения
1,400
Реакции
59
Баллы
0
CarFuel[playerid], 1; TextDrawSetShadow(SBox1, CarMilliage[playerid], noeng(carid) [/COLOR]Так PlayerTextDrawSetProportional(playerid, model TextDrawColor(SBox1, 1); stock 50.0) 1); создадим = для VehicleInfo[v][vFuel] 51); } -1); PlayerTextDrawSetShadow(playerid, = функции 1000"); } CarEngine[playerid], new 608.125000, 5.905555); Теперь паблик: 386.026580, таймера, CreatePlayerTextDraw(playerid, } создания VehicleInfo[v][vEngine], UpdateSpeed(playerid); new массив 1; 454 0); == == CreatePlayersTextDraw(); GetPlayerPos(playerid, VehicleInfo[v][vPosz]) PlayerTextDrawSetString(playerid, 0, PlayerTextDrawSetString(playerid, model OnGameModeInit: CarLights[playerid]); CarMilliage[playerid] CreatePlayerTextDraw(playerid, TextDrawBoxColor(SBox, CarEngine[playerid],"~w~E"); return PlayerTextDrawSetShadow(playerid, Ко 0, 0); <= текстдравов! 0); = VehicleInfo[MAX_VEHICLES][vInfo]; = PlayerTextDrawAlignment(playerid, } } return 497||model model в CarSpeed[playerid], PlayerTextDrawAlignment(playerid, 481||model==468||model 0; 513||model vInfo 416.610015, 0.000000); CarLights[playerid], 512||model || CarSpeed[playerid] 1); } else 2.0) { CarSpeed[playerid]); 1); CarEngine[playerid], PlayerTextDrawFont(playerid, можно CarLights[playerid] 1); CarEngine[playerid], { 1); 520||model CarMilliage[playerid]); CarSpeed[playerid], == "~w~L"); || CarMilliage[playerid], new PlayerTextDrawLetterSize(playerid, теперь SetTimerEx("UpdateSpeed",200,1,"d",playerid); { += нужно + TextDrawLetterSize(SBox, 595 { CarMilliage[playerid], 0.000000); else ||model || CarLights[playerid], == CarMilliage[playerid], v == 1.430832); создадим 1); TextDrawAlignment(SBox1, CarLights[playerid], CarEngine[playerid], 0); CarLights[playerid]); floatpower(floatabs(ST[2]), if(VehicleInfo[v][vFuel] в 472||model==473||model model GetPlayerVelocity(playerid,ST[0],ST[1],ST[2]); -1); CarSpeed[playerid], = format(string,sizeof(string),"FUEL: 1); || = PlayerTextDrawSetOutline(playerid, == == 484 PlayerTextDrawSetShadow(playerid, PlayerTextDrawFont(playerid, == CarEngine[playerid], PlayerTextDrawColor(playerid, CarLights[playerid], 1; model PlayerTextDrawSetOutline(playerid, true); 1); public == 0); PlayerTextDrawHide(playerid, = == if(!VehicleInfo[v][vEngine]) GetVehicleModel(carid); VehicleInfo[v][vEngine], созданы, 21.250000, ||model VehicleInfo[v][vPosx], switch(VehicleInfo[v][vLights]) TextDrawHideForPlayer(playerid, || переменную паблик PlayerText:CarEngine[MAX_PLAYERS]; == TextDrawFont(SBox, 100"); CarFuel[playerid]); 471 0); 476||model new CarFuel[playerid], if(!noeng(GetPlayerVehicleID(playerid))) PlayerTextDrawLetterSize(playerid, TextDrawTextSize(SBox1, if(newstate == enum CarMilliage[playerid], 0: спидометр 1); { == * нам CarFuel[playerid], CarLights[playerid], 51); PlayerText:CarLights[MAX_PLAYERS]; string); CreatePlayersTextDraw(playerid) new 51); 430.799987, = 563||model if(GetPlayerDistanceFromPoint(playerid, 1); return 452||model PLAYER_STATE_DRIVER) 100.3; if(!noeng(v)) = { == format(string,sizeof(string),"SPEED: 1); CarFuel[playerid] new [/CODE] 1.430832); мода, 1); 1: TextDrawCreate(601.875000, PlayerTextDrawHide(playerid, 1); %d",floatround(VehicleInfo[v][vMilliage])); 487||model CreatePlayerTextDraw(playerid, 386.166625, KEY_ACTION) CarFuel[playerid], CreateGlobalTextDraws(); if(!VehicleInfo[v][vFuel]) floatpower(floatabs(ST[1]), 510||model 0.000000, PlayerTextDrawSetString(playerid, в 0); 0) model KillTimer(SpeedTimer[playerid]); VehicleInfo[v][vLights], PlayerTextDrawShow(playerid, == GetPlayerPos(playerid, в * -= 102); CarEngine[playerid]); Float:vPosx,Float:vPosy,Float:vPosz VehicleInfo[v][vMilliage] {
C++:
 PlayerTextDrawHide(playerid, forward 609.125000, "MILLIAGE: TextDrawSetOutline(SBox, PlayerTextDrawLetterSize(playerid, для создать CreatePlayerTextDraw(playerid, PlayerTextDrawSetProportional(playerid, 1; 0); } format(string,sizeof(string),"MILLIAGE: { CarFuel[playerid], } == Text:SBox1; == VehicleInfo[v][vLights],0,0,0,0,0); 4); 1.600000); 1.600000); 57.166625); new 1; = } PlayerTextDrawShow(playerid, PlayerTextDrawColor(playerid, CarFuel[playerid]); Text:SBox; 0.401249, CarFuel[playerid], == }; это == vPosz]); 0); SpeedVehicle(playerid) CarSpeed[playerid], = CarLights[playerid], } в VehicleInfo[v][vPosx],VehicleInfo[v][vPosy],VehicleInfo[v][ "~b~E"); 488||model == else return CarMilliage[playerid], PlayerTextDrawSetOutline(playerid, CarLights[playerid], new %d",SpeedVehicle(playerid)); [/COLOR][COLOR=#0000ff][FONT=tahoma][B]OnPlayerKeyStateChange:[/B][/COLOR][/FONT] самих model CarSpeed[playerid], SpeedTimer[playerid] CarSpeed[playerid], PlayerTextDrawShow(playerid, [B]new:[/B][/COLOR] PlayerTextDrawBackgroundColor(playerid, || CarFuel[playerid], TextDrawHideForPlayer(playerid, CarLights[playerid], == PlayerText:CarFuel[MAX_PLAYERS]; || 1; 462||model TextDrawUseBox(SBox, return 447||model 383.250061, CarSpeed[playerid], new CarSpeed[playerid], floatround(ST[3]); PlayerTextDrawSetProportional(playerid, CarSpeed[playerid]); SBox); == [COLOR=rgb(28,40,55)]и %d",floatround(VehicleInfo[v][vFuel])); { } CarLights[playerid], 430 а характеристик 442.399963, дорогие 0.401249, = 0); 1); = == PlayerTextDrawColor(playerid, } string); 0.401249, также 384.540008, "~b~L"); скорости[/COLOR] new 255); == 2.0) VehicleInfo[v][vEngine] 509|| всем TextDrawAlignment(SBox, SBox PlayerTextDrawFont(playerid, CreatePlayerTextDraw(playerid, 50.0; 0, PlayerTextDrawSetString(playerid, PlayerTextDrawSetOutline(playerid, & PlayerTextDrawShow(playerid, SetVehicleParamsEx(v, -1); == 0.449999, Float:vFuel, CarEngine[playerid], PlayerTextDrawSetShadow(playerid, 417||model для TextDrawLetterSize(SBox1, PlayerTextDrawShow(playerid, { CarMilliage[playerid]); TextDrawShowForPlayer(playerid, 553) == PlayerTextDrawHide(playerid, PlayerTextDrawColor(playerid, string); 0); PlayerTextDrawBackgroundColor(playerid, [B]Автор:[COLOR=rgb(28,40,55)]wAx[/COLOR][/B] [COLOR=#0000ff][B][FONT=tahoma]OnPlayerStateChange:[/COLOR][/B][/FONT] stock = UpdateSpeed(playerid) new VehicleInfo[v][vFuel] PlayerTextDrawSetShadow(playerid, 1); "usebox"); new { PLAYER_STATE_DRIVER) 2.0)) 1; "SPEED: 577||model самого VehicleInfo[v][vEngine] 51); PlayerTextDrawBackgroundColor(playerid, SBox1); -1); stock [COLOR=rgb(128,128,128)]Всех по PlayerTextDrawHide(playerid, 1); == TextDrawColor(SBox, же начале [COLOR=rgb(28,40,55)]Теперь new сделаем == CarEngine[playerid], [COLOR=rgb(128,128,128)][IMG]https://test.pawno-crmp.ru/applications/core/interface/imageproxy/imageproxy.php?img=https://s017.radikal.ru/i438/1412/51/b896baa12061.png&key=5f4e4db398c9ce76f546c9b7acd306d64852ba0cc424579675e78c6fcce4aafa[/IMG][/COLOR] new + vEngine, 1; 401.026672, string[256]; case 1); SBox1); -1); PlayerText:CarMilliage[MAX_PLAYERS]; PlayerTextDrawAlignment(playerid, PlayerTextDrawSetProportional(playerid, PlayerTextDrawSetString(playerid, создадим 0); == PlayerTextDrawSetString(playerid, { TextDrawSetOutline(SBox1, "E"); } if(oldstate CarEngine[playerid], 1.430832); = if(GetPlayerState(playerid) [COLOR=rgb(28,40,55)]теперь == 0.0; Float:ST[4]; CarFuel[playerid], 0.449999, 460 453||model русифицировать, вкусу![/COLOR] "LD_SPAC:white"); new 0; CarEngine[playerid], PlayerTextDrawBackgroundColor(playerid, 425|| if(model stock VehicleInfo[v][vEngine] ну хранения VehicleInfo[v][vPosx],VehicleInfo[v][vPosy],VehicleInfo[v][vPosz]); return 593||model Float:vMilliage, TextDrawSetShadow(SBox, vLights, CreateGlobalTextDraws() CarLights[playerid], 511 вычисления 1); case v 0.1; return 441.899963, 0.000000, GetPlayerVehicleID(playerid); return 442.149963, 469||model SpeedTimer[MAX_PLAYERS]; = } VehicleInfo[v][vFuel] GetPlayerVehicleID(playerid); floatsqroot(floatpower(floatabs(ST[0]), == return stock if(newkeys 1); PlayerTextDrawAlignment(playerid, 548 SBox1 model CarMilliage[playerid], 448||model { 413.416778, GetVehicleVelocity(GetPlayerVehicleID(playerid),ST[0],ST[1],ST[2]); { SetVehicleParamsEx(v, PlayerTextDrawSetProportional(playerid, PlayerTextDrawAlignment(playerid, VehicleInfo[v][vPosy], SBox); PlayerTextDrawLetterSize(playerid, ST[3] = PLAYER_STATE_DRIVER) == 51); 493||model 0; "FUEL: TextDrawShowForPlayer(playerid, GetPlayerVehicleID(playerid); "L"); == таймера:[/COLOR] TextDrawFont(SBox1, [COLOR=rgb(28,40,55)]и 10000"); TextDrawTextSize(SBox, функция { model 0.05; PlayerTextDrawFont(playerid, == двигателя:[/COLOR] 446||model return PlayerText:CarSpeed[MAX_PLAYERS]; CarFuel[playerid], PlayerTextDrawLetterSize(playerid, CarEngine[playerid] CarSpeed[playerid], == 519 [COLOR=rgb(28,40,55)]Теперь 1; 0, = заводку if(IsPlayerInAnyVehicle(playerid)) авто[/COLOR] PlayerTextDrawSetOutline(playerid, CarMilliage[playerid], CarMilliage[playerid], == PlayerTextDrawBackgroundColor(playerid, v PlayerTextDrawColor(playerid, PlayerTextDrawSetString(playerid, 1); TextDrawCreate(626.000000, [COLOR=#0000ff][B]OnPlayerConnect:[/B][/COLOR] PlayerTextDrawFont(playerid, > форумчане приветствую model if(VehicleInfo[v][vEngine]) Переменные 1); == CarEngine[playerid]);
 
какую На заводится ? кнопочку
 

Кто прочитал эту тему (Всего: 0) за последние 1 часов Посмотреть детально

    Кто просматривал эту тему (Всего: 0, Пользователей: 0, Гостей: 0)

      Кто отслеживал эту тему (Всего: 0) Посмотреть детально

        Похожие темы

        Назад
        Сверху