OnPlayerConnect - Message to all
#1

Hello,

I wanted to disappear the 'Connected to SERVERNAME' message,
so i made a new forward: ShowMessage(playerid); and i made a
timer in OnPlayerConnect: SetTimer("WelcomeMessage", 300, false);
And this is the public WelcomeMessage(playerid); :
Код:
public WelcomeMessage(playerid)
{
	ClearChat(playerid, 10);
	SendClientMessage(playerid, COLOR_NICEBLUE, "[======================|  |======================]");
	SendClientMessage(playerid, COLOR_WHITE,    "Server Last Update: lalal ");
	SendClientMessage(playerid, COLOR_WHITE,    "Server Version: blabla");
	SendClientMessage(playerid, COLOR_WHITE,    "Server Scripter:bdfd ");
	SendClientMessage(playerid, COLOR_WHITE,    "---------------------------------------------------------------------");
	SendClientMessage(playerid, COLOR_WHITE,    "Welcome to blabla Roleplay.");
	SendClientMessage(playerid, COLOR_WHITE,    "Please /login or /register to enter the server.");
	SendClientMessage(playerid, COLOR_NICEBLUE, "[======================|  |======================]");
}
When there are for example two players online and when another player connects to the
server everyone gets the message.. What did i wrong? the (playerid) is just for one player,
isn't it? How can i fix this problem? Thanks.

K. Regards,
I. C.
Reply


Messages In This Thread
OnPlayerConnect - Message to all - by Ihsan-Cingisiz - 09.01.2011, 06:47
Re: OnPlayerConnect - Message to all - by Calgon - 09.01.2011, 07:08

Forum Jump:


Users browsing this thread: 1 Guest(s)