OnPlayerConnect and Disconnect
#14

Quote:
Originally Posted by Don Correlli
Quote:
Originally Posted by Puzi
Hello, I am adding OnPlayerConnect and OnPlayerDisconnect messages, but I have a slight question about the nick formatting. A player will join with an RP nick for example John_Epic and when he connects, it has to say ''John Epic has joined the server'' without the underline. Is it possible? If yes, how?
pawn Код:
stock PlayerNameEx(playerid) // credits to the creator (i'm not sure who's the original creator).
{
  new
      playername[MAX_PLAYER_NAME];
  strmid(playername, PlayerName(playerid), 0, strlen(PlayerName(playerid)), MAX_PLAYER_NAME);
  for(new i = 0; i < MAX_PLAYER_NAME; i++)
  {
    if(playername[i] == '_') playername[i] = ' ';
  }
  return playername;
}

stock PlayerName(playerid)
{
  new
      playername[MAX_PLAYER_NAME];
  GetPlayerName(playerid, playername, sizeof(playername));
  return playername;
}
Actually, I have tested that, and I still get the underdash (_) when a player connects.
Reply


Messages In This Thread
OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 11:52
Re: OnPlayerConnect and Disconnect - by Jeffry - 05.01.2010, 12:00
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 12:03
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 12:09
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 12:13
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 12:16
Re: OnPlayerConnect and Disconnect - by WagTsX - 05.01.2010, 12:42
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 12:50
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 13:14
Re: OnPlayerConnect and Disconnect - by [DDC]Delight - 05.01.2010, 13:26
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 13:28
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 13:28
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 13:32
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 13:34
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 14:05
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 14:23
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 14:30
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 14:35
Re: OnPlayerConnect and Disconnect - by Correlli - 05.01.2010, 14:36
Re: OnPlayerConnect and Disconnect - by Puzi - 05.01.2010, 14:37

Forum Jump:


Users browsing this thread: 1 Guest(s)