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

Hello,

How can I make such a paytime system?

MAIN QUESTION is: How can I put (( Just Spawned )) textdraw above the players on their connect to the server and keep it for like 10 seconds, then it disappears ?
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)