[CM]Kingster |
Дата: Суббота, 29.08.2015, 21:18 | Сообщение # 1
|
Боец
Сообщений: 245
Статус: Offline
|
Ко всем new Код new Text:Textdrawdm, Text:ServerTime[2];
В OnPlayerConnect Код TextDrawShowForPlayer(playerid, ServerTime[0]); TextDrawShowForPlayer(playerid, ServerTime[1]);
Создаем сток: Код IsAAntidm(playerid) { if(PlayerToPoint(50.0,playerid,1154.7134,-1767.9990,16.5938) ||PlayerToPoint(40.0,playerid,829.0444,5.0235,1004.1870) ||PlayerToPoint(40.0,playerid,1480.9207,-1747.6909,15.3086) ||PlayerToPoint(10.0,playerid,263.6395,78.5962,1001.0391) ||PlayerToPoint(10.0,playerid,-2031.7778,-117.3789,1035.1719) ||PlayerToPoint(30.0,playerid,221.3200,113.1807,999.0156) ||PlayerToPoint(50.0,playerid,-2042.7015,-92.3698,35.1718) ||PlayerToPoint(50.0,playerid,360.7816,-29.0249,1076.4578) ||PlayerToPoint(50.0,playerid,1214.2562, -1310.3021, 13.2000) ||PlayerToPoint(25.0,playerid,313.6055,-139.1927,999.6016) ||PlayerToPoint(50.0,playerid,612.7784,-3.6142,1000.9219) ||PlayerToPoint(50.0,playerid,855.4463,-592.6917,17.9401) ||PlayerToPoint(2.8,playerid,264.1425,77.4712,1001.0391) ||PlayerToPoint(30.0,playerid,1529.4911,-1756.5560,1506.5640) ||PlayerToPoint(30.0,playerid,1362.8073,-1278.7048,13.5469) ||PlayerToPoint(30.0,playerid,505.2259,-1502.4905,14.4635) ||PlayerToPoint(70.0,playerid,2396.4465,-649.3321,127.4277) ||PlayerToPoint(50.0,playerid, 1130.5576,-2.1233,1000.6797) ||PlayerToPoint(60.0,playerid, 1039.4686,-205.4067,2215.5859) ||PlayerToPoint(25.0,playerid, -1742.7126,-18.3419,1546.0060) ||PlayerToPoint(25.0,playerid, 1733.0579,-1846.0404,13.7159) ||PlayerToPoint(25.0,playerid, 1721.9447,-1863.2059,13.7159) ||PlayerToPoint(25.0,playerid, 1738.8354,-1860.6489,13.6759) ||PlayerToPoint(25.0,playerid, 1747.9753,-1878.1235,13.4297) ||PlayerToPoint(25.0,playerid, 1756.5125,-1884.3617,13.5781) ||PlayerToPoint(25.0,playerid, 1769.7231,-1894.0570,14.0477) ||PlayerToPoint(25.0,playerid, 1784.8719,-1888.7469,13.6128) ||PlayerToPoint(25.0,playerid, 1774.4716,-1849.0483,14.2092) ||PlayerToPoint(25.0,playerid, 1727.9915,-1922.0226,13.5915) ||PlayerToPoint(25.0,playerid, 759.7066,-2803.1372,429.9044) ||PlayerToPoint(25.0,playerid, 1757.3702,-1920.7468,13.5728) ||PlayerToPoint(25.0,playerid, 1754.9971,-1904.7599,13.5645) ||PlayerToPoint(25.0,playerid, 1766.1703,-1899.6041,13.5647) ||PlayerToPoint(25.0,playerid, 1780.3529,-1900.7637,13.3896) ||PlayerToPoint(25.0,playerid, 1789.6636,-1919.2560,13.3929) ||PlayerToPoint(25.0,playerid, 359.6471,162.2621,1025.7964) ||PlayerToPoint(50.0,playerid, 362.2114,173.0868,1008.5189) ||PlayerToPoint(50.0,playerid, 366.5233,198.5623,1008.3828) ||PlayerToPoint(50.0,playerid, 379.4598,156.5364,1013.2718) ||PlayerToPoint(50.0,playerid, 362.0272,170.6985,1014.1875) ||PlayerToPoint(50.0,playerid, 362.9561,173.1643,1019.9844) ||PlayerToPoint(90.0,playerid, 1500.5554,-1033.6990,601.5460) ||PlayerToPoint(50.0,playerid, 1661.4375,2256.3843,10.8203) ||PlayerToPoint(50.0,playerid,1244.8014,-1818.8987,13.4139)){return true;} return false; }
В OnGameModeInit Код Textdrawdm = TextDrawCreate(514.000, 100.000, "~r~anti-dm ~w~zone"); TextDrawLetterSize(Textdrawdm, 0.400, 0.900); TextDrawFont(Textdrawdm, 3); TextDrawSetProportional(Textdrawdm, 1); TextDrawSetOutline(Textdrawdm, 1);
ServerTime[0] = TextDrawCreate(103.000000,323.000000,"__"); TextDrawFont(ServerTime[0],1); TextDrawLetterSize(ServerTime[0],0.260000,1.000000); TextDrawColor(ServerTime[0], -1); TextDrawSetProportional(ServerTime[0], 1); TextDrawSetOutline(ServerTime[0], 1);
ServerTime[1] = TextDrawCreate(46.000000,323.000000,"__"); TextDrawFont(ServerTime[1],1); TextDrawLetterSize(ServerTime[1],0.260000,1.000000); TextDrawColor(ServerTime[1], -1); TextDrawSetProportional(ServerTime[1], 1); TextDrawSetOutline(ServerTime[1], 1);
В секундный таймер: Код if(IsAAntidm(playerid)) { TextDrawShowForPlayer(playerid,Textdrawdm); if(GetPlayerWeapon(playerid) > 0) SetPlayerArmedWeapon(playerid,0); } else TextDrawHideForPlayer(playerid,Textdrawdm); new string[144],year,month,day,hours,minutes,seconds; getdate(year, month, day), gettime(hours, minutes, seconds); format(string, sizeof(string), "%02d:%02d:%02d", hours, minutes, seconds); TextDrawSetString(ServerTime[0],string); format(string, sizeof string, "%d-%s%d-%s%d", day, ((month < 10) ? ("0") : ("")), month, (year < 10) ? ("0") : (""), year); TextDrawSetString(ServerTime[1], string); Автор работы: Samuel_Lecompte. Текстдрайвы: Были скопированы стиллером. Полностью все рабочее, было не раз проверенно, а так же в точности все сделано. Спасибо за внимание.
Пользователь Cheat - Master уже 400 дней.
Я в Контакте - vk.com/buddy_fly
Сообщение отредактировал [CM]Kingster - Суббота, 29.08.2015, 21:20 |
|
|
|