09.01.2011, 06:47
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); :
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.
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, "[======================| |======================]"); }
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.