Raised This Month: $ Target: $400
 0% 

client_disconnect command doesnt work


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 01-12-2013 , 08:47   client_disconnect command doesnt work
Reply With Quote #1

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

Last edited by danonix; 01-12-2013 at 08:47.
danonix is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 01-12-2013 , 08:54   Re: client_disconnect command doesnt work
Reply With Quote #2

This is not possible. The player already left.
__________________

Last edited by Bos93; 01-12-2013 at 08:57.
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
danonix
Senior Member
Join Date: Dec 2012
Old 01-12-2013 , 09:12   Re: client_disconnect command doesnt work
Reply With Quote #3

So how I can do it, when someone is leaving, it binds BIND f1 autobuy?

Last edited by danonix; 01-12-2013 at 09:13.
danonix is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 01-12-2013 , 11:48   Re: client_disconnect command doesnt work
Reply With Quote #4

You can't change players keys without their permission.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 01-12-2013 , 13:04   Re: client_disconnect command doesnt work
Reply With Quote #5

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
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-12-2013 , 13:09   Re: client_disconnect command doesnt work
Reply With Quote #6

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...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hypheni
Senior Member
Join Date: Jul 2011
Location: India
Old 01-12-2013 , 13:11   Re: client_disconnect command doesnt work
Reply With Quote #7

Though its slow-hacking why do you need this ?
hypheni is offline
Send a message via Skype™ to hypheni
danonix
Senior Member
Join Date: Dec 2012
Old 01-12-2013 , 16:35   Re: client_disconnect command doesnt work
Reply With Quote #8

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.
danonix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 01-12-2013 , 22:11   Re: client_disconnect command doesnt work
Reply With Quote #9

It's not possible to "re-bind" keys when somebody leaves. You should just remove any plugins that do anything with binds.
__________________
fysiks is offline
danonix
Senior Member
Join Date: Dec 2012
Old 01-13-2013 , 15:12   Re: client_disconnect command doesnt work
Reply With Quote #10

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.
danonix is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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