03.03.2014, 18:06
pawn Код:
public OnPlayerConnect(playerid)
{
if(IsPlayerNPC(playerid))
{
new string[32], NPCName[MAX_PLAYER_NAME];
GetPlayerName(playerid, NPCName, sizeof NPCName);
format(string, sizeof string, "%s (%d)", NPCName, playerid);
TestBotLabel[playerid] = Create3DTextLabel(string, COLOR_WHITE, 0, 0, 0, 40, 0, true);
Attach3DTextLabelToPlayer(Jenny_Laurent[playerid], playerid, 0, 0, 0.4);
SetPlayerColor(playerid, COLOR_WHITE);
}
}