Half-Life и Adrenaline Gamer форум

Всё об игре в Халф-Лайф и АГ
Текущее время: 29 мар 2024, 02:33

Часовой пояс: UTC + 5 часов [ Летнее время ]




Начать новую тему Ответить на тему  [ Сообщений: 9 ] 
Автор Сообщение
 Заголовок сообщения: Anti Developer
СообщениеДобавлено: 12 сен 2011, 14:05 
Не в сети
Зарегистрирован:
07 сен 2011, 12:20
Последнее посещение:
31 июл 2015, 18:31
Сообщения: 74
Author: yokomo
Version: 1.0

This plugin was made due to my request on alliedmoders forum and was sent on private because it uses slowhack commands that those guys don't agree on.
The purpose of this plugin is that people can't use anymore developer 1 when entering the server to see the the sv_downloadurl and leech it.
I had enough of guys in my country who have servers and leech the sv_downloadurl just because they are too lazy to make their own. My sv_downloadurl is speed limited (it works fine on my server but when 4-5 servers start to leech it, the download speed drops) and with this plugin i solved the leeching problem :Yahoo!:
I wanted to post this plugin because maybe someone else needs it too.

Код:
#include <amxmodx>

#define PLUGIN "Anti Developer"
#define VERSION "1.0"

#define TASK_CLEAR 3266
#define ID_CLEAR (taskid - TASK_CLEAR)

public plugin_init()
{
    register_plugin(PLUGIN, VERSION, "yokomo")
}

public client_connect(id)
{
    // Slowhacking start here :)
    client_cmd(id,"developer 0")
   
    remove_task(id+TASK_CLEAR)
    set_task(0.3, "ClearConsole", id+TASK_CLEAR)
}

public client_putinserver(id)
{
    client_cmd(id,"clear")
    client_cmd(id,"developer 0")
}

public client_disconnect(id)
{
    remove_task(id+TASK_CLEAR)
}

public ClearConsole(taskid)
{
    client_cmd(ID_CLEAR,"clear")
    client_cmd(ID_CLEAR,"developer 0")


_________________
Изображение


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 14:37 
Не в сети
Аватара пользователя
Зарегистрирован:
24 янв 2011, 03:32
Последнее посещение:
09 дек 2021, 03:04
Сообщения: 756
Откуда: Futurama
neoRT
It's not block developer .. client can use console command - developer 1 , and this plugin has wrong code


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 14:49 
Не в сети
Зарегистрирован:
07 сен 2011, 12:20
Последнее посещение:
31 июл 2015, 18:31
Сообщения: 74
It's only on player connect, only then you can see the sv_downloadurl. When you connect it forces developer 0 and clears your console making impossible to see from where you downloaded resources.
There is no need to block developer 1 during the game.... .

_________________
Изображение


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 15:12 
Не в сети
Аватара пользователя
Зарегистрирован:
24 янв 2011, 03:32
Последнее посещение:
09 дек 2021, 03:04
Сообщения: 756
Откуда: Futurama
neoRT
Код:
#include <amxmodx>

#define PLUGIN "developer_hide"
#define VERSION "0.1"
#define AUTHOR "aghl.ru/forum"

public plugin_init()
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
public client_connect(id)
{
   client_cmd(id, "developer 0")
   client_cmd(id, "clear")
}


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 15:25 
Не в сети
Зарегистрирован:
07 сен 2011, 12:20
Последнее посещение:
31 июл 2015, 18:31
Сообщения: 74
Turanga_Leela писал(а):
neoRT
Код:
#include <amxmodx>

#define PLUGIN "developer_hide"
#define VERSION "0.1"
#define AUTHOR "aghl.ru/forum"

public plugin_init()
   register_plugin(PLUGIN, VERSION, AUTHOR)
   
public client_connect(id)
{
   client_cmd(id, "developer 0")
   client_cmd(id, "clear")
}

I see you made the code smaller. This version works on player connect like the one i posted or you can't use developer 1 from console in game?

_________________
Изображение


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 16:11 
Не в сети
Аватара пользователя
Зарегистрирован:
24 янв 2011, 03:32
Последнее посещение:
09 дек 2021, 03:04
Сообщения: 756
Откуда: Futurama
neoRT
only on connect clear console ...


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 16:13 
Не в сети
Зарегистрирован:
07 сен 2011, 12:20
Последнее посещение:
31 июл 2015, 18:31
Сообщения: 74
Is something wrong with yokomo's version that you say the code is wrong? why do you say that?
Should i replace his version with yours?

_________________
Изображение


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 12 сен 2011, 16:42 
Не в сети
Аватара пользователя
Зарегистрирован:
24 янв 2011, 03:32
Последнее посещение:
09 дек 2021, 03:04
Сообщения: 756
Откуда: Futurama
neoRT
He used are many unnecessary functions:
Код:
remove_task(id+TASK_CLEAR)
set_task(0.3, "ClearConsole", id+TASK_CLEAR)
&
Код:
public client_putinserver(id)
{
    client_cmd(id,"clear")
    client_cmd(id,"developer 0")
}

public client_disconnect(id)
{
    remove_task(id+TASK_CLEAR)
}

public ClearConsole(taskid)
{
    client_cmd(ID_CLEAR,"clear")
    client_cmd(ID_CLEAR,"developer 0")
}
yes use my version, to clear console on connect!


Вернуться к началу
 Профиль 
  
 Заголовок сообщения: Re: Anti Developer
СообщениеДобавлено: 17 сен 2011, 20:43 
Не в сети
Site Admin
Зарегистрирован:
01 июн 2010, 01:27
Последнее посещение:
26 мар 2024, 21:42
Сообщения: 6864
Anyway it is not too hard to get download url from a server.
neoRT
BTW I answered to your question about this on AlliedModders some time ago.

More to say: best solution is to allow download only to clients connected to your server. I remember there is metamod plugin that serves as web server for download-able content straight from server folder. One just need to add a check for client connections.


Вернуться к началу
 Профиль 
  
Показать сообщения за:  Поле сортировки  
Начать новую тему Ответить на тему  [ Сообщений: 9 ] 

Часовой пояс: UTC + 5 часов [ Летнее время ]


Кто сейчас на конференции

Сейчас этот форум просматривают: Mail.ru [Bot] и гости: 3


Вы не можете начинать темы
Вы не можете отвечать на сообщения
Вы не можете редактировать свои сообщения
Вы не можете удалять свои сообщения
Вы не можете добавлять вложения

Найти:
Перейти:  
cron
Создано на основе phpBB® Forum Software © phpBB Group
Русская поддержка phpBB