SA-MP Forums Archive
Need help with leaving/Joining server message!*SOLVED* - 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: Need help with leaving/Joining server message!*SOLVED* (/showthread.php?tid=129808)



Need help with leaving/Joining server message!*SOLVED* - Epic Shower - 23.02.2010

I've been in SA-MP Wiki, i've added the codes for the joining server message, but nothing happens.
Here's what i did:

format(string, sizeof(string), "%s has joined the server.", playername );

Did i do anything wrong?
Please reply!


Re: Need help with leaving/Joining server message! - aircombat - 23.02.2010

format(string, sizeof(string), "%s has joined the server.", playername );
SendClientMessage(playerid, Color , string);

That's On Player Connect
________
Macumba advice


Re: Need help with leaving/Joining server message! - Miguel - 23.02.2010

pawn Код:
public OnPlayerConnect(playerid)
{
  new
    string[48],
    name[MAX_PLAYER_NAME];

  GetPlayerName(playerid, name, 24);
  format(string, sizeof(string), "%s has joined the server.", name);
  SendClientMessage(COLOR, string);
  return 1;
}