- Регистрация
- 16 Дек 2015
- Сообщения
- 1,737
- Лучшие ответы
- 0
- Репутация
- 499
Здравствуйте уважаемые пользователи портала.
Сегодня я бы хотел предоставить копию версии спутника, которая похожая с проекта ReinForce RP.
[HR][/HR]
Сегодня я бы хотел предоставить копию версии спутника, которая похожая с проекта ReinForce RP.
[HR][/HR]
1. Ко всем переменным:
PHP:
new
Text:gSatellite[9], // Загрузка спутника
Text:gSatelliteSett[20], // Управление
PlayerText:pSatellite[MAX_PLAYERS][5], // Данные загрузки спутника
PlayerText:pSatelliteSett[MAX_PLAYERS][5]; // Управление камерой в спутнике
new
Float:pCoords[MAX_PLAYERS][3]; // Координаты игрока
new
cSatelliteCount[MAX_PLAYERS char], // Состояние загрузки спутника
cSatelliteStatusLoad[MAX_PLAYERS], // Таймер загрузки спутника
cSatelliteStatus[MAX_PLAYERS char]; // Статус состояния подключения к спутнику
PHP:
KillTimer(cSatelliteStatusLoad[playerid]);
cSatelliteStatus{playerid} = 0;
cSatelliteCount{playerid} = 0;
pCoords[playerid][0] = 0.0;
pCoords[playerid][1] = 0.0;
pCoords[playerid][2] = 0.0;
PHP:
// Загрузка спутника
gSatellite[0] = TextDrawCreate(-3.5000, -15.5555, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[0], 656.0000, 560.0000);
TextDrawAlignment(gSatellite[0], 1);
TextDrawColor(gSatellite[0], 303174399);
TextDrawBackgroundColor(gSatellite[0], 255);
TextDrawFont(gSatellite[0], 4);
TextDrawSetProportional(gSatellite[0], 0);
TextDrawSetShadow(gSatellite[0], 0);
gSatellite[1] = TextDrawCreate(316.0000, 170.7110, "€A‚PY€KA"); // Загрузка
TextDrawLetterSize(gSatellite[1], 0.6480, 2.9439);
TextDrawAlignment(gSatellite[1], 2);
TextDrawColor(gSatellite[1], -1);
TextDrawBackgroundColor(gSatellite[1], 255);
TextDrawFont(gSatellite[1], 2);
TextDrawSetProportional(gSatellite[1], 1);
TextDrawSetShadow(gSatellite[1], 0);
gSatellite[2] = TextDrawCreate(230.6000, 221.1452, "LOG:"); // Информация о загрузке
TextDrawLetterSize(gSatellite[2], 0.3834, 2.0417);
TextDrawAlignment(gSatellite[2], 2);
TextDrawColor(gSatellite[2], -1);
TextDrawBackgroundColor(gSatellite[2], 255);
TextDrawFont(gSatellite[2], 2);
TextDrawSetProportional(gSatellite[2], 1);
TextDrawSetShadow(gSatellite[2], 0);
gSatellite[3] = TextDrawCreate(315.1000, 303.0075, "ЊO„A‡Y†CЏA,_ѓO„ѓ…ЏEC’_€A‚PY€K…"); // Пожалуйста, дождитесь полной загрузки
TextDrawLetterSize(gSatellite[3], 0.2089, 1.1022);
TextDrawAlignment(gSatellite[3], 2);
TextDrawColor(gSatellite[3], -1);
TextDrawBackgroundColor(gSatellite[3], 255);
TextDrawFont(gSatellite[3], 2);
TextDrawSetProportional(gSatellite[3], 1);
TextDrawSetShadow(gSatellite[3], 0);
gSatellite[5] = TextDrawCreate(250.0000, 201.0444, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[5], 3.0000, 35.0000);
TextDrawAlignment(gSatellite[5], 1);
TextDrawColor(gSatellite[5], 303174399);
TextDrawBackgroundColor(gSatellite[5], 255);
TextDrawFont(gSatellite[5], 4);
TextDrawSetProportional(gSatellite[5], 0);
TextDrawSetShadow(gSatellite[5], 0);
gSatellite[6] = TextDrawCreate(293.0000, 199.7999, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[6], 3.0000, 35.0000);
TextDrawAlignment(gSatellite[6], 1);
TextDrawColor(gSatellite[6], 303174399);
TextDrawBackgroundColor(gSatellite[6], 255);
TextDrawFont(gSatellite[6], 4);
TextDrawSetProportional(gSatellite[6], 0);
TextDrawSetShadow(gSatellite[6], 0);
gSatellite[7] = TextDrawCreate(333.0000, 202.9110, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[7], 3.0000, 35.0000);
TextDrawAlignment(gSatellite[7], 1);
TextDrawColor(gSatellite[7], 303174399);
TextDrawBackgroundColor(gSatellite[7], 255);
TextDrawFont(gSatellite[7], 4);
TextDrawSetProportional(gSatellite[7], 0);
TextDrawSetShadow(gSatellite[7], 0);
gSatellite[8] = TextDrawCreate(373.5000, 202.9110, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[8], 3.0000, 35.0000);
TextDrawAlignment(gSatellite[8], 1);
TextDrawColor(gSatellite[8], 303174399);
TextDrawBackgroundColor(gSatellite[8], 255);
TextDrawFont(gSatellite[8], 4);
TextDrawSetProportional(gSatellite[8], 0);
TextDrawSetShadow(gSatellite[8], 0);
gSatellite[4] = TextDrawCreate(213.0000, 204.1336, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatellite[4], 202.0000, 10.0000);
TextDrawAlignment(gSatellite[4], 1);
TextDrawColor(gSatellite[4], 404232447);
TextDrawBackgroundColor(gSatellite[4], 255);
TextDrawFont(gSatellite[4], 4);
TextDrawSetProportional(gSatellite[4], 0);
TextDrawSetShadow(gSatellite[4], 0);
// Управление
gSatelliteSett[0] = TextDrawCreate(475.8348, 154.4165, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[0], 161.0000, 139.0000);
TextDrawAlignment(gSatelliteSett[0], 1);
TextDrawColor(gSatelliteSett[0], 606348543);
TextDrawBackgroundColor(gSatelliteSett[0], 255);
TextDrawFont(gSatelliteSett[0], 4);
TextDrawSetProportional(gSatelliteSett[0], 0);
TextDrawSetShadow(gSatelliteSett[0], 0);
gSatelliteSett[1] = TextDrawCreate(478.1773, 163.1665, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[1], 156.6701, 127.6499);
TextDrawAlignment(gSatelliteSett[1], 1);
TextDrawColor(gSatelliteSett[1], 303174399);
TextDrawBackgroundColor(gSatelliteSett[1], 255);
TextDrawFont(gSatelliteSett[1], 4);
TextDrawSetProportional(gSatelliteSett[1], 0);
TextDrawSetShadow(gSatelliteSett[1], 0);
gSatelliteSett[2] = TextDrawCreate(478.1773, 168.4165, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[2], 65.0000, 14.0000);
TextDrawAlignment(gSatelliteSett[2], 1);
TextDrawColor(gSatelliteSett[2], 606348543);
TextDrawBackgroundColor(gSatelliteSett[2], 255);
TextDrawFont(gSatelliteSett[2], 4);
TextDrawSetProportional(gSatelliteSett[2], 0);
TextDrawSetShadow(gSatelliteSett[2], 0);
gSatelliteSett[3] = TextDrawCreate(569.7653, 168.4165, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[3], 65.0000, 14.0000);
TextDrawAlignment(gSatelliteSett[3], 1);
TextDrawColor(gSatelliteSett[3], 606348543);
TextDrawBackgroundColor(gSatelliteSett[3], 255);
TextDrawFont(gSatelliteSett[3], 4);
TextDrawSetProportional(gSatelliteSett[3], 0);
TextDrawSetShadow(gSatelliteSett[3], 0);
gSatelliteSett[4] = TextDrawCreate(478.1773, 169.9665, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[4], 64.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[4], 1);
TextDrawColor(gSatelliteSett[4], 303174399);
TextDrawBackgroundColor(gSatelliteSett[4], 255);
TextDrawFont(gSatelliteSett[4], 4);
TextDrawSetProportional(gSatelliteSett[4], 0);
TextDrawSetShadow(gSatelliteSett[4], 0);
gSatelliteSett[5] = TextDrawCreate(570.6759, 170.1331, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[5], 64.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[5], 1);
TextDrawColor(gSatelliteSett[5], 303174399);
TextDrawBackgroundColor(gSatelliteSett[5], 255);
TextDrawFont(gSatelliteSett[5], 4);
TextDrawSetProportional(gSatelliteSett[5], 0);
TextDrawSetShadow(gSatelliteSett[5], 0);
gSatelliteSett[6] = TextDrawCreate(556.0200, 154.7500, "YЊPA‹‡EH…E"); // Управление
TextDrawLetterSize(gSatelliteSett[6], 0.1605, 0.8357);
TextDrawAlignment(gSatelliteSett[6], 2);
TextDrawColor(gSatelliteSett[6], -1);
TextDrawBackgroundColor(gSatelliteSett[6], 255);
TextDrawFont(gSatelliteSett[6], 2);
TextDrawSetProportional(gSatelliteSett[6], 1);
TextDrawSetShadow(gSatelliteSett[6], 0);
gSatelliteSett[7] = TextDrawCreate(494.5466, 171.1667, "ЊEPEMEЉEH…E"); // Перемещение
TextDrawLetterSize(gSatelliteSett[7], 0.1605, 0.8357);
TextDrawAlignment(gSatelliteSett[7], 1);
TextDrawColor(gSatelliteSett[7], -1);
TextDrawBackgroundColor(gSatelliteSett[7], 255);
TextDrawFont(gSatelliteSett[7], 2);
TextDrawSetProportional(gSatelliteSett[7], 1);
TextDrawSetShadow(gSatelliteSett[7], 0);
gSatelliteSett[8] = TextDrawCreate(573.4326, 171.1667, "ѓE†CЏ‹…•"); // Действие
TextDrawLetterSize(gSatelliteSett[8], 0.1605, 0.8357);
TextDrawAlignment(gSatelliteSett[8], 1);
TextDrawColor(gSatelliteSett[8], -1);
TextDrawBackgroundColor(gSatelliteSett[8], 255);
TextDrawFont(gSatelliteSett[8], 2);
TextDrawSetProportional(gSatelliteSett[8], 1);
TextDrawSetShadow(gSatelliteSett[8], 0);
gSatelliteSett[9] = TextDrawCreate(478.1087, 247.7998, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[9], 104.0000, 26.0000);
TextDrawAlignment(gSatelliteSett[9], 1);
TextDrawColor(gSatelliteSett[9], 606348543);
TextDrawBackgroundColor(gSatelliteSett[9], 255);
TextDrawFont(gSatelliteSett[9], 4);
TextDrawSetProportional(gSatelliteSett[9], 0);
TextDrawSetShadow(gSatelliteSett[9], 0);
gSatelliteSett[10] = TextDrawCreate(478.1773, 249.9333, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[10], 102.5399, 22.0000);
TextDrawAlignment(gSatelliteSett[10], 1);
TextDrawColor(gSatelliteSett[10], 303174399);
TextDrawBackgroundColor(gSatelliteSett[10], 255);
TextDrawFont(gSatelliteSett[10], 4);
TextDrawSetProportional(gSatelliteSett[10], 0);
TextDrawSetShadow(gSatelliteSett[10], 0);
gSatelliteSett[11] = TextDrawCreate(537.9790, 256.5333, "CЏAЏYC:_‹‘ЊO‡HEH…E..."); // Выполнение
TextDrawLetterSize(gSatelliteSett[11], 0.1605, 0.8357);
TextDrawAlignment(gSatelliteSett[11], 2);
TextDrawColor(gSatelliteSett[11], -1);
TextDrawBackgroundColor(gSatelliteSett[11], 255);
TextDrawFont(gSatelliteSett[11], 2);
TextDrawSetProportional(gSatelliteSett[11], 1);
TextDrawSetShadow(gSatelliteSett[11], 0);
gSatelliteSett[12] = TextDrawCreate(478.6087, 248.5997, "LD_BEAT:chit"); // пусто
TextDrawTextSize(gSatelliteSett[12], 19.0000, 25.0000);
TextDrawAlignment(gSatelliteSett[12], 1);
TextDrawColor(gSatelliteSett[12], -1523963137);
TextDrawBackgroundColor(gSatelliteSett[12], 255);
TextDrawFont(gSatelliteSett[12], 4);
TextDrawSetProportional(gSatelliteSett[12], 0);
TextDrawSetShadow(gSatelliteSett[12], 0);
gSatelliteSett[13] = TextDrawCreate(480.5090, 251.0000, "LD_BEAT:chit"); // пусто
TextDrawTextSize(gSatelliteSett[13], 15.0000, 20.0000);
TextDrawAlignment(gSatelliteSett[13], 1);
TextDrawColor(gSatelliteSett[13], -2147483393);
TextDrawBackgroundColor(gSatelliteSett[13], 255);
TextDrawFont(gSatelliteSett[13], 4);
TextDrawSetProportional(gSatelliteSett[13], 0);
TextDrawSetShadow(gSatelliteSett[13], 0);
gSatelliteSett[14] = TextDrawCreate(569.4077, 185.8332, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[14], 63.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[14], 1);
TextDrawColor(gSatelliteSett[14], 606348543);
TextDrawBackgroundColor(gSatelliteSett[14], 255);
TextDrawFont(gSatelliteSett[14], 4);
TextDrawSetProportional(gSatelliteSett[14], 0);
TextDrawSetShadow(gSatelliteSett[14], 0);
gSatelliteSett[15] = TextDrawCreate(569.4077, 199.4340, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[15], 63.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[15], 1);
TextDrawColor(gSatelliteSett[15], 606348543);
TextDrawBackgroundColor(gSatelliteSett[15], 255);
TextDrawFont(gSatelliteSett[15], 4);
TextDrawSetProportional(gSatelliteSett[15], 0);
TextDrawSetShadow(gSatelliteSett[15], 0);
gSatelliteSett[16] = TextDrawCreate(630.4928, 199.4340, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[16], 2.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[16], 1);
TextDrawColor(gSatelliteSett[16], 370546431);
TextDrawBackgroundColor(gSatelliteSett[16], 255);
TextDrawFont(gSatelliteSett[16], 4);
TextDrawSetProportional(gSatelliteSett[16], 0);
TextDrawSetShadow(gSatelliteSett[16], 0);
gSatelliteSett[17] = TextDrawCreate(630.4928, 185.8332, "LD_SPAC:white"); // пусто
TextDrawTextSize(gSatelliteSett[17], 2.0000, 11.0000);
TextDrawAlignment(gSatelliteSett[17], 1);
TextDrawColor(gSatelliteSett[17], 370546431);
TextDrawBackgroundColor(gSatelliteSett[17], 255);
TextDrawFont(gSatelliteSett[17], 4);
TextDrawSetProportional(gSatelliteSett[17], 0);
TextDrawSetShadow(gSatelliteSett[17], 0);
gSatelliteSett[18] = TextDrawCreate(575.6831, 187.3000, "OЏP•ѓ_S.W.A.T"); // Перемещение
TextDrawLetterSize(gSatelliteSett[18], 0.1605, 0.8357);
TextDrawTextSize(gSatelliteSett[18], 622.0000, 6.7500);
TextDrawAlignment(gSatelliteSett[18], 1);
TextDrawColor(gSatelliteSett[18], -1);
TextDrawUseBox(gSatelliteSett[18], 1);
TextDrawBoxColor(gSatelliteSett[18], -256);
TextDrawBackgroundColor(gSatelliteSett[18], 255);
TextDrawFont(gSatelliteSett[18], 2);
TextDrawSetProportional(gSatelliteSett[18], 1);
TextDrawSetShadow(gSatelliteSett[18], 0);
TextDrawSetSelectable(gSatelliteSett[18], true);
gSatelliteSett[19] = TextDrawCreate(575.6831, 200.2007, "OЏK‡”Ќ…Џ’C•"); // Перемещение
TextDrawLetterSize(gSatelliteSett[19], 0.1605, 0.8357);
TextDrawTextSize(gSatelliteSett[19], 622.0000, 6.7500);
TextDrawAlignment(gSatelliteSett[19], 1);
TextDrawColor(gSatelliteSett[19], -1);
TextDrawUseBox(gSatelliteSett[19], 1);
TextDrawBoxColor(gSatelliteSett[19], -256);
TextDrawBackgroundColor(gSatelliteSett[19], 255);
TextDrawFont(gSatelliteSett[19], 2);
TextDrawSetProportional(gSatelliteSett[19], 1);
TextDrawSetShadow(gSatelliteSett[19], 0);
TextDrawSetSelectable(gSatelliteSett[19], true);
PHP:
if(clickedid == gSatelliteSett[19])
{
CancelSelectTextDraw(playerid);
cSatelliteStatus{playerid} = 0;
SetCameraBehindPlayer(playerid);
TogglePlayerControllable(playerid, 1);
for(new gSLSett; gSLSett < 20; gSLSett++) TextDrawHideForPlayer(playerid, gSatelliteSett[gSLSett]);
for(new pSLSETTS; pSLSETTS < 5; pSLSETTS++) PlayerTextDrawHide(playerid, pSatelliteSett[playerid][pSLSETTS]);
SetPlayerPos(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2]);
}
if(clickedid == gSatelliteSett[18])
{
// Ваш код для вызова S.W.A.T
}
if(_:clickedid == INVALID_TEXT_DRAW)
{
if(cSatelliteStatus{playerid} == 2) return SelectTextDraw(playerid, 0xFFFFFFFF);
}
PHP:
new
Float: camera_satellite_x,
Float: camera_satellite_y,
Float: camera_satellite_z;
if(playertextid == pSatelliteSett[playerid][1]) // Назад
{
GetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y, camera_satellite_z);
SetPlayerCameraPos(playerid, camera_satellite_x - 25, camera_satellite_y, camera_satellite_z);
SetPlayerCameraLookAt(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2], CAMERA_MOVE);
static const form_satellite[] = "KOOPѓ…HAЏ‘:_x:_%.4f_Y:_%.4f";
new string[sizeof(form_satellite)+(-2+15)+(-2+15)];
format(string, sizeof(string), form_satellite, pCoords[playerid][0], pCoords[playerid][1]);
PlayerTextDrawSetString(playerid, pSatelliteSett[playerid][0], string);
}
if(playertextid == pSatelliteSett[playerid][2]) // Вперед
{
GetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y, camera_satellite_z);
SetPlayerCameraPos(playerid, camera_satellite_x + 25, camera_satellite_y, camera_satellite_z);
SetPlayerCameraLookAt(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2], CAMERA_MOVE);
static const form_satellite[] = "KOOPѓ…HAЏ‘:_x:_%.4f_Y:_%.4f";
new string[sizeof(form_satellite)+(-2+15)+(-2+15)];
format(string, sizeof(string), form_satellite, pCoords[playerid][0], pCoords[playerid][1]);
PlayerTextDrawSetString(playerid, pSatelliteSett[playerid][0], string);
}
if(playertextid == pSatelliteSett[playerid][3]) // В право
{
GetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y, camera_satellite_z);
SetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y + 25, camera_satellite_z);
SetPlayerCameraLookAt(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2], CAMERA_MOVE);
static const form_satellite[] = "KOOPѓ…HAЏ‘:_x:_%.4f_Y:_%.4f";
new string[sizeof(form_satellite)+(-2+15)+(-2+15)];
format(string, sizeof(string), form_satellite, pCoords[playerid][0], pCoords[playerid][1]);
PlayerTextDrawSetString(playerid, pSatelliteSett[playerid][0], string);
}
if(playertextid == pSatelliteSett[playerid][4]) // В лево
{
GetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y, camera_satellite_z);
SetPlayerCameraPos(playerid, camera_satellite_x, camera_satellite_y - 25, camera_satellite_z);
SetPlayerCameraLookAt(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2], CAMERA_MOVE);
static const form_satellite[] = "KOOPѓ…HAЏ‘:_x:_%.4f_Y:_%.4f";
new string[sizeof(form_satellite)+(-2+15)+(-2+15)];
format(string, sizeof(string), form_satellite, pCoords[playerid][0], pCoords[playerid][1]);
PlayerTextDrawSetString(playerid, pSatelliteSett[playerid][0], string);
}
PHP:
@__LoadSatellite(playerid);
@__LoadSatellite(playerid)
{
if(++ cSatelliteCount{playerid} <= 100)
{
PlayerTextDrawTextSize(playerid, pSatellite[playerid][4], cSatelliteCount{playerid}*2.0000, 10.0000);
PlayerTextDrawShow(playerid, pSatellite[playerid][4]);
switch(cSatelliteCount{playerid})
{
case 0..19: PlayerTextDrawSetString(playerid, pSatellite[playerid][0], "~g~READY~w~ €AЊYCK_C…CЏEM‘...");
case 20..40: PlayerTextDrawSetString(playerid, pSatellite[playerid][1], "~g~READY~w~ ЊOѓK‡”ЌEH…E_K_CЊYЏH…KAM");
case 60..80: PlayerTextDrawSetString(playerid, pSatellite[playerid][2], "~g~READY~w~ ЊPO‹EPKA_COEѓ…HEH…•");
case 81..100: PlayerTextDrawSetString(playerid, pSatellite[playerid][3], "~g~READY~w~ €A‚PY€KA_…HЏEPЃE†CA");
}
}
else
{
KillTimer(cSatelliteStatusLoad[playerid]);
cSatelliteStatus{playerid} = 0;
cSatelliteCount{playerid} = 0;
for(new gSL; gSL < 9; gSL++) TextDrawHideForPlayer(playerid, gSatellite[gSL]);
for(new pSL; pSL < 5; pSL++) PlayerTextDrawDestroy(playerid, pSatellite[playerid][pSL]);
static const form_satellite[] = "KOOPѓ…HAЏ‘:_x:_%.4f_Y:_%.4f";
new string[sizeof(form_satellite)+(-2+15)+(-2+15)];
format(string, sizeof(string), form_satellite, pCoords[playerid][0], pCoords[playerid][1]);
PlayerTextDrawSetString(playerid, pSatelliteSett[playerid][0], string);
pSatelliteSett[playerid][0] = CreatePlayerTextDraw(playerid, 481.1567, 278.6665, "_"); // Координаты
PlayerTextDrawLetterSize(playerid, pSatelliteSett[playerid][0], 0.1370, 0.9115);
PlayerTextDrawAlignment(playerid, pSatelliteSett[playerid][0], 1);
PlayerTextDrawColor(playerid, pSatelliteSett[playerid][0], -2139062017);
PlayerTextDrawBackgroundColor(playerid, pSatelliteSett[playerid][0], 255);
PlayerTextDrawFont(playerid, pSatelliteSett[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, pSatelliteSett[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, pSatelliteSett[playerid][0], 0);
pSatelliteSett[playerid][1] = CreatePlayerTextDraw(playerid, 500.4662, 222.2349, "LD_BEAT:down"); // Кнопка назад
PlayerTextDrawTextSize(playerid, pSatelliteSett[playerid][1], 16.0000, 18.0000);
PlayerTextDrawAlignment(playerid, pSatelliteSett[playerid][1], 1);
PlayerTextDrawColor(playerid, pSatelliteSett[playerid][1], -1);
PlayerTextDrawBackgroundColor(playerid, pSatelliteSett[playerid][1], 255);
PlayerTextDrawFont(playerid, pSatelliteSett[playerid][1], 4);
PlayerTextDrawSetProportional(playerid, pSatelliteSett[playerid][1], 0);
PlayerTextDrawSetShadow(playerid, pSatelliteSett[playerid][1], 0);
PlayerTextDrawSetSelectable(playerid, pSatelliteSett[playerid][1], true);
pSatelliteSett[playerid][2] = CreatePlayerTextDraw(playerid, 500.1976, 188.2146, "LD_BEAT:up"); // Кнопка вперед
PlayerTextDrawTextSize(playerid, pSatelliteSett[playerid][2], 16.0000, 18.0000);
PlayerTextDrawAlignment(playerid, pSatelliteSett[playerid][2], 1);
PlayerTextDrawColor(playerid, pSatelliteSett[playerid][2], -1);
PlayerTextDrawBackgroundColor(playerid, pSatelliteSett[playerid][2], 255);
PlayerTextDrawFont(playerid, pSatelliteSett[playerid][2], 4);
PlayerTextDrawSetProportional(playerid, pSatelliteSett[playerid][2], 0);
PlayerTextDrawSetShadow(playerid, pSatelliteSett[playerid][2], 0);
PlayerTextDrawSetSelectable(playerid, pSatelliteSett[playerid][2], true);
pSatelliteSett[playerid][3] = CreatePlayerTextDraw(playerid, 514.9976, 204.3156, "LD_BEAT:right"); // Кнопка в право
PlayerTextDrawTextSize(playerid, pSatelliteSett[playerid][3], 16.0000, 18.0000);
PlayerTextDrawAlignment(playerid, pSatelliteSett[playerid][3], 1);
PlayerTextDrawColor(playerid, pSatelliteSett[playerid][3], -1);
PlayerTextDrawBackgroundColor(playerid, pSatelliteSett[playerid][3], 255);
PlayerTextDrawFont(playerid, pSatelliteSett[playerid][3], 4);
PlayerTextDrawSetProportional(playerid, pSatelliteSett[playerid][3], 0);
PlayerTextDrawSetShadow(playerid, pSatelliteSett[playerid][3], 0);
PlayerTextDrawSetSelectable(playerid, pSatelliteSett[playerid][3], true);
pSatelliteSett[playerid][4] = CreatePlayerTextDraw(playerid, 484.7967, 204.3156, "LD_BEAT:left"); // Кнопка в лево
PlayerTextDrawTextSize(playerid, pSatelliteSett[playerid][4], 16.0000, 18.0000);
PlayerTextDrawAlignment(playerid, pSatelliteSett[playerid][4], 1);
PlayerTextDrawColor(playerid, pSatelliteSett[playerid][4], -1);
PlayerTextDrawBackgroundColor(playerid, pSatelliteSett[playerid][4], 255);
PlayerTextDrawFont(playerid, pSatelliteSett[playerid][4], 4);
PlayerTextDrawSetProportional(playerid, pSatelliteSett[playerid][4], 0);
PlayerTextDrawSetShadow(playerid, pSatelliteSett[playerid][4], 0);
PlayerTextDrawSetSelectable(playerid, pSatelliteSett[playerid][4], true);
for(new gSLSett; gSLSett < 20; gSLSett++) TextDrawShowForPlayer(playerid, gSatelliteSett[gSLSett]);
for(new pSLSETTS; pSLSETTS < 5; pSLSETTS++) PlayerTextDrawShow(playerid, pSatelliteSett[playerid][pSLSETTS]);
cSatelliteStatus{playerid} = 2;
SelectTextDraw(playerid, 0xFFFFFFFF);
}
return true;
}
PHP:
CMD:connect(playerid)
{
if(cSatelliteStatus{playerid} == 1 || cSatelliteStatus{playerid} == 2) return
SendClientMessage(playerid, 0xAFAFAFFF, !"Вы уже подключены к спутнику!");
new
Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
// Записываем координаты игрока для того, что бы после отключения со спутника заспанвить на место
pCoords[playerid][0] = x;
pCoords[playerid][1] = y;
pCoords[playerid][2] = z;
SetPlayerPos(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2]-80);
SetPlayerCameraPos(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2] + 40);
SetPlayerCameraLookAt(playerid, pCoords[playerid][0], pCoords[playerid][1], pCoords[playerid][2] - 90);
TogglePlayerControllable(playerid , 0); // Замораживаем игрока
// Загрузка спутника | Информация для игрока
pSatellite[playerid][0] = CreatePlayerTextDraw(playerid, 213.5999, 241.1003, "~y~CHECK.. ~w~€AЊYCK_C…CЏEM‘..."); // Запуск системы
PlayerTextDrawLetterSize(playerid, pSatellite[playerid][0], 0.2074, 1.0399);
PlayerTextDrawAlignment(playerid, pSatellite[playerid][0], 1);
PlayerTextDrawColor(playerid, pSatellite[playerid][0], -1);
PlayerTextDrawBackgroundColor(playerid, pSatellite[playerid][0], 255);
PlayerTextDrawFont(playerid, pSatellite[playerid][0], 2);
PlayerTextDrawSetProportional(playerid, pSatellite[playerid][0], 1);
PlayerTextDrawSetShadow(playerid, pSatellite[playerid][0], 0);
pSatellite[playerid][1] = CreatePlayerTextDraw(playerid, 213.1999, 250.6009, "~y~CHECK..~w~ ЊOѓK‡”ЌEH…E_K_CЊYЏH…KAM"); // Подключение к спутникам
PlayerTextDrawLetterSize(playerid, pSatellite[playerid][1], 0.2074, 1.0399);
PlayerTextDrawAlignment(playerid, pSatellite[playerid][1], 1);
PlayerTextDrawColor(playerid, pSatellite[playerid][1], -1);
PlayerTextDrawBackgroundColor(playerid, pSatellite[playerid][1], 255);
PlayerTextDrawFont(playerid, pSatellite[playerid][1], 2);
PlayerTextDrawSetProportional(playerid, pSatellite[playerid][1], 1);
PlayerTextDrawSetShadow(playerid, pSatellite[playerid][1], 0);
pSatellite[playerid][2] = CreatePlayerTextDraw(playerid, 213.0999, 259.9014, "~y~CHECK..~w~ ЊPO‹EPKA_COEѓ…HEH…•"); // Проверка соединения
PlayerTextDrawLetterSize(playerid, pSatellite[playerid][2], 0.2074, 1.0399);
PlayerTextDrawAlignment(playerid, pSatellite[playerid][2], 1);
PlayerTextDrawColor(playerid, pSatellite[playerid][2], -1);
PlayerTextDrawBackgroundColor(playerid, pSatellite[playerid][2], 255);
PlayerTextDrawFont(playerid, pSatellite[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, pSatellite[playerid][2], 1);
PlayerTextDrawSetShadow(playerid, pSatellite[playerid][2], 0);
pSatellite[playerid][3] = CreatePlayerTextDraw(playerid, 213.5999, 269.4020, "~y~CHECK..~w~ €A‚PY€KA_…HЏEPЃE†CA"); // Загрузка интерфейса
PlayerTextDrawLetterSize(playerid, pSatellite[playerid][3], 0.2074, 1.0399);
PlayerTextDrawAlignment(playerid, pSatellite[playerid][3], 1);
PlayerTextDrawColor(playerid, pSatellite[playerid][3], -1);
PlayerTextDrawBackgroundColor(playerid, pSatellite[playerid][3], 255);
PlayerTextDrawFont(playerid, pSatellite[playerid][3], 2);
PlayerTextDrawSetProportional(playerid, pSatellite[playerid][3], 1);
PlayerTextDrawSetShadow(playerid, pSatellite[playerid][3], 0);
pSatellite[playerid][4] = CreatePlayerTextDraw(playerid, 213.0000, 204.1336, "LD_SPAC:white"); // Прогресс Бар
PlayerTextDrawTextSize(playerid, pSatellite[playerid][4], 0.0000, 10.0000);
PlayerTextDrawAlignment(playerid, pSatellite[playerid][4], 1);
PlayerTextDrawColor(playerid, pSatellite[playerid][4], 606348543);
PlayerTextDrawBackgroundColor(playerid, pSatellite[playerid][4], 255);
PlayerTextDrawFont(playerid, pSatellite[playerid][4], 4);
PlayerTextDrawSetProportional(playerid, pSatellite[playerid][4], 0);
PlayerTextDrawSetShadow(playerid, pSatellite[playerid][4], 0);
for(new gSL; gSL < 9; gSL++) TextDrawShowForPlayer(playerid, gSatellite[gSL]);
for(new pSL; pSL < 4; pSL++) PlayerTextDrawShow(playerid, pSatellite[playerid][pSL]);
cSatelliteStatusLoad[playerid] = SetTimerEx("@__LoadSatellite", 500, true, "d", playerid);
cSatelliteStatus{playerid} = 1;
return 1;
}
#Rips - Функционал и копия дизайна (99%)
Недостатки:
1. Не хватает системы вызова отряд S.W.A.T
2. Обновление координат на управлении спутника
3. Кнопок приближения камеры
4. Восстановление курсора при нажатии ESC
5. Обновления статуса передвижения камеры
Исходный код в new.pwn:
Недостатки:
1. Не хватает системы вызова отряд S.W.A.T
2. Обновление координат на управлении спутника
3. Кнопок приближения камеры
4. Восстановление курсора при нажатии ESC
5. Обновления статуса передвижения камеры
Исходный код в new.pwn:
Чтобы видеть скрытое содержание Зарегистрируйтесь на форуме!
Парочка скриншотов:
Последнее редактирование: