Help | OnPlayerConnect Massage
#1

I want that when the player connect he will have 2 kind's of massages
the first one that says:

Welcome to the server (here is my name) , [in the normal chat]


and the second will be on the bottom of the screen that says too welcome (here is my name)
example:

http://www.siz.co.il/my.php?i=ftxuxyzdmqgk.png

Reply
#2

at login command:
pawn Код:
new tmp[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(tmp, sizeof(tmp), "~w~Welcome ~n~~y~  %s", playername);
GameTextForPlayer(playerid, tmp, 5000, 1);
Reply
#3

Well you need:

For the top message, SendClientMessage.

For the "bottom" message, GameTextForPlayer, and you will also need format() to incorporate the players name.

Note: Each function in the above text links to the appropriate wiki page!
Reply
#4

Quote:
Originally Posted by borisblat
I want that when the player connect he will have 2 kind's of massages
I get a free massage when I enter your server?
Reply
#5

i think he meant messages.

And sorry, i only noticed the GameText. The SCM is not hard though.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)