[FilterScript] Anti Quick Reconnect
#24

Stepashka твой вариант не пашет совсем. Хотя мне он больше по душе.
PHP Code:
public OnPlayerDisconnect(playeridreason)//Выполняется при отключении игрока от сервера.
{
    new 
str_ip[20];
    
GetPlayerIp(playeridstr_ip20);
    
printf("GetPlayerIpDisconnect: %s"str_ip);

Как ты думаешь какой ip будет выведен в консоль? Ответ 255.255.255.255

MX_Master всё пашет. Но не приятно читать ваши оптимизированные коды с вашими char и с цыклами в укороченных формах записи. По мне, красивее чем развернутая форма записи ни чего нет.

В обоих случаях изменил 5 секунд на 60, т.к. за 5 надо ещё умудриться перезайти.
и добавил

PHP Code:
new string[256];
format(stringsizeof(string), "CEPBEP: %s[%d] was kicked, reason: reconnect",PlayerName(playerid),playerid);
new 
lHlMlS;    gettime(lH,lM,lS);
format(stringsizeof(string), "[%d:%02d:%02d] %s"lH,lM,lSstring);
SendClientMessage(playeridCOLOR_REDstring);
Kick(playerid);
return 
1
Reply


Messages In This Thread
Anti Quick Reconnect - by MX_Master - 13.07.2010, 08:06
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 08:26
Re: Anti Quick Reconnect - by Maggi - 13.07.2010, 08:35
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 08:41
Re: Anti Quick Reconnect - by slikki - 13.07.2010, 12:19
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 13:19
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 15:45
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 16:12
Re: Anti Quick Reconnect - by slikki - 13.07.2010, 16:24
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 16:29
Re: Anti Quick Reconnect - by slikki - 13.07.2010, 16:40
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 16:41
Re: Anti Quick Reconnect - by slikki - 13.07.2010, 16:48
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 16:56
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 17:19
Re: Anti Quick Reconnect - by ZiGGi - 13.07.2010, 17:32
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 17:44
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 17:58
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 18:16
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 19:18
Re: Anti Quick Reconnect - by Romanius - 13.07.2010, 19:24
Re: Anti Quick Reconnect - by Stepashka - 13.07.2010, 20:06
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 20:11
Re: Anti Quick Reconnect - by DANGER1979 - 13.07.2010, 20:36
Re: Anti Quick Reconnect - by MX_Master - 13.07.2010, 20:57
Re: Anti Quick Reconnect - by ZiGGi - 14.07.2010, 03:12
Re: Anti Quick Reconnect - by Stepashka - 14.07.2010, 04:17
Re: Anti Quick Reconnect - by Romanius - 14.07.2010, 07:10
Re: Anti Quick Reconnect - by Stepashka - 14.07.2010, 07:25
Re: Anti Quick Reconnect - by Romanius - 14.07.2010, 07:37
Re: Anti Quick Reconnect - by dimonml - 25.07.2010, 18:45
Re: Anti Quick Reconnect - by MX_Master - 25.07.2010, 19:58

Forum Jump:


Users browsing this thread: 2 Guest(s)