This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

CS 1.6 client_disconnected client_cmd


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Hn.S Xmix
Member
Join Date: May 2021
Old 07-20-2023 , 16:10   CS 1.6 client_disconnected client_cmd
Reply With Quote #1

is there any way to change player command if he disconnect the server?

i have fps_menu and in this fps menu there is r_drawentities 0-1 if player select r_drawentities "1" and left the server r_drawentities will stay "1" bcs this command remove all models

Request i want to every player if they disconnect the server r_drawentities will be "0"



like this ---->

PHP Code:
public client_disconnected(id) {

    
client_cmd(id"r_drawentities ^"0^")
    
    } 
The problem is its not working

Last edited by Hn.S Xmix; 07-20-2023 at 16:11.
Hn.S Xmix is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-20-2023 , 16:59   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #2

It will never work those are client side CVars, its forbidden to change client CVar without their permission.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Hn.S Xmix
Member
Join Date: May 2021
Old 07-20-2023 , 17:38   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
It will never work those are client side CVars, its forbidden to change client CVar without their permission.
oh i didn't know that.. so there is nothing i can do about it?
Hn.S Xmix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-20-2023 , 23:20   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #4

Quote:
Originally Posted by Hn.S Xmix View Post
oh i didn't know that.. so there is nothing i can do about it?
How do you expect to send commands to a player that isn't connected to the server?
__________________
fysiks is offline
Hn.S Xmix
Member
Join Date: May 2021
Old 07-21-2023 , 10:13   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #5

Quote:
Originally Posted by fysiks View Post
How do you expect to send commands to a player that isn't connected to the server?
I mean there is alote of servers using these things, so i though its fine

Last edited by Hn.S Xmix; 07-21-2023 at 10:14.
Hn.S Xmix is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-21-2023 , 22:40   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #6

Just because they are setting values on player's computers doesn't mean that they are getting set back to their original values (for exactly the aforementioned reason).
__________________
fysiks is offline
mlibre
Veteran Member
Join Date: Nov 2015
Location: return PLUGIN_CONTINUE
Old 07-22-2023 , 11:19   Re: CS 1.6 client_disconnected client_cmd
Reply With Quote #7

these commands are filtered by Slowhacking
__________________
mlibre 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 18:34.


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