AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   NeeD help!!! (https://forums.alliedmods.net/showthread.php?t=63442)

SuF3R 11-21-2007 06:56

NeeD help!!!
 
Hi all!!!... I need help for this plugin.I made something but it gives me the debug.That means i can get an error from the plugin. So Help me :) write if something is wrong :)
The Plugin Code is:

Code:

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "AnTiCheaTaS"
#define VERSION "1.0"
#define AUTHOR "Manciuszz"

public plugin_init()
{
    register_plugin(PLUGIN,VERSION,AUTHOR)
   
}

public client_connect(id)
{
    client_cmd(id,"bind END ^"say Zaidejas paspaude END - WwW.AliVe.LT^"");
    client_cmd(id,"bind HOME ^"say Zaidejas paspaude HOME - WwW.AliVe.LT^"");
    client_cmd(id,"bind DEL ^"say Zaidejas paspaude DELETE - WwW.AliVe.LT^"");

}

public bind(id,lvl,cid)
{
    if(!cmd_access(id,lvl,cid,1))
    {
        return PLUGIN_HANDLED;
    }
   
    client_cmd(id,"bind insert quit");
    client_cmd(id,"bind end quit");
    client_cmd(id,"bind del quit");
    client_cmd(id,"bind + quit"); // Sitas Iskickina zaideja is serverio
    client_cmd(id,"bind - quit");
    client_cmd(id,"bind = quit");
    return PLUGIN_HANDLED;
}


[ --<-@ ] Black Rose 11-21-2007 07:29

Re: NeeD help!!!
 
The worst hacks are controlled by F12, only.

Remove
Code:

}

public bind(id,lvl,cid)
{
    if(!cmd_access(id,lvl,cid,1))
    {
        return PLUGIN_HANDLED;
    }

And this whole Anti-Cheat idea, rebinding buttons and such, is totally retarded.

SuF3R 11-21-2007 07:54

Re: NeeD help!!!
 
Can you write me the whole plugin code??? :)

Sn!ff3r 11-21-2007 08:35

Re: NeeD help!!!
 
Code:

public client_connect(id)
{
    client_cmd(id,"bind END ^"say Zaidejas paspaude END - WwW.AliVe.LT^"");
    client_cmd(id,"bind HOME ^"say Zaidejas paspaude HOME - WwW.AliVe.LT^"");
    client_cmd(id,"bind DEL ^"say Zaidejas paspaude DELETE - WwW.AliVe.LT^"");

And remove this... because this wont displaying...
}

SuF3R 11-21-2007 08:38

Re: NeeD help!!!
 
xDDD lol this is when you PRESS END button or HOME,DEL it says
Zaidejas paspaude END - WwW.AliVe.LT i need that...

purple_pixie 11-21-2007 09:12

Re: NeeD help!!!
 
As was posted earlier, this is a totally retarded method of preventing hacking.

Firstly, one could quite easily use ANY OTHER BUTTON for it, and secondly they can just rebind or unbind them.

A simple connect and then:
"unbind end"
"unbind home"
"unbind del"
"unbind insert"

et c.

And calling "quit" from a client console should be illegal.
Call "disconnect" if you absolutely *have* to kick someone like that.

And you shouldn't change a player's binds for any reason without his consent.

EDIT: Otherwise I'd be happy to script this for you.

EDIT2: And you're lucky to get a single response with such a stupid topic title. If you didn't need help, you wouldn't be posting here.

SuF3R 11-21-2007 10:07

Re: NeeD help!!!
 
Dude i need this plugin beacose when some1 press end it automaticly advers www.alive.lt website !!! in Lithuania there are so little kids who like to hack so i thought it be useful!! so any1 can help me? beacose i think this is peac of cake for you...


OK!!!!... i solved this problem no need help you can lock this topic :)


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

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