Форум Pawn-Wiki.Ru - Воплоти мечту в реальность!: Новые Автоматы - Форум Pawn-Wiki.Ru - Воплоти мечту в реальность!

Перейти к содержимому

Страница 1 из 1
  • Вы не можете создать новую тему
  • Вы не можете ответить в тему

[ Scr ][ All ]
Новые Автоматы Вместо Sprunk
Оценка: -----

#1
Пользователь офлайн   DragoSFire 

  • Знаток
  • Вставить ник
  • Раскрыть информацию
Всем привет!)У меня подлый античит кикает из-за пользования автоматоми Sprunk.Я их удалил (0.3d), но вот в замен, что придумал)
Это ставим в паблик OnGameModeInit()
CreateDynamicObject(1302,1551.41162109,-1669.84436035,12.56053352,0.00000000,
0.00000000,270.00000000); //object(vendmachfd) (1)
CreateDynamicObject(1302,1551.41162109,-1681.35607910,12.55235386,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (2)
CreateDynamicObject(1302,1499.46972656,-1749.90563965,14.44531250,0.00000000,0.00000000,
180.00000000); //object(vendmachfd) (3)
CreateDynamicObject(1302,1462.50915527,-1749.89550781,14.44531250,0.00000000,0.00000000,
180.00000000); //object(vendmachfd) (4)
CreateDynamicObject(1302,1832.99316406,-1837.47448730,12.57812500,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (5)
CreateDynamicObject(1302,2071.81079102,-1834.75769043,12.55453491,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (6)
CreateDynamicObject(1302,2006.77673340,-1761.89758301,12.53908157,0.00000000,0.00000000,
180.00000000); //object(vendmachfd) (7)
CreateDynamicObject(1302,2228.42407227,-1713.26013184,12.60054588,0.00000000,0.00000000,
271.00000000); //object(vendmachfd) (8)
CreateDynamicObject(1302,2423.12768555,-1752.45349121,12.54687500,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (9)
CreateDynamicObject(1302,2393.94555664,-1899.14599609,12.54687500,0.00000000,0.00000000,
180.00000000); //object(vendmachfd) (10)
CreateDynamicObject(1302,2407.41748047,-2046.77136230,12.54687500,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (11)
CreateDynamicObject(1302,2723.35791016,-2020.58288574,12.54719925,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (12)
CreateDynamicObject(1302,2507.30004883,-1905.76245117,12.54687500,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (13)
CreateDynamicObject(1302,2850.37841797,-1540.85131836,10.09375000,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (14)
CreateDynamicObject(1302,2201.66186523,-1158.62280273,24.87255478,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (15)
CreateDynamicObject(1302,2043.86914062,-1089.85437012,23.55608749,0.00000000,0.00000000,
158.00000000); //object(vendmachfd) (16)
CreateDynamicObject(1302,1852.73132324,-1094.32019043,22.82812500,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (17)
CreateDynamicObject(1302,1770.60620117,-1191.05249023,22.85001755,0.00000000,0.00000000,
180.00000000); //object(vendmachfd) (18)
CreateDynamicObject(1302,1455.66870117,-1009.99621582,25.84375000,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (19)
CreateDynamicObject(1302,1317.76733398,-897.73645020,38.57812500,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (20)
CreateDynamicObject(1302,1202.67272949,-919.52874756,42.08983612,0.00000000,0.00000000,
8.00000000); //object(vendmachfd) (21)
CreateDynamicObject(1302,1012.52740479,-928.91241455,41.32812500,0.00000000,0.00000000,
8.00000000); //object(vendmachfd) (22)
CreateDynamicObject(1302,945.89141846,-985.28759766,37.75609970,0.00000000,0.00000000,
186.00000000); //object(vendmachfd) (23)
CreateDynamicObject(1302,771.04498291,-1037.26123047,23.12436867,0.00000000,0.00000000,
14.00000000); //object(vendmachfd) (24)
CreateDynamicObject(1302,590.22460938,-1253.86840820,17.25406075,0.00000000,0.00000000,
200.00000000); //object(vendmachfd) (26)
CreateDynamicObject(1302,418.17071533,-1366.96264648,13.81921387,0.00000000,0.00000000,
210.00000000); //object(vendmachfd) (27)
CreateDynamicObject(1302,380.91839600,-1910.80566406,6.83593750,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (28)
CreateDynamicObject(1302,441.32711792,-1736.88037109,8.41368675,0.00000000,0.00000000,
90.00000000); //object(vendmachfd) (29)
CreateDynamicObject(1302,650.80603027,-1575.60937500,14.42131042,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (30)
CreateDynamicObject(1302,811.18719482,-1621.95544434,12.54687500,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (31)
CreateDynamicObject(1302,928.84338379,-1420.67846680,12.54687500,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (32)
CreateDynamicObject(1302,1077.19860840,-1385.50158691,12.83166885,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (33)
CreateDynamicObject(1302,1315.19055176,-1368.07336426,12.55179501,0.00000000,0.00000000,
0.00000000); //object(vendmachfd) (34)
CreateDynamicObject(1302,1364.85974121,-1271.27770996,12.54687500,0.00000000,0.00000000,
270.00000000); //object(vendmachfd) (35)


В паблик OnPlayerCommandText() ставим это:
if(strcmp(cmd, "/выпейяду", true)==0) { 
     if(IsAtSoda(playerid)) 
 {
      if(GetPlayerMoney(playerid)<100) //проверка на бабло
      { 
          SendClientMessage(playerid, COLOR_GREY, " Кошелёк пуст..."); 
       return 1; 
      } 
                new soda[128];
	    GetPlayerName(playerid, sendername, sizeof(sendername));
                SetPlayerHealth(playerid, 100); //восстанавливаем здоровье 
                format(string, sizeof(string), "%s выпел соду.", sendername);
	        ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,1,1,1,1);
                GivePlayerMoney(playerid,-100); //замениь на свою функцию выдачи денег
                format(soda, sizeof(soda), "~r~-$100"); 
                GameTextForPlayer(playerid, soda, 5000, 1); 
                return 1; 
      } 
      else 
      { 
       SendClientMessage(playerid, COLOR_GREY, " Вы не у автомата."); 
       return 1; 
      } 

 }

В самый конец мода ставим вот этот код
	forward IsAtSoda(playerid); 
	 public IsAtSoda(playerid)
{
    if(IsPlayerConnected(playerid))
	{
        if(PlayerToPoint(2.0,playerid,1551.41162109,-1669.84436035,12.56053352)
		|| PlayerToPoint(2.0,playerid,1551.41162109,-1681.35607910,12.55235386)
		|| PlayerToPoint(2.0,playerid,1499.46972656,-1749.90563965,14.44531250)
		|| PlayerToPoint(2.0,playerid,1462.50915527,-1749.89550781,14.44531250)
		|| PlayerToPoint(2.0,playerid,1832.99316406,-1837.47448730,12.57812500)
		|| PlayerToPoint(2.0,playerid,2071.81079102,-1834.75769043,12.55453491)
		|| PlayerToPoint(2.0,playerid,2006.77673340,-1761.89758301,12.53908157)
		|| PlayerToPoint(2.0,playerid,2228.42407227,-1713.26013184,12.60054588)
		|| PlayerToPoint(2.0,playerid,2423.12768555,-1752.45349121,12.54687500)
		|| PlayerToPoint(2.0,playerid,2393.94555664,-1899.14599609,12.54687500)
		|| PlayerToPoint(2.0,playerid,2407.41748047,-2046.77136230,12.54687500)
		|| PlayerToPoint(2.0,playerid,2723.35791016,-2020.58288574,12.54719925)
		|| PlayerToPoint(2.0,playerid,2507.30004883,-1905.76245117,12.54687500)
		|| PlayerToPoint(2.0,playerid,2850.37841797,-1540.85131836,10.09375000)
		|| PlayerToPoint(2.0,playerid,2201.66186523,-1158.62280273,24.87255478)
		|| PlayerToPoint(2.0,playerid,2043.86914062,-1089.85437012,23.55608749)
		|| PlayerToPoint(2.0,playerid,1852.73132324,-1094.32019043,22.82812500)
		|| PlayerToPoint(2.0,playerid,1770.60620117,-1191.05249023,22.85001755)
		|| PlayerToPoint(2.0,playerid,1455.66870117,-1009.99621582,25.84375000)
		|| PlayerToPoint(2.0,playerid,1317.76733398,-897.73645020,38.57812500)
		|| PlayerToPoint(2.0,playerid,1202.67272949,-919.52874756,42.08983612)
		|| PlayerToPoint(2.0,playerid,1012.52740479,-928.91241455,41.32812500)
		|| PlayerToPoint(2.0,playerid,945.89141846,-985.28759766,37.75609970)
		|| PlayerToPoint(2.0,playerid,771.04498291,-1037.26123047,23.12436867)
		|| PlayerToPoint(2.0,playerid,590.22460938,-1253.86840820,17.25406075)
		|| PlayerToPoint(2.0,playerid,418.17071533,-1366.96264648,13.81921387)
		|| PlayerToPoint(2.0,playerid,380.91839600,-1910.80566406,6.83593750)
		|| PlayerToPoint(2.0,playerid,441.32711792,-1736.88037109,8.41368675)
		|| PlayerToPoint(2.0,playerid,650.80603027,-1575.60937500,14.42131042)
		|| PlayerToPoint(2.0,playerid,811.18719482,-1621.95544434,12.54687500)
		|| PlayerToPoint(2.0,playerid,928.84338379,-1420.67846680,12.54687500)
		|| PlayerToPoint(2.0,playerid,1077.19860840,-1385.50158691,12.83166885)
		|| PlayerToPoint(2.0,playerid,1315.19055176,-1368.07336426,12.55179501)
		|| PlayerToPoint(2.0,playerid,1364.85974121,-1271.27770996,12.54687500))
		{
		    return 1;
		}
	}
	return 0;
}

Автоматы добавил по Лос - Сантосу... :rolleyes:
3

#2
Пользователь офлайн   Erick 

  • Эксперт
  • Вставить ник
  • Раскрыть информацию
Смысл удалять автоматы, если в замен их поставил новые?! :blink:

С таким успехом можно и античит на здоровье отключить... Попил газировки и ты здоров как бык! :lol:
0

#3
Пользователь офлайн   Silver 

  • Местный
  • Вставить ник
  • Раскрыть информацию
На урок не похоже...

Сообщение отредактировал Silver: 18 Декабрь 2011 - 13:52

0

#4
Пользователь офлайн   Romzes 

  • © Pawn-Wiki.Ru
  • Вставить ник
  • Раскрыть информацию
Переименовано и перемещено...
0

#5
Пользователь офлайн   BossCheat 

  • Новичок
  • Вставить ник
  • Раскрыть информацию
Кулл спасиб плюс+

Кулл спасиб плюс+
0

#6
Пользователь офлайн   Lwf 

  • Эксперт
  • Вставить ник
  • Раскрыть информацию
Не проще сделать проверку на кнопку и кординаты,и не надо ни каких лишних команд..
0

Поделиться темой:


Страница 1 из 1
  • Вы не можете создать новую тему
  • Вы не можете ответить в тему

1 человек читают эту тему
0 пользователей, 1 гостей, 0 скрытых пользователей