pawn Код:
stock GetPlayerFirstName(playerid)
{
new
namestring[2][MAX_PLAYER_NAME],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
split(name, namestring, '_');
return namestring[0];
}
stock GetPlayerLastName(playerid)
{
new
namestring[2][MAX_PLAYER_NAME],
name[MAX_PLAYER_NAME];
GetPlayerName(playerid,name,MAX_PLAYER_NAME);
split(name, namestring, '_');
return namestring[1];
}
Not sure who created it, but it sure as hell wasn't me. Oh, and i'll include the last name version of it aswell.