20.02.2013, 12:06
I don't think you can, but why not just making this?
Anyways, you will still need to have the good player id. With your stock, it will always return name of the player id 0.
pawn Код:
stock GetPnameid(pid)
{
new pname[MAX_PLAYER_NAME];
GetPlayerName(pid, pname, sizeof(pname));
return pname;
}