14.02.2012, 19:45
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;
}