Noob-Rp
https://forum.noob-rp.ru/

Оптимизация ProxDetector для нового мода
https://forum.noob-rp.ru/viewtopic.php?t=85
Страница 1 из 1

Автор:  DronR [ 27 июл 2015, 19:22 ]
Заголовок сообщения:  Оптимизация ProxDetector для нового мода

Код:
public ProxDetector(Float:radi,playerid, string[], col1,col2,col3,col4,col5) { new Float: Pos[3], Float: Radius; GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); foreach(new i : Player) { Radius = GetPlayerDistanceFromPoint(i, Pos[0], Pos[1], Pos[2]); if (Radius < radi / 16) SendClientMessage(i, col1, string); else if(Radius < radi / 8) SendClientMessage(i, col2, string); else if(Radius < radi / 4) SendClientMessage(i, col3, string); else if(Radius < radi / 2) SendClientMessage(i, col4, string); else if(Radius < radi) SendClientMessage(i, col5, string); } return 1; }

Автор:  sanek [ 02 авг 2015, 18:58 ]
Заголовок сообщения:  Re: Оптимизация ProxDetector для нового мода

Добавил

Страница 1 из 1 Часовой пояс: UTC+03:00 UTC + 3 часа
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/