Help | OnPlayerConnect Massage - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help | OnPlayerConnect Massage (
/showthread.php?tid=72886)
Help | OnPlayerConnect Massage -
borisblat - 11.04.2009
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
Re: Help | OnPlayerConnect Massage -
Rks25 - 11.04.2009
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);
Re: Help | OnPlayerConnect Massage -
Weirdosport - 11.04.2009
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!
Re: Help | OnPlayerConnect Massage -
90NINE - 11.04.2009
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?
Re: Help | OnPlayerConnect Massage -
Rks25 - 11.04.2009
i think he meant messages.
And sorry, i only noticed the GameText. The SCM is not hard though.