AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_disconnect command doesnt work (https://forums.alliedmods.net/showthread.php?t=205595)

danonix 01-12-2013 08:47

client_disconnect command doesnt work
 
Code:

public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_disconnect( id )
{
    client_cmd(id,"bind ^"f1^" ^"autobuy^"")
}

I have got this plugin and it doesn't work. What imma doing wrong? : /

Cheers

Bos93 01-12-2013 08:54

Re: client_disconnect command doesnt work
 
This is not possible. The player already left.

danonix 01-12-2013 09:12

Re: client_disconnect command doesnt work
 
So how I can do it, when someone is leaving, it binds BIND f1 autobuy?

wickedd 01-12-2013 11:48

Re: client_disconnect command doesnt work
 
You can't change players keys without their permission.

YamiKaitou 01-12-2013 13:04

Re: client_disconnect command doesnt work
 
By the time client_disconnect is called, the player is already in a state where the server cannot interact with him anymore.

As for your issue, just don't bind player keys at all at any time

ConnorMcLeod 01-12-2013 13:09

Re: client_disconnect command doesnt work
 
Yami means : Don't bind F1 to something when players enter the server (because it's illegal), then you don't have to rebind this key to the action you THINK it was bound...

hypheni 01-12-2013 13:11

Re: client_disconnect command doesnt work
 
Though its slow-hacking why do you need this ?

danonix 01-12-2013 16:35

Re: client_disconnect command doesnt work
 
I have got jailbreak server, which bindson player connect /los ( dice ) on f1, but its annoying, when someone is leaving out from server, and still got this bind on f1. That's why I need it.

I saw somewhere that plugin, so in game it binds X, and when you leave it binds Y on same keys.

fysiks 01-12-2013 22:11

Re: client_disconnect command doesnt work
 
It's not possible to "re-bind" keys when somebody leaves. You should just remove any plugins that do anything with binds.

danonix 01-13-2013 15:12

Re: client_disconnect command doesnt work
 
It is. If You wanna I can give you server that does that. While you are in game on F1 BIND is X, if you leave, on same key is Y.


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

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