Raised This Month: $ Target: $400
 0% 

Name on reconnect problems...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
n04d
Junior Member
Join Date: Jan 2005
Old 02-09-2005 , 17:46  
Reply With Quote #6

Yeah, here is where I call the function to add the person to the "Not Ready!" list...

Code:
public client_putinserver(id) 
{	
	playerlistNotReady(id)
}
Now, it add's them fine...with this code.

Code:
public playerlistNotReady(id)
{
	get_user_name(id,playername,31)
	if (equal(notready,"None!"))
		format(notready,31,"%s",playername)
	else {
		format(list1,31,"^n%s",playername)
		add(notready,255,list)
	}
	return 1
}
And if they leave the server, they get removed with this code...(Also removes them if they are ready, but either ready or not, it still doesn't work...)

Code:
public playerListRemove(id)
{
	get_user_name(id,playername,31)

	format(list,39,"%s",playername)
		replace(notready,255,list,"None!")

	format(list,39,"^n%s",playername)
		replace(notready,255,list,"")

	format(list,39,"%s^n",playername)
		replace(notready,255,list,"")
}
Which I also use the same removal code for the person if they leave while they are on the "Ready!" list...

I call that whenever they leave the server, so in...

Code:
public client_disconnect(id)
{
	playerListRemove(id)
}
n04d 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 19:18.


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