24.02.2014, 16:52
SOLVED, Thanks.
// global:
new PlayerText: HUDNAMESTR[MAX_PLAYERS];
// OnPlayerConnect:
HUDNAMESTR[playerid] = PlayerText: INVALID_TEXT_DRAW;
// create per-player textdraw..
public OnPlayerSpawn(playerid)
{
PlayerInfo[playerid][pLogged] = 1;
new playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
PlayerTextDrawSetString(playerid, HUDNAMESTR[playerid], playername);
PlayerTextDrawShow(playerid, HUDNAMESTR[playerid]);
return 1;
}