GetPlayerID ?
#1

How i can make connect message like this

DarkPower ID: [ 0 ] has joined on server.

can you help me?
Reply
#2

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;
}
Reply
#3

At least say thanks
Reply
#4

thanks i was AFK xD
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)