SA-MP Forums Archive
GetPlayerID ? - 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: GetPlayerID ? (/showthread.php?tid=148394)



GetPlayerID ? - DarkPower - 16.05.2010

How i can make connect message like this

DarkPower ID: [ 0 ] has joined on server.

can you help me?


Re: GetPlayerID ? - Miguel - 17.05.2010

https://sampwiki.blast.hk/wiki/Creating_...Leave_Messages

If you ID, too, just add something like this:

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

  GetPlayerName(playerid, pname, sizeof(pname));
  format(string, sizeof(string), "%s [ %d ] has joined the server", pname, playerid); // playerid and %d
  SendClientMessageToAll(0xAAAAAAAA, string);
  return 1;
}



Re: GetPlayerID ? - AlbanianGuy - 17.05.2010

At least say thanks


Re: GetPlayerID ? - DarkPower - 17.05.2010

thanks i was AFK xD