Change name of buildings -
orrgoren11 - 30.05.2011
Hi!
When i'm near a business I can see in white [business].
I want to change it. or put the same tag a car with her name, like [Infernus].
How can I do it ?
Re: Change name of buildings -
MetalScript - 30.05.2011
What kind of business? Ammunation, 24/7, Well Stacked Pizza?
But mabye you mean:
GameTextForPlayer,
CreatePlayer3DTextLabel
Re: Change name of buildings -
orrgoren11 - 30.05.2011
I'm preety sure it's CreatePlayer3DTextLabel, now I have this 3dtext on the houses, I believe it's gl_property...
How can I edit the text?
and, how can I add CreatePlayer3DTextLabel to a vehicle ?
Re: Change name of buildings -
xalith - 30.05.2011
you mean you want to attach the 3d label to the vehicle?
https://sampwiki.blast.hk/wiki/Attach3DTextLabelToVehicle
Re: Change name of buildings -
orrgoren11 - 30.05.2011
Indeed.
But waht can I do now, if I want to attach the name of the vehicle?
pass all the 320 cars I have and write, new v1 =, v2 =, v3 ... etc?
Re: Change name of buildings -
sansko - 30.05.2011
use a loop
Re: Change name of buildings -
orrgoren11 - 30.05.2011
Tried ... didn't figured out how..
Re: Change name of buildings -
Cameltoe - 30.05.2011
Here something i just wrote :
pawn Код:
new
Text3D: VehicleLabel[ MAX_VEHICLES ];
public OnGameModeInit()
{
Attach3DText();
return 1;
}
stock Attach3DText()
{
for(new vehicleid; vehicleid < MAX_VEHICLES; vehicleid++)
{
VehicleLabel[ vehicleid ] = Create3DTextLabel("Veh text", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1 );
Attach3DTextLabelToVehicle( VehicleLabel[ vehicleid ], vehicleid, 0.0, 0.0, 2.0);
}
}
Re: Change name of buildings -
orrgoren11 - 30.05.2011
Tried that, not working..
Edit: My bad, working, buy I can I add the name of the vehicle?
Second Edit: Figured that out, Thanks a lot!
Re: Change name of buildings -
Cameltoe - 30.05.2011
Quote:
Originally Posted by orrgoren11
Tried that, not working..
Edit: My bad working, buy I can I add the name of the vehicle?
|
Well, what's not working then ? as from my point of view, it should work.