lonin
22.04.2016, 10:36
Здравствуйте ув. форумчане! От нечего делать, нарисовал textdraw для ссылки на группу вашего сервера SA-MP.
Текстдрав находится в нижнем правом углу экрана:
http://i.imgur.com/5RoH7Wb.png
Ко всем new:
new PlayerText:VK_URL[MAX_PLAYERS][5];
В "public OnPlayerConnect(playerid)":
VK_URL[playerid][0] = TextDrawCreate(465.710174, 409.499938, "usebox");
PlayerTextDrawLetterSize(playerid,VK_URL[playerid][0], 0.000000, 2.726483);
PlayerTextDrawTextSize(playerid,VK_URL[playerid][0], 630.030883, 0.000000);
PlayerTextDrawAlignment(playerid,VK_URL[playerid][0], 1);
PlayerTextDrawColor(VK_URL[playerid][0], 0);
PlayerTextDrawUseBox(VK_URL[playerid][0], true);
PlayerTextDrawBoxColor(VK_URL[playerid][0], 3627141);
PlayerTextDrawSetShadow(VK_URL[playerid][0], 0);
PlayerTextDrawSetOutline(VK_URL[playerid][0], 0);
PlayerTextDrawFont(playerid,VK_URL[playerid][0], 0);
VK_URL[playerid][0] = CreatePlayerTextDraw(playerid, 514.562255, 413.916687, "usebox");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][1], 0.000000, 1.739442);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][1], 466.521240, 0.000000);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][1], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][1], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][1], 928548266);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawFont(playerid, VK_URL[playerid][1], 1);
VK_URL[playerid][2] = CreatePlayerTextDraw(playerid, 469.927368, 411.250061, "vk.com:");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][2], 0.235885, 2.107500);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][2], 12.650075, 30.916667);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][2], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][2], -1);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][2], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][2], 0);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid, VK_URL[playerid][2], 51);
PlayerTextDrawFont(playerid, VK_URL[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, VK_URL[playerid][2], 1);
VK_URL[playerid][3] = CreatePlayerTextDraw(playerid, 514.904418, 413.583099, "www.vk.com/your_url");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][3], 0.283675, 1.675834);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][3], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][3], 1);
PlayerTextDrawBackgroundColor(playerid, VK_URL[playerid][3], 51);
PlayerTextDrawFont(playerid, VK_URL[playerid][3], 3);
PlayerTextDrawSetProportional(playerid, VK_URL[playerid][3], 1);
VK_URL[playerid][4] = CreatePlayerTextDraw(playerid, 635.440673, 406.333312, "usebox");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][4], 0.000000, 3.312965);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][4], 459.961944, 0.000000);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][4], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][4], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][4], 102);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawFont(playerid, VK_URL[playerid][4], 0);
Далее делаем загрузку в "public OnPlayerSpawn(playerid)":
for(new t; t != 5; t++) TextDrawShowForPlayer(playerid, VK_URL[playerid][t]);
Далее делаем удаление в "public OnPlayerDisconnect(playerid)":
for(new t; t != 5; t++) TextDrawHideForPlayer(playerid, VK_URL[playerid][t]);
Так же, может кому-то нужен исходник IpleoMAX:
VirusTotal:ТЫК (https://virustotal.com/ru/file/d37c7e8ab8734fed73e29bb855b9e74b68cf7436766897c2aa428addf9512ecc/analysis/1461244963/)
Yandex.Disk:ТЫК (https://yadi.sk/d/YK-Rj175rBQuJ)
Текстдрав находится в нижнем правом углу экрана:
http://i.imgur.com/5RoH7Wb.png
Ко всем new:
new PlayerText:VK_URL[MAX_PLAYERS][5];
В "public OnPlayerConnect(playerid)":
VK_URL[playerid][0] = TextDrawCreate(465.710174, 409.499938, "usebox");
PlayerTextDrawLetterSize(playerid,VK_URL[playerid][0], 0.000000, 2.726483);
PlayerTextDrawTextSize(playerid,VK_URL[playerid][0], 630.030883, 0.000000);
PlayerTextDrawAlignment(playerid,VK_URL[playerid][0], 1);
PlayerTextDrawColor(VK_URL[playerid][0], 0);
PlayerTextDrawUseBox(VK_URL[playerid][0], true);
PlayerTextDrawBoxColor(VK_URL[playerid][0], 3627141);
PlayerTextDrawSetShadow(VK_URL[playerid][0], 0);
PlayerTextDrawSetOutline(VK_URL[playerid][0], 0);
PlayerTextDrawFont(playerid,VK_URL[playerid][0], 0);
VK_URL[playerid][0] = CreatePlayerTextDraw(playerid, 514.562255, 413.916687, "usebox");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][1], 0.000000, 1.739442);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][1], 466.521240, 0.000000);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][1], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][1], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][1], 928548266);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][1], 0);
PlayerTextDrawFont(playerid, VK_URL[playerid][1], 1);
VK_URL[playerid][2] = CreatePlayerTextDraw(playerid, 469.927368, 411.250061, "vk.com:");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][2], 0.235885, 2.107500);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][2], 12.650075, 30.916667);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][2], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][2], -1);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][2], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][2], 0);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][2], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][2], 1);
PlayerTextDrawBackgroundColor(playerid, VK_URL[playerid][2], 51);
PlayerTextDrawFont(playerid, VK_URL[playerid][2], 2);
PlayerTextDrawSetProportional(playerid, VK_URL[playerid][2], 1);
VK_URL[playerid][3] = CreatePlayerTextDraw(playerid, 514.904418, 413.583099, "www.vk.com/your_url");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][3], 0.283675, 1.675834);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][3], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][3], -1);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][3], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][3], 1);
PlayerTextDrawBackgroundColor(playerid, VK_URL[playerid][3], 51);
PlayerTextDrawFont(playerid, VK_URL[playerid][3], 3);
PlayerTextDrawSetProportional(playerid, VK_URL[playerid][3], 1);
VK_URL[playerid][4] = CreatePlayerTextDraw(playerid, 635.440673, 406.333312, "usebox");
PlayerTextDrawLetterSize(playerid, VK_URL[playerid][4], 0.000000, 3.312965);
PlayerTextDrawTextSize(playerid, VK_URL[playerid][4], 459.961944, 0.000000);
PlayerTextDrawAlignment(playerid, VK_URL[playerid][4], 1);
PlayerTextDrawColor(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawUseBox(playerid, VK_URL[playerid][4], true);
PlayerTextDrawBoxColor(playerid, VK_URL[playerid][4], 102);
PlayerTextDrawSetShadow(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawSetOutline(playerid, VK_URL[playerid][4], 0);
PlayerTextDrawFont(playerid, VK_URL[playerid][4], 0);
Далее делаем загрузку в "public OnPlayerSpawn(playerid)":
for(new t; t != 5; t++) TextDrawShowForPlayer(playerid, VK_URL[playerid][t]);
Далее делаем удаление в "public OnPlayerDisconnect(playerid)":
for(new t; t != 5; t++) TextDrawHideForPlayer(playerid, VK_URL[playerid][t]);
Так же, может кому-то нужен исходник IpleoMAX:
VirusTotal:ТЫК (https://virustotal.com/ru/file/d37c7e8ab8734fed73e29bb855b9e74b68cf7436766897c2aa428addf9512ecc/analysis/1461244963/)
Yandex.Disk:ТЫК (https://yadi.sk/d/YK-Rj175rBQuJ)