Raised This Month: $51 Target: $400
 12% 

Executing client command on disconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Des12
Senior Member
Join Date: Jan 2005
Old 07-14-2006 , 12:15   Executing client command on disconnect
Reply With Quote #1

Whenever I try to send a command to a client when he is disconnecting, it does not work.

Code:
public client_disconnect(id) {     client_cmd(id,"cl_realhud 0");     return PLUGIN_CONTINUE; }

Any way to fix this? Perhaps in a client prethink:
Code:
public client_PreThink(id) {    if(!is_user_connected(id)) client_cmd(id,"cl_realhud 0");    return PLUGIN_CONTINUE; }
__________________
-Dest Romano

www.JustRP.com
A TSRP Server

Quote:
Originally Posted by Brad
Don't you go be bringing reality into this.
Des12 is offline
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 07-14-2006 , 13:16   Re: Executing client command on disconnect
Reply With Quote #2

no
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
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:02.


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