16
Snippet Showroom / GetPlayerNameFromID
« on: September 13, 2014, 01:48:01 pm »
Hey scripters, In short, this function returns player name from the ID, what might be useful.
Code: [Select]
stock GetPlayerNameFromID(playerid)
{
new str[MAX_PLAYER_NAME], pname[MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(str, sizeof(str), "%s", pname);
return str;
}