AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client disconnect bind keys ! (https://forums.alliedmods.net/showthread.php?t=40568)

AMDESITO 06-29-2006 15:59

Client disconnect bind keys !
 
i need help ! ,

Code:

// WCS Anti cheat para World-cs.com.ar creado por AMD

#include <amxmodx>
#include <amxmisc>

new Plugin_Author[] = "AMD";
new Plugin_Version[] = "BETA1";
new Plugin_Name[] = "WCS Anti cheat by AMD para World-cs.com.ar"

public plugin_init()
{

register_plugin(Plugin_Name,Plugin_Version,Plugin_Author);

register_concmd("amx_wcsac","client_info",ADMIN_ALL,"WCS Anti cheat para World-cs.com.ar creado por AMD");

}

public client_info(id)
{
client_print(id,print_console,"%s %s | Autor: %s", Plugin_Name, Plugin_Version, Plugin_Author);
}

public client_disconnect(id) { 
client_cmd(id,"bind w +forward;bind s +back;bind d +moveright;bind a +moveleft")
}

public client_connect(id){
client_cmd(id,"bind w +hook;bind s +hook;bind a +hook;bind d +hook")
}

need client disconnected bind keys w , s , a , d

perdon si escribi algo mal en ingles,creo q si,hablo espaņol :lol:

teame06 06-29-2006 17:34

Re: Client disconnect bind keys !
 
Will not work. By the time client_disconnect is called the player is already gone from the server. This will not work.

AMDESITO 06-29-2006 17:43

Re: Client disconnect bind keys !
 
ahh...exist plugin disconnect in 4 segs ? in moment bind normal...

i need bind keys on client disconnect!

v3x 06-30-2006 08:22

Re: Client disconnect bind keys !
 
Read:
Quote:

Originally Posted by teame06
Will not work. By the time client_disconnect is called the player is already gone from the server. This will not work.

There's your answer.


All times are GMT -4. The time now is 07:59.

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