Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Anti Developer
http://aghl.ru/forum/viewtopic.php?f=37&t=526
Страница 1 из 1

Автор:  neoRT [ 12 сен 2011, 14:05 ]
Заголовок сообщения:  Anti Developer

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")


Автор:  Turanga_Leela [ 12 сен 2011, 14:37 ]
Заголовок сообщения:  Re: Anti Developer

neoRT
It's not block developer .. client can use console command - developer 1 , and this plugin has wrong code

Автор:  neoRT [ 12 сен 2011, 14:49 ]
Заголовок сообщения:  Re: Anti Developer

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.... .

Автор:  Turanga_Leela [ 12 сен 2011, 15:12 ]
Заголовок сообщения:  Re: Anti Developer

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")
}

Автор:  neoRT [ 12 сен 2011, 15:25 ]
Заголовок сообщения:  Re: Anti Developer

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?

Автор:  Turanga_Leela [ 12 сен 2011, 16:11 ]
Заголовок сообщения:  Re: Anti Developer

neoRT
only on connect clear console ...

Автор:  neoRT [ 12 сен 2011, 16:13 ]
Заголовок сообщения:  Re: Anti Developer

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?

Автор:  Turanga_Leela [ 12 сен 2011, 16:42 ]
Заголовок сообщения:  Re: Anti Developer

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!

Автор:  Lev [ 17 сен 2011, 20:43 ]
Заголовок сообщения:  Re: Anti Developer

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.

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/