How to change nicks in chat
#1

in my server if some text something hes name saw like this Name_Lastname
how can i do when someone text its was saw like this Name Lastname
without this: _
Reply
#2

pawn Код:
public OnPlayerText(playerid, text[])
{
    new pname[MAX_PLAYER_NAME], string[MAX_PLAYER_NAME];
    GetPlayerName(playerid,string,sizeof(string));
    GetPlayerName(playerid,pname,sizeof(pname));
    for(new a = 0; a < strlen(string); a++)
    {
      if(string[a] == '_') string[a] = ' ';
    }
    SetPlayerName(playerid,string);
    SendPlayerMessageToAll(playerid,text);
    SetPlayerName(playerid,pname);
    return 0;
}
Untested, but it should work
Reply
#3

i did something else but Thanks.
Solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)