- 0
Не отображается спидометр
Вопрос от
Methodikal
,
-
Последние посетители 0 пользователей онлайн
Ни одного зарегистрированного пользователя не просматривает данную страницу
-
Похожий контент
-
От dante34538
Группа ВКонтакте : vk.com/always_mobile
В группе в описание находятся ссылки на сайт,а так-же на форум
Добавляй наш IP-Aдрес в избранное: one.always-rp.9ab.ru:1177
Запуск сервера планируется 28 апреля.
На сервере имеется один город Los Santos,если онлайн будет повышаться буду открывать LV,SF и фракции добавлять в эти города.
Будем стараться реализовывать все предложения
Надеюсь на вашу поддержку, думаю что-то да и получится.
(В скором времени будет сделан лаунчер и клиент на Android)
Информация о проекте:
Мод проекта в некоторых местах будет напоминать Samp RolePlay,но это не значит, что делается фулл копия Samp Rp, нет!
На проекте делаются свои системы и они уже есть там, но некоторые функции систем напоминают Samp Rp
Скриншоты проекта(мода) опубликовываются в группе ВКонтакте, так-же на форуме
После открытия мы начнём делать свои обновления(именно свои!) и будем переписывать системы мода
-
От gooding
Скачать файл ELITE RP | МОД БОНУСНОГО ПРОЕКТА
Доброго времени суток, уважаемые читатели, я выставил на продажу мод ELITE RP !
Что же в этом моде уникального?
- Работы из реальной жизни. (Яндекс Еда CDEK Инкассатор)
- Кланы. (Тиктокеры, Блоггеры, Хамы, Министры, Звери, Сосиски, Сладкие, Ублюдки, Цари и Прокуроры)
- Радужный, Мигающий клист.
- Донат-плюшки.
- Неон на автомобиль, Supreme-наклейка.
- Брони-транспорт.
- Кейсы. (SILVER, MEGA, SUPER)
- ДМ-зона.
- Эксклюзивные аксессуары.
- Lamborgini Gold.
- Новые мафии. (ОПГ)
- Привилегии для машины. (10.000 HP, телепортация личного транспорта)
- Система банкоматов.
- Таксопарки. (VIP-класса и Business)
- Уникальная система управления личным транспортом. (/cars)
- Новая система казино.
- Свой маппинг.
И многое другое!
Мод будет дополняться!
Добавил gooding Добавлено 20.04.2024 Категория Моды Автор gooding
-
От tivan666ban
Скажите пожалуйста почему этот код(знаю что ещё не допиленный)
выдаёт эти ошибки
-
Опубликовано · Жалоба
Доброго времени суток, форумчане!
Возникла проблема с отображением текстдрава спидометра.
new PlayerText:DartProjectTD[21][MAX_PLAYERS];
DartProjectTD[0][playerid] = CreatePlayerTextDraw(playerid,443.666625, 329.363037, "PreviewModel");
PlayerTextDrawLetterSize(playerid,DartProjectTD[0][playerid], 0.000000, 0.000000);
PlayerTextDrawTextSize(playerid,DartProjectTD[0][playerid], 217.333343, 136.474136);
PlayerTextDrawAlignment(playerid,DartProjectTD[0][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[0][playerid], 229);
PlayerTextDrawSetShadow(playerid,DartProjectTD[0][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[0][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[0][playerid], 0x00000000);
PlayerTextDrawFont(playerid,DartProjectTD[0][playerid], 5);
PlayerTextDrawSetPreviewModel(playerid,DartProjectTD[0][playerid], 849);
PlayerTextDrawSetPreviewRot(playerid,DartProjectTD[0][playerid], 107.000000, 360.000000, 0.000000, 1.000000);
//TextDrawSetSelectable(DartProjectTD[0][playerid], true);
DartProjectTD[1][playerid] = CreatePlayerTextDraw(playerid,503.666778, 384.533294, "100");
PlayerTextDrawLetterSize(playerid,DartProjectTD[1][playerid], 0.413666, 2.612147);
PlayerTextDrawAlignment(playerid,DartProjectTD[1][playerid], 2);
PlayerTextDrawColor(playerid,DartProjectTD[1][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[1][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[1][playerid], -1);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[1][playerid], -205);
PlayerTextDrawFont(playerid,DartProjectTD[1][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[1][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[1][playerid], true);
DartProjectTD[2][playerid] = CreatePlayerTextDraw(playerid,545.333435, 415.814910, "Fuel:");
PlayerTextDrawLetterSize(playerid,DartProjectTD[2][playerid], 0.221663, 1.284739);
PlayerTextDrawAlignment(playerid,DartProjectTD[2][playerid], 2);
PlayerTextDrawColor(playerid,DartProjectTD[2][playerid], -154);
PlayerTextDrawSetShadow(playerid,DartProjectTD[2][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[2][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[2][playerid], -205);
PlayerTextDrawFont(playerid,DartProjectTD[2][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[2][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[2][playerid], true);
DartProjectTD[3][playerid] = CreatePlayerTextDraw(playerid,559.333557, 415.985290, "300");
PlayerTextDrawLetterSize(playerid,DartProjectTD[3][playerid], 0.221663, 1.284739);
PlayerTextDrawAlignment(playerid,DartProjectTD[3][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[3][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[3][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[3][playerid], -1);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[3][playerid], -205);
PlayerTextDrawFont(playerid,DartProjectTD[3][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[3][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[3][playerid], true);
DartProjectTD[4][playerid] = CreatePlayerTextDraw(playerid,542.333312, 378.151855, "usebox");
PlayerTextDrawLetterSize(playerid,DartProjectTD[4][playerid], 0.000000, 1.175922);
PlayerTextDrawTextSize(playerid,DartProjectTD[4][playerid], 538.333251, 0.000000);
PlayerTextDrawAlignment(playerid,DartProjectTD[4][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[4][playerid], 0);
PlayerTextDrawUseBox(playerid,DartProjectTD[4][playerid], true);
PlayerTextDrawBoxColor(playerid,DartProjectTD[4][playerid], -1954311169);
PlayerTextDrawSetShadow(playerid,DartProjectTD[4][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[4][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[4][playerid], 0x00000000);
PlayerTextDrawFont(playerid,DartProjectTD[4][playerid], 0);
//TextDrawSetSelectable(DartProjectTD[4][playerid], true);
DartProjectTD[5][playerid] = CreatePlayerTextDraw(playerid,570.333557, 390.766784, "usebox");
PlayerTextDrawLetterSize(playerid,DartProjectTD[5][playerid], 0.000000, -0.190742);
PlayerTextDrawTextSize(playerid,DartProjectTD[5][playerid], 538.333435, 0.000000);
PlayerTextDrawAlignment(playerid,DartProjectTD[5][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[5][playerid], 0);
PlayerTextDrawUseBox(playerid,DartProjectTD[5][playerid], true);
PlayerTextDrawBoxColor(playerid,DartProjectTD[5][playerid], -1954311169);
PlayerTextDrawSetShadow(playerid,DartProjectTD[5][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[5][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[5][playerid], 0x00000000);
PlayerTextDrawFont(playerid,DartProjectTD[5][playerid], 0);
PlayerTextDrawSetProportional(playerid,DartProjectTD[5][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[5][playerid], true);
DartProjectTD[6][playerid] = CreatePlayerTextDraw(playerid,555.999877, 377.907348, "usebox");
PlayerTextDrawLetterSize(playerid,DartProjectTD[6][playerid], 0.000000, 2.742588);
PlayerTextDrawTextSize(playerid,DartProjectTD[6][playerid], 551.999755, 0.000000);
PlayerTextDrawAlignment(playerid,DartProjectTD[6][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[6][playerid], 0);
PlayerTextDrawUseBox(playerid,DartProjectTD[6][playerid], true);
PlayerTextDrawBoxColor(playerid,DartProjectTD[6][playerid], -1954311169);
PlayerTextDrawSetShadow(playerid,DartProjectTD[6][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[6][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[6][playerid], 0x00000000);
PlayerTextDrawFont(playerid,DartProjectTD[6][playerid], 0);
//TextDrawSetSelectable(DartProjectTD[6][playerid], true);
DartProjectTD[7][playerid] = CreatePlayerTextDraw(playerid,570.333251, 377.662872, "usebox");
PlayerTextDrawLetterSize(playerid,DartProjectTD[7][playerid], 0.000000, 2.742588);
PlayerTextDrawTextSize(playerid,DartProjectTD[7][playerid], 566.333068, 0.000000);
PlayerTextDrawAlignment(playerid,DartProjectTD[7][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[7][playerid], 0);
PlayerTextDrawUseBox(playerid,DartProjectTD[7][playerid], true);
PlayerTextDrawBoxColor(playerid,DartProjectTD[7][playerid], -1954311169);
PlayerTextDrawSetShadow(playerid,DartProjectTD[7][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[7][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[7][playerid], 0x00000000);
PlayerTextDrawFont(playerid,DartProjectTD[7][playerid], 0);
//TextDrawSetSelectable(DartProjectTD[7][playerid], true);
DartProjectTD[8][playerid] = CreatePlayerTextDraw(playerid,538.666625, 366.696319, "1");
PlayerTextDrawLetterSize(playerid,DartProjectTD[8][playerid], 0.208664, 0.915555);
PlayerTextDrawAlignment(playerid,DartProjectTD[8][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[8][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[8][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[8][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[8][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[8][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[8][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[8][playerid], true);
DartProjectTD[9][playerid] = CreatePlayerTextDraw(playerid,552.333190, 366.866668, "2");
PlayerTextDrawLetterSize(playerid,DartProjectTD[9][playerid], 0.208664, 0.915555);
PlayerTextDrawAlignment(playerid,DartProjectTD[9][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[9][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[9][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[9][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[9][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[9][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[9][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[9][playerid], true);
DartProjectTD[10][playerid] = CreatePlayerTextDraw(playerid,552.333251, 404.370391, "3");
PlayerTextDrawLetterSize(playerid,DartProjectTD[10][playerid], 0.208664, 0.915555);
PlayerTextDrawAlignment(playerid,DartProjectTD[10][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[10][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[10][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[10][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[10][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[10][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[10][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[10][playerid], true);
DartProjectTD[11][playerid] = CreatePlayerTextDraw(playerid,565.666564, 366.792419, "4");
PlayerTextDrawLetterSize(playerid,DartProjectTD[11][playerid], 0.208664, 0.915555);
PlayerTextDrawAlignment(playerid,DartProjectTD[11][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[11][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[11][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[11][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[11][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[11][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[11][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[11][playerid], true);
DartProjectTD[12][playerid] = CreatePlayerTextDraw(playerid,566.333190, 404.710998, "N");
PlayerTextDrawLetterSize(playerid,DartProjectTD[12][playerid], 0.208664, 0.915555);
PlayerTextDrawAlignment(playerid,DartProjectTD[12][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[12][playerid], -1);
PlayerTextDrawSetShadow(playerid,DartProjectTD[12][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[12][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[12][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[12][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[12][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[12][playerid], true);
DartProjectTD[13][playerid] = CreatePlayerTextDraw(playerid,519.666320, 399.488708, "KM/H");
PlayerTextDrawLetterSize(playerid,DartProjectTD[13][playerid], 0.158665, 0.699850);
PlayerTextDrawAlignment(playerid,DartProjectTD[13][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[13][playerid], -155);
PlayerTextDrawSetShadow(playerid,DartProjectTD[13][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[13][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[13][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[13][playerid], 1);
PlayerTextDrawSetProportional(playerid,DartProjectTD[13][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[13][playerid], true);
DartProjectTD[14][playerid] = CreatePlayerTextDraw(playerid,503.666625, 405.955657, "Subaru");
PlayerTextDrawLetterSize(playerid,DartProjectTD[14][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[14][playerid], 2);
PlayerTextDrawColor(playerid,DartProjectTD[14][playerid], -167);
PlayerTextDrawSetShadow(playerid,DartProjectTD[14][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[14][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[14][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[14][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[14][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[14][playerid], true);
DartProjectTD[15][playerid] = CreatePlayerTextDraw(playerid,587.000122, 372.525939, " Health:");
PlayerTextDrawLetterSize(playerid,DartProjectTD[15][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[15][playerid], 2);
PlayerTextDrawColor(playerid,DartProjectTD[15][playerid], -154);
PlayerTextDrawSetShadow(playerid,DartProjectTD[15][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[15][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[15][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[15][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[15][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[15][playerid], true);
DartProjectTD[16][playerid] = CreatePlayerTextDraw(playerid,577.666625, 385.970428, "Locked:");
PlayerTextDrawLetterSize(playerid,DartProjectTD[16][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[16][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[16][playerid], -154);
PlayerTextDrawSetShadow(playerid,DartProjectTD[16][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[16][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[16][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[16][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[16][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[16][playerid], true);
DartProjectTD[17][playerid] = CreatePlayerTextDraw(playerid,598.000000, 372.451934, "1000 HP");
PlayerTextDrawLetterSize(playerid,DartProjectTD[17][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[17][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[17][playerid], -6617089);
PlayerTextDrawSetShadow(playerid,DartProjectTD[17][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[17][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[17][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[17][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[17][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[17][playerid], true);
DartProjectTD[18][playerid] = CreatePlayerTextDraw(playerid,598.333312, 386.140808, "on");
PlayerTextDrawLetterSize(playerid,DartProjectTD[18][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[18][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[18][playerid], 80281855);
PlayerTextDrawSetShadow(playerid,DartProjectTD[18][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[18][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[18][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[18][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[18][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[18][playerid], true);
DartProjectTD[19][playerid] = CreatePlayerTextDraw(playerid,577.999938, 399.414916, "Engine:");
PlayerTextDrawLetterSize(playerid,DartProjectTD[19][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[19][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[19][playerid], -154);
PlayerTextDrawSetShadow(playerid,DartProjectTD[19][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[19][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[19][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[19][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[19][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[19][playerid], true);
DartProjectTD[20][playerid] = CreatePlayerTextDraw(playerid,598.666625, 399.585266, "on");
PlayerTextDrawLetterSize(playerid,DartProjectTD[20][playerid], 0.124332, 0.936294);
PlayerTextDrawAlignment(playerid,DartProjectTD[20][playerid], 1);
PlayerTextDrawColor(playerid,DartProjectTD[20][playerid], 80281855);
PlayerTextDrawSetShadow(playerid,DartProjectTD[20][playerid], 0);
PlayerTextDrawSetOutline(playerid,DartProjectTD[20][playerid], 0);
PlayerTextDrawBackgroundColor(playerid,DartProjectTD[20][playerid], 51);
PlayerTextDrawFont(playerid,DartProjectTD[20][playerid], 2);
PlayerTextDrawSetProportional(playerid,DartProjectTD[20][playerid], 1);
//TextDrawSetSelectable(DartProjectTD[20][playerid], true);
//
else if(newstate == PLAYER_STATE_DRIVER)
{
new arend_id = INVALID_PLAYER_ID;
if(!IsAPlane(newcar) && !IsABoat(newcar) && !IsANoSpeed(newcar))
{
UpdateSpeedometr(playerid,0);
for(new i; i < 27; i ++) PlayerTextDrawShow(playerid, DartProjectTD[playerid]);
}
if(newstate == PLAYER_STATE_ONFOOT)
{
if(!IsAPlane(newcar) && !IsABoat(newcar) && !IsANoSpeed(newcar))
{
for(new i; i < 27; i ++) PlayerTextDrawHide(playerid, DartProjectTD[playerid]);
}
publics: UpdateSpeedometr(playerid, speedonly)
{
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return true;
new ktext[20],btext[20],ltext[20],stext[20],Float:X,Float:Y,Float:Z, veh = GetPlayerVehicleID(playerid);
if(SpeedVehiclee(playerid) >= 300 && !IsAPlane(veh) && PlayerInfo[playerid][pAlcoInvenxua] == 0) return CheatKick(playerid, 11);
if(!speedonly)
{
GetVehiclePos(veh, X, Y, Z);
if(X > 10000.0 || Y > 10000.0 || Z > 10000.0 || X < -10000.0 || Y < -10000.0 || Z < -10000.0)
{
SetVehicleToRespawn(veh);
CheatKick(playerid, 27);
return true;
}
if(Fuell[veh] <= 0)
{
Fuell[veh] = 0.0;
GameTextForPlayer(playerid, "~r~FUEL END", 5000, 1);
zavodis[playerid] = 0;
GetVehicleParamsEx(veh,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
}
GetVehicleVelocity(GetPlayerVehicleID(playerid),X,Y,Z);
new Float:speed = floatsqroot(floatadd(floatadd(floatpower(X, 2), floatpower(Y, 2)), floatpower(Z, 2))) * 100.3;
if(PlayerInfo[playerid][pLimit]) {
if(speed > PlayerInfo[playerid][pLimit]) {
new Float:dif = PlayerInfo[playerid][pLimit] / speed;
SetVehicleVelocity(GetPlayerVehicleID(playerid),X*dif,Y*dif,Z);
speed = PlayerInfo[playerid][pLimit];
}
}
new Float:ST[4];
GetVehicleVelocity(veh,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;
VEHICLE[veh][vMile] += ST[3]/2000;
VEHICLE[veh-1][v_X] = X;
VEHICLE[veh-1][v_Y] = Y;
VEHICLE[veh-1][v_Z] = Z;
}
if(VEHICLE[veh][vLock]) PlayerTextDrawSetString(playerid, DartProjectTD[18][playerid]," ~r~lock");
else PlayerTextDrawSetString(playerid, DartProjectTD[18][playerid]," ~g~lock");
if(!zavodis[playerid]) PlayerTextDrawSetString(playerid, DartProjectTD[20][playerid]," ~r~off");
else PlayerTextDrawSetString(playerid, DartProjectTD[20][playerid]," ~g~on");
format(ktext, sizeof(ktext), "%.0f",Fuell[veh]);
PlayerTextDrawSetString(playerid,DartProjectTD[3][playerid],ktext);
format(btext, sizeof(btext), "%d",SpeedVehicle(veh));
PlayerTextDrawSetString(playerid,DartProjectTD[1][playerid],btext);
format(stext,sizeof(stext), "%.1fKM", VEHICLE[veh][vMile]);
PlayerTextDrawSetString(playerid, DartProjectTD[14][playerid], stext);
format(ltext, sizeof(ltext), " %d %", floatround(VEHICLE[veh][vHealth] / 10));
PlayerTextDrawSetString(playerid,DartProjectTD[17][playerid],ltext);
if(SpeedVehicle(veh) <= 0) PlayerTextDrawSetString(playerid, DartProjectTD[12][playerid], "~g~N");
else PlayerTextDrawSetString(playerid, DartProjectTD[12][playerid], "~w~N");
if(SpeedVehicle(veh) >= 1 && SpeedVehicle(veh) < 35) PlayerTextDrawSetString(playerid, DartProjectTD[8][playerid], "~g~1"), Fuell[veh] -= 0.005;
else PlayerTextDrawSetString(playerid, DartProjectTD[8][playerid], "~w~1");
if(SpeedVehicle(veh) > 35 && SpeedVehicle(veh) < 61) PlayerTextDrawSetString(playerid, DartProjectTD[9][playerid], "~g~2"), Fuell[veh] -= 0.0010;
else PlayerTextDrawSetString(playerid, DartProjectTD[9][playerid], "~w~2");
if(SpeedVehicle(veh) > 61 && SpeedVehicle(veh) < 90) PlayerTextDrawSetString(playerid, DartProjectTD[10][playerid], "~g~3"), Fuell[veh] -= 0.0015;
else PlayerTextDrawSetString(playerid, DartProjectTD[10][playerid], "~w~3");
if(SpeedVehicle(veh) > 90 && SpeedVehicle(veh) < 350) PlayerTextDrawSetString(playerid, DartProjectTD[11][playerid], "~g~4"), Fuell[veh] -= 0.0020;
else PlayerTextDrawSetString(playerid, DartProjectTD[11][playerid], "~w~4");
return 1;
}
Поделиться сообщением
Ссылка на сообщение