Raised This Month: $ Target: $400
 0% 

Client Disconnect (ID)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Tonda
Senior Member
Join Date: Aug 2009
Old 11-22-2010 , 07:31   Client Disconnect (ID)
Reply With Quote #1

Hi, i have server and if you are join, you will have 5 points. You can buy items for this points. But if you reconnect, you will have 5 points again and this is bad.

So i try edited and script do this:

Code:
public client_disconnect( id ) {
	check_disconnect[ id ] = 1;
and

Code:
public client_putinserver( id )
{	
	if (check_disconnect[id])
	{
	points[id] = get_pcvar_num(points_disconnect);	
	}
	return PLUGIN_CONTINUE;
}
So after this if client disconnect and he come again, he have 0 points (points_disconnect). All works fine but ... If do reconnect one player on the server, all players on the server have 0 points for reconnect. Why ? I defined ID and only this player ID obtained points_disconnect. Help me ...
Tonda 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 11:17.


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