06.01.2011, 11:20
You can use it onplayerspawn or with a command.
Command:
pawn Код:
public OnPlayerSpawn(playerid)
{
new Text3D:blabla[MAX_PLAYERS];
blabla[playerid] = Create3DTextLabel("Your text here.",0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(blabla[playerid],playerid,0.0, 0.0, 0.7);
return 1;
}
pawn Код:
if (strcmp("/mycommand", cmdtext, true, 10) == 0)
{
new Text3D:blabla[MAX_PLAYERS];
blabla[playerid] = Create3DTextLabel("Your text here.",0xFFFFFFAA, 30.0, 40.0, 50.0, 40.0, 0);
Attach3DTextLabelToPlayer(blabla[playerid],playerid,0.0, 0.0, 0.7);
return 1;
}