Raised This Month: $ Target: $400
 0% 

Hi! client_cmd on Disconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Crizzatu
Member
Join Date: May 2012
Old 04-28-2013 , 05:01   Hi! client_cmd on Disconnect
Reply With Quote #1

Code:
public client_disconnect(id) {
	if(is_user_admin(id))
		
	client_cmd(id, "rate 25000"); // Is EXAMPLE / I need for another plugin /
	client_cmd(id, "Salut! Ti-am schimbat rata cu succes!");
}
if(is_user_admin(id)) is not work!
I want execute client_cmd only for ADMIN's ....

I try this ? Work ?

Code:
public client_disconnect(id) {
	
	new iPlayers[32],iNum,Players;
	get_players(iPlayers,iNum,"ch");
	
	for(new i;i < iNum;i++)
	{
		Players = iPlayers[i];
		
		if(access(Players,ADMIN_SLAY)) continue;
		
	client_cmd(ADMIN_SLAY, "rate 25000"); // Is EXAMPLE / I need for another plugin / 
	client_cmd(ADMIN_SLAY, "Salut! Ti-am schimbat rata cu succes!");
	}
	return PLUGIN_HANDLED;
}
Crizzatu is offline
EpicMonkey
buttmonkey
Join Date: Feb 2012
Old 04-28-2013 , 05:04   Re: Hi! client_cmd on Disconnect
Reply With Quote #2

Client has already disconnected, that cant be done, and i thought thats been blocked by valve
EpicMonkey is offline
Old 04-28-2013, 05:08
didoWEE
This message has been deleted by didoWEE.
Crizzatu
Member
Join Date: May 2012
Old 04-28-2013 , 05:09   Re: Hi! client_cmd on Disconnect
Reply With Quote #4

Is imposible a?
Crizzatu is offline
didoWEE
Senior Member
Join Date: Oct 2012
Location: Bulgaria
Old 04-28-2013 , 05:12   Re: Hi! client_cmd on Disconnect
Reply With Quote #5

Quote:
Originally Posted by Crizzatu View Post
Is imposible a?
Yes, it's impossible

Last edited by didoWEE; 04-28-2013 at 05:16.
didoWEE is offline
Crizzatu
Member
Join Date: May 2012
Old 04-28-2013 , 05:14   Re: Hi! client_cmd on Disconnect
Reply With Quote #6

How could I do? Help me Please Thx ...
Crizzatu is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 04-28-2013 , 05:33   Re: Hi! client_cmd on Disconnect
Reply With Quote #7

Just don't change players settings at any time.
Servers doing this are boring.
+ default settings have been raised on last cs update.

Also, use magic cvars in server.cfg :

sv_minrate
sv_maxrate
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 04-28-2013 at 05:34.
ConnorMcLeod is offline
Reply


Thread Tools
Display Modes

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 10:49.


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