05.01.2010, 12:03 
	
	
	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;
}


