04.05.2012, 11:19
Ok guys,i've created my first NPC and it's working good.(The NPC is on a vehicle),but i've a problem.I've created a label to attach it on the NPC that is driving the vehicle so i made in this way:
OnGameModeInit:
CrazyDriverVeh refers to the vehicle that i've created for the NPC:
Thanks for the great help,like always.
pawn Код:
new Text3D:CrazyDriverText;
pawn Код:
CrazyDriverText = Create3DTextLabel( "[BOT]Crazy Driver", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
pawn Код:
Attach3DTextLabelToVehicle(CrazyDriverText, CrazyDriverVeh, 0.0, 0.0, 5.0);
pawn Код:
new CrazyDriverVeh;
pawn Код:
CrazyDriverVeh = CreateVehicle(411, 0.0, 0.0, 5.0, 0.0, 3, 3, 5000);