Making a 3D Text above a player's head?
#2

Try and analyze this. I didn't tested it.
pawn Code:
new Text3D:Text[MAX_PLAYERS];

public OnPlayerSpawn(playerid)
{
    Text[playerid]=Create3DTextLabel("Text", COLOR, 0, 0, 0, 0, 0, 0);
    Attach3DTextLabelToPlayer(Text[playerid], playerid, 0, 0, 2);
    SetTimerEx("DelText", 10*1000, false, "d", playerid);
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    Delete3DTextLabel(Text[playerid]);
    return 1;
}

forward DelText(playerid); public DelText(playerid)
{
    Delete3DTextLabel(Text[playerid]);
    return 1;
}
Reply


Messages In This Thread
Making a 3D Text above a player's head? - by Guitar - 14.02.2012, 18:43
Re: Making a 3D Text above a player's head? - by TheGamer! - 14.02.2012, 19:45

Forum Jump:


Users browsing this thread: 1 Guest(s)