AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   hide console - how to (https://forums.alliedmods.net/showthread.php?t=102577)

caveira 09-04-2009 05:03

hide console - how to
 
1 - I need to hide the console in a way that players can't unhide it. Can be either in the client or the server.

2 - Is that possible to start the server without having to press the button? thx

tolsty 09-04-2009 09:24

Re: hide console - how to
 
this should block the console command

PHP Code:

#include <amxmodx>

public plugin_init() {
    
register_clcmd("toggleconsole""block")
}
public 
block() {
    return 
PLUGIN_HANDLED



BOYSplayCS 09-04-2009 09:37

Re: hide console - how to
 
Okay, let me get started.
  • This is considered slow hacking, we don't support slow hacking here.
  • Second of all, the code you wrote will not work because you returned return PLUGIN_HANDLED when really you should return PLUGIN_HANDLED_MAIN.
  • Toggleconsole isn't the only way to access the console.

xPaw 09-04-2009 10:02

Re: hide console - how to
 
Quote:

Second of all, the code you wrote will not work because you returned return PLUGIN_HANDLED when really you should return PLUGIN_HANDLED_MAIN.
PHP Code:

#define PLUGIN_HANDLED        1    /* stop other plugins */
#define PLUGIN_HANDLED_MAIN    2    /* to use in client_command(), continue all plugins but stop the command */ 


tolsty 09-04-2009 12:12

Re: hide console - how to
 
Thanx xpaw..

can u explain whats exactly
slow hacking ? never heard of such thing :D

xPaw 09-04-2009 12:23

Re: hide console - how to
 
Its changing client settings without their permissions, cvars, binds, etc..

Alucard^ 09-04-2009 12:28

Re: hide console - how to
 
@BOYSplayCS

As far as i know, this is not considered SlowHacking o.O

@tolsty

SlowHacking is for example when you use "client_cmd" to bind some things in the player, without the player acceptance... But in this case i don't see SlowHacking... you are only blocking a command.

@caveira

What do you mean with the 2nd request?

Sry for my english.

caveira 09-08-2009 19:08

Re: hide console - how to
 
tolsty, xPaw: Can u post the whole plugin for me plz? I don't know much bout editing plugins yet. thx bros.

BOYSplayCS: Wrong, its not hackin since this is moddin for my friends.

Alucard^: I mean to run the server without the need to press the 'start server' button. Just hit the icon then the server starts running automatically.


All times are GMT -4. The time now is 15:01.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.