14.12.2012, 13:23
This works too, but the absolutely has to be in FirstName_LastName format to work.
pawn Код:
stock retFirstLeters(name[MAX_PLAYER_NAME])
{
new
strpos = strfind(name, "_", true),
string[4];
format(string, sizeof(string), "%c%c", name[0], name[strpos+1]);
return string;
}