04.06.2020, 05:56
PHP Code:
public OnGameModeInit()
{
ShowNameTags(0);
return 1;
}
new Text3D:playerID[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
new str[6];
format(str, sizeof(str), "%d", playerid);
playerID[playerid] = Create3DTextLabel(str, 0x1E90FFFF, 0, 0, 0, 10, 0);
Attach3DTextLabelToPlayer(playerID[playerid], playerid, 0.0, 0.0, 0.1);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
Delete3DTextLabel(playerID[playerid]);
return 1;
}
Quote:
estб ai so estudar sobre um pouco mais de https://sampwiki.blast.hk/wiki/Attach3DTextLabelToPlayer
|