Remote the _ From a roleplay name and send the firstname to chat only!
#3

Quote:
Originally Posted by RenSoprano
Посмотреть сообщение
pawn Код:
RPName(playerid)
{

    new
    sz_playerName[MAX_PLAYER_NAME],
    i_pos;

    GetPlayerName(playerid, sz_playerName, MAX_PLAYER_NAME);
    while ((i_pos = strfind(sz_playerName, "_", false, i_pos)) != -1) sz_playerName[i_pos] = ' ';
    return sz_playerName;
}
This will remove your underscore
Nice rip from the NGRP script.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)