Jump to content

[HELP/Quick Question] Getplayername


TheAnimalKa
 Share

Recommended Posts

ReturnNameInitials(playerid)
{ 
    static szName[MAX_PLAYER_NAME]; 
    GetPlayerName(playerid, szName, sizeof(szName)); 
    format(szName, sizeof szName, "%c. %s", szName[0], szName[strfind(szName, "_") + 1]);
    return szName;
}

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

Please visit Terms of Use for our Terms of Use and Privacy Policy for our privacy policy