11.07.2012, 15:46
pawn Код:
stock ShortenName(playerid)
{
new PlayerName[MAX_PLAYER_NAME];
new Find, Final;
GetPlayerName(playerid, PlayerName, MAX_PLAYER_NAME);
Find = strfind(PlayerName, "_", false, 1);
Final = strdel(PlayerName, 1, Find+1);
return Final;
}
Supposing that you are using the name Marcus_Bauer, this function will return M_Bauer