names on oject - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: names on oject (
/showthread.php?tid=393083)
names on oject -
DerickClark - 16.11.2012
how to put names on oject? or like put names ingame,i have ppc trucking sever i /createcamera i need a name like 60 speed
Re: names on oject -
NumbSkull - 16.11.2012
Edit:: i read it befor you changed it ...now idk what you mean
Re: names on oject -
iGetty - 16.11.2012
How do you mean mate?
In the script like:
pawn Код:
new object;
public OnGameModeInit()
{
object = CreateObject(...);
}
Or the actual object name like with vehicle models? EG: 400 - Landstalker.
Sorry for any mistakes, reply was wrote on a BlackBerry cell phone.
Re: names on oject -
DerickClark - 16.11.2012
one like dis
Re: names on oject -
NumbSkull - 17.11.2012
ok yeah then i was right Create3DTextLabel("Label Name", 0x008080FF, x, y, z, 40.0, 0, 0);
unless you mean the textdraw at the bottom then go
>>here<<
Re: names on oject -
DerickClark - 17.11.2012
do they got a thing u just add ingame?
Re: names on oject -
NumbSkull - 17.11.2012
there are probably textdraw tuts somewhere ...i just played around with it till i could do it very well
like
pawn Код:
Txtdraw = TextDrawCreate(110.000000, 10.000000, "poooooooooooooooooooop");
TextDrawBackgroundColor(Txtdraw, 0);
TextDrawFont(Txtdraw, 1);
TextDrawLetterSize(Txtdraw, 0.839999, 11.600002);
TextDrawColor(Txtdraw, 0);
TextDrawSetOutline(Txtdraw, 0);
TextDrawSetProportional(Txtdraw, 1);
TextDrawSetShadow(Txtdraw, 1);
TextDrawUseBox(Txtdraw, 1);
TextDrawBoxColor(Txtdraw, 255);
TextDrawTextSize(Txtdraw, 677.000000, 134.000000);
then a TextDrawShowForPlayer and to get rid of it TextDrawHideForPlayer