Raised This Month: $ Target: $400
 0% 

Executing client command on disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 07:59.


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