15.07.2014, 13:39
pawn Код:
// global:
new gPlayer_Name[MAX_PLAYERS][MAX_PLAYER_NAME];
#define PlayerName(%0) gPlayer_Name[%0]
// OnPlayerConnect:
GetPlayerName(playerid, gPlayer_Name[playerid], MAX_PLAYER_NAME);
Oh and make sure that the player is connected before using it otherwise it'll cause run time error 4: Array index out of bounds.