08.06.2011, 17:41
I've tested this. Not sure if it is what you need:
Will print: UserName: [KO]KillerThriller
Just change the "UserName %s" to Userfile then.
Jeffry
pawn Код:
#define GetPName(%0,%1) new p_name[50], file[256]; GetPlayerName(%0, p_name, 50); format(file, sizeof(file), %1, p_name)
public OnPlayerConnect(playerid)
{
GetPName(playerid, "UserName: %s");
printf(file);
return 1;
}
Just change the "UserName %s" to Userfile then.
Jeffry